user interface - How to make a simpe UI for android? -
the ui want below:
------------------------------+ head|btn1|btn2|btn2 | ------------------------------- content | content | | | | | | | | | | | ------------------------------| foot|btn3|btn4|btn5 | ------------------------------|
anyone know how design xml ui?
this type of xml layout you'll looking for:
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" > <linearlayout android:id="@+id/header" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignparenttop="true" android:orientation="horizontal" > <view android:id="@+id/head" /> <button android:id="@+id/btn1" /> <button android:id="@+id/btn2" /> <button android:id="@+id/btn3" /> </linearlayout> <linearlayout android:id="@+id/footer" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" android:orientation="horizontal" > <view android:id="@+id/foot" /> <button android:id="@+id/btn4" /> <button android:id="@+id/btn5" /> <button android:id="@+id/btn6" /> </linearlayout> <listview android:id="@+id/body" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_above="@id/footer" android:layout_below="@id/header" /> </relativelayout>
obviously you'll need expand on contents of header , footer, that's basic structure. set header , footer wrap_content, align them top , bottom, respectively, listview set below , above header , footer, respectively, , fills remaining space left header , footer.
Comments
Post a Comment