我已经创建了一个EditText这样的Android的EditText问题
<RelativeLayout>
<TableLayout>
<TableRow>
<EditText android:id="@+id/myid"
android:hint="This is my hint"
android:textColorHint = "@color/white"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:gravity="center"
android:textSize = "20sp"
android:textColor = "@color/white"
android:textStyle = "bold"
android:background ="@drawable/mybackgroundimage"
android:fitsSystemWindows = "true"
android:includeFontPadding = "true"
android:singleLine="true"
android:cursorVisible = "false"
>
</EditText>
</TableRow>
</TableLayout>
它在一个表中的布局。我有2个问题
只要我删除
android:gravity="center"
提示节目,但我需要表现出编辑文本从中心并显示提示文字以及(它是在Android SDK中的错误吗?)。我喜欢将文本打包成一定的大小,如果文本增长大于textview界限。现在它超出了视图,doest不显示输入的数字结束后,但数字不断增加在编辑文本中。
请如果有人有任何想法如何做到这一点。
感谢
嘿里希你有你的第一个问题的解决方案吗?请告诉我,我坚持这一点。提前致谢。 – anddev
对不起Mansi我还没有得到这个问题的答案。 – Rishi
好的..运气不好..(:无论如何感谢您的回复。:) – anddev