Hello all,
Android.
i want set three or two EditText in single line How to do ?
thanks.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Niravkumar VaghelaPosted Jul 24, 2012, 3:09 AM
You need to have two LinearLayouts Outer and Inner. Keep android:orientation="vertical" for outer LinearLayout and android:orientation="horizontal" for inner LinearLayout. And put your controls in Inner LinearLayout.
Final Code should look like this:
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:orientation="horizontal" android:layout_width="wrap_content"
android:layout_height="wrap_content">
Chintan RathodPosted Jun 21, 2012, 6:05 AM
what you need to do is, take a "vertical linear layout", inside that take another "horizontal linear layout" and put your three edit text there.
Code will be like this in layout.xml file
---------------------------------------
android:layout_width="match_parent"
android:layout_height="match_parent" >
android:layout_width="match_parent"
android:layout_height="match_parent" >
---------------------
Thanks