[英]Gravity setting not working on a Samsung device
I have developed an application which displays Hebrew strings that are retrived from a server.我开发了一个应用程序,它显示从服务器检索的希伯来语字符串。 I've tested the application on my emulator and all of them have been aligned to right.
我已经在我的模拟器上测试了该应用程序,并且所有这些都已正确对齐。 I'm using
我在用着
android:gravity="right"
for the TextView
.对于
TextView
。
When I test my application on Samsung TG-i9000, in "ignure" the garvity and align the text to left.当我在三星 TG-i9000 上测试我的应用程序时,在“忽略”重力并将文本左对齐。
How it can be fixed?如何修复?
seems like the parent Layout containing TextView has layoutWidth="wrap_Content"
, if so, then change it to "fill_Parent"
似乎包含 TextView 的父布局具有
layoutWidth="wrap_Content"
,如果是,则将其更改为"fill_Parent"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.