EditText want in the right place inside a Button, the button no matter how much EditText of textSize set, you can now EditText equal height, do not know if there was any way, help you an expert, I really do not know how to do ah.

Reply:
& Lt; RelativeLayout xmlns: android = "http://schemas.android.com/apk/res/android"
xmlns: tools = "http://schemas.android.com/tools"
android: layout_width = "match_parent"
android: layout_height = "match_parent"
tools: context = ". MainActivity" & gt;
& Lt; TextView
android: id = "@ + id / textView1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_centerHorizontal = "true"
android: layout_centerVertical = "true"
android: text = "@ string / hello_world" / & gt;
& Lt; Button
android: id = "@ + id / button1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_alignBottom = "@ id / editText1"
android: layout_alignParentTop = "true"
android: layout_alignTop = "@ id / editText1"
android: text = "Button" / & gt;
& Lt; EditText
android: id = "@ + id / editText1"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: layout_alignParentTop = "true"
android: ems = "10" & gt;
& Lt; / EditText & gt;
& Lt; / RelativeLayout & gt;
Reply:
Upstairs to the code is very meticulous ah. correct!
Reply:
2nd floor of the button position and textView reversed it, and otherwise is not being given? ?
Reply:
Thank you, I'll try it.
Reply:
Tried, very grateful, then there is no way to ask the next while keeping the same width and height Button, square Buuton.
Reply:
2nd Floor mighty. . .
Reply:
2nd floor of the code is not how to get the cursor buttons, the word more will run button up
No comments:
Post a Comment