android - Put TextView inside EditText -
Please tell me, how can I put text inside an EditText of this kind to And only the right text can be edited. In TextView inside a relative layout and EditText and adjust them. According to your requirement Example: If you have any changes Change
& lt; RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/android" Android: Layout_width = "match_parent" Android: layout_height = "match_parent" & gt; & Lt; Android: layout_alignParentLeft = "true" Android: layout_alignParentTop = "true" Android: layout_marginTop = "20dp" Android: EMS: EditText Android: id = "@ + id / Edittext" android: layout_width = "match_parent" Android: layout_height = "wrap_content" = "10" Android: Hint = "My first character" & gt; & Lt; Requestfocus / & gt; & Lt; / EditText> & Lt; TextView android: id = "@ + id / text_view" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_alignBaseline = "@ + id / Edittext" Android: layout_alignBottom = "@ + id / Edittext" Android: Layout_linePrint = "True" Android: Text = "123123" /> & Lt; / RelativeLayout & gt;
Comments
Post a Comment