I want to set a text view and edit text on same line in android.
As I've wrote here I should do it with linear layout like this:
<LinearLayout xmlns:android="http://ift.tt/nIICcg"
android:layout_width="fill_parent"
android:layout_height="200px"
android:orientation="horizontal"
android:layout_alignParentLeft="true"
android:background="@android:color/background_light"
android:layout_alignParentStart="true"
android:layout_below="@+id/loginTitle"
android:layout_marginTop="5dp">
<TextView
android:layout_width="wrap_content"
android:text="Phone"
android:layout_height="200px"
android:gravity="center"
android:id="@+id/phoneTV"
android:textColor="#f7941e"
android:textSize="20sp">
</TextView>
<EditText android:layout_width="wrap_content"
android:id="@+id/phoneNumber"
android:layout_height="200px"
android:gravity="center"
android:background="@android:color/background_light"
android:text="0.00"
android:textSize="20sp"
android:inputType="number|numberDecimal"
android:layout_marginLeft="10dp">
</EditText>
</LinearLayout>
but it doesn't look at all as I want to.
My goal is to reach this component
Can you please help me how to do such a thing?
Thanks in advance!
Eden Ben simon
Aucun commentaire:
Enregistrer un commentaire