2014-09-26 41 views
1

我正在研究應用程序支持RTL對齊方式並且它的工作正常,但我嘗試了很多次以在文本結束時使文本光標處於打字狀態,但是我沒有弄清楚,如果我輸入英文或任何LTR語言,但不適用於RTL語言,如阿拉伯語。 請看下面的截圖。 我正在使用AVD 4.0.3,我的智能手機操作系統是4.1.2。如何在EditText框中的文本結尾之後製作Android文本光標

enter image description here

+0

你解決這個問題?如果是,請讓我知道? – 2015-06-03 16:46:48

+0

檢查此答案它包含一個解決方法: http://stackoverflow.com/a/34927271/1826581 – 2016-01-21 15:16:26

回答

0

作品對我來說

<EditText 
      android:id="@+id/edtName" 
      android:layout_width="match_parent" 
      android:layout_height="match_parent" 
      android:ellipsize="end" 
      android:gravity="right" 
      /> 
+0

對不起,ellipsize +重力不能解決問題。 – user3843006 2014-09-26 04:54:55

相關問題