android - how to show always a view in the screen -
i have xml activity , want show gallery view in screen.when use layout , listview goes bigger gallary goes under listview , out of visible.how can show in screen listview goes bigger screen size? using layout or type.
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <expandablelistview android:id="@+id/listview" android:layout_width="match_parent" android:layout_height="wrap_content"></expandablelistview> <gallery android:id="@+id/gallery_footer_row" android:layout_width="fill_parent" /> </linearlayout>
<?xml version="1.0" encoding="utf-8"?> <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <expandablelistview android:id="@+id/listview" android:layout_width="match_parent" android:layout_height="0dp" android:layout_weight="1"> </expandablelistview> <gallery android:id="@+id/gallery_footer_row" android:layout_width="fill_parent" /> </linearlayout>
Comments
Post a Comment