1
我在佈局xml上顯示覆選框。索尼Xperia設備上的複選框文本問題
複選框文本包含大約10個字符。
這個問題是特定於索尼Xperia複選框文本來到第二行,特別是在第二行文本的最後2個字符。
<CheckBox android:id="@+id/roundCheck" android:paddingLeft="25dip"
android:button="@drawable/ic_uncheck_rect" android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_marginLeft="20dip" android:text="abcdefghij"
android:textSize="16sp"
android:textColor="@color/white" android:typeface="serif"
android:singleLine="true" android:checked="false"
android:layout_centerVertical="true"></CheckBox>
我已經測試了HTC Hero的移動應用程序,谷歌Nexus One,摩托羅拉Droid等,但它沒有任何問題做工精細。
這個問題沒有得到反映在索尼Xperia模擬器上。
是加入代碼,android:singleLine =「true」,解決了這個問題,如果這意味着在一定數量的字符之後會加入「...」但文本將會在一行中?
我目前沒有移動設備進行測試。
在此先感謝。
親切問候,
CB