android - How to add new layout below this layout? -
how divide screen half?? how add image below layout? capture full screen want add bwlow layout 1 more layout contain textview or images how that? want devie full screen half , add new latout below layout how that?? image http://imgur.com/dlxcocu screen http://imgur.com/4wrxonf
<linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/db1_root" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="#333333" android:orientation="horizontal" > <linearlayout android:layout_width="0dp" android:layout_height="match_parent" android:layout_marginbottom="1dp" android:layout_margintop="1dp" android:layout_weight="1" android:background="#ffffff" android:orientation="vertical" > <imageview android:id="@+id/imageview1" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="0.3" android:paddingleft="1dp" android:src="@drawable/ic_launcher" /> <textview android:layout_width="wrap_content" android:layout_height="20dp" android:layout_weight="0.1" android:paddingtop="5dp" android:text="contains" android:textcolor="#000000" android:textsize="10dip" /> <com.schoollunchapp.horizontallistview android:id="@+id/listview" android:layout_width="wrap_content" android:layout_height="0dp" android:layout_weight="0.6" android:background="#ddd" > </com.schoollunchapp.horizontallistview> </linearlayout> <textview android:id="@+id/imageview1" android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" android:paddingleft="1dp" android:textcolor="#ffffff" android:text="kurdfgkjdfuhfudshfkdshfdfhs kdjhfjdshfkjdshfkdshfkshjdhfskjhfksdhfksjhfkjsdhfkjsdhfk jshfshfshfdshdfshdkjfhsafkjsahdfksahdf" />
have tried putting textview in linear layout nested within container layout , given
android:layout_weight="1"
? can check out this question.
Comments
Post a Comment