Android的RTL密码字段? [英] Android RTL password fields?

查看:233
本文介绍了Android的RTL密码字段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

看来,如果你有在Android上的一个EditText

It appears that if you have an EditText on android with the

安卓inputType =textPassword安卓密码=真

在他们领域,从右到左的文本不出现从右到左(左保持到右)。

fields on them, right-to-left text does NOT appear right-to-left (stays left-to-right).

但是没有密码外延文中出现的RTL。

However without the password denotations the text does appear RTL.

这是一个已知的问题还是有解决方法吗?

Is this a known issue or is there a workaround?

推荐答案

我发现的唯一的解决办法是设置inputType后编程设置重力向左或向右。

The only solution I've found was to set the gravity programatically to LEFT or RIGHT after setting the inputType.

这篇关于Android的RTL密码字段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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