android EditText android:textDirection [英] android EditText android:textDirection

查看:103
本文介绍了android EditText android:textDirection的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想一直将EditText设置为LTR,我该怎么做?android:textDirection似乎是答案,我无法使用该指令编译项目

I'd like to set an EditText to be LTR at all times, how do I do that? android:textDirection does seem to be the answer, i cant get the project to compile with that directive

推荐答案

在字符串的开头添加\ u202D(LTR OVERRIDE)可以达到目的

Adding \u202D (LTR OVERRIDE) to the beginning of the string does the trick

这篇关于android EditText android:textDirection的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆