Adding layout to the bottom of screen in Android -
i want add layout this:
<header layout>(fixed) | | <scrollview> | | <footer layout>(fixed)
here's i've tried far:
<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" > <scrollview android:id="@+id/container" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@id/footer" > <linearlayout android:id="@+id/limain" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > </linearlayout> </scrollview> </relativelayout>
this question possible duplicate of this
remember header part missing in above example can declare like
<linearlayout android:id="@+id/header" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparenttop="true" android:weightsum="1" android:gravity="center" > <button android:id="@+id/button_show_header" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_weight="1" android:text="header." /> </linearlayout>
nd in scrollview put 1 line
android:layout_below="@id/header" >
Comments
Post a Comment