XML : How to work with linear layout?

Hello im trying to figure how to work with linear layouts,i dragged 1 horizontal layout to my XML file i then dragged 3 test view one next to each other,when im trying to drag image view and place it below them it always push's the text view aside how can i fix this?

  <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"  android:layout_width="match_parent"  android:layout_height="match_parent">    <LinearLayout      android:orientation="horizontal"      android:layout_width="wrap_content"      android:layout_height="397dp"></LinearLayout>    <ImageView      android:layout_width="wrap_content"      android:layout_height="wrap_content"      android:id="@+id/imageView"      android:layout_gravity="center_vertical" />    <LinearLayout      android:orientation="horizontal"      android:layout_width="match_parent"      android:layout_height="70dp"      android:weightSum="1">        <TextView          android:layout_width="110dp"          android:layout_height="wrap_content"          android:textAppearance="?android:attr/textAppearanceMedium"          android:text="Movie Name"          android:id="@+id/textView"          android:layout_marginLeft="30dp"          android:layout_marginTop="30dp"          />        <TextView          android:layout_width="110dp"          android:layout_height="wrap_content"          android:textAppearance="?android:attr/textAppearanceMedium"          android:text="Actor Name"          android:id="@+id/textView2"          android:layout_marginLeft="10dp"          android:layout_marginTop="30dp" />        <TextView          android:layout_width="100dp"          android:layout_height="wrap_content"          android:textAppearance="?android:attr/textAppearanceMedium"          android:text="Grade"          android:id="@+id/textView3"          android:layout_marginLeft="20dp"          android:layout_marginTop="30dp" />    </LinearLayout>    

No comments:

Post a Comment