How to create a detailled-list view for Android 4.0 tablet, exactly like Contacts App? -
i'm developing tablet application android 4.0, , need use layout displaying 2 or 3 panes (just default contacts app). display catalog of products:
- the first pane list of items
- the second pane detailled view of selected item in list
- the last pane optional, showing wishlist (it can showed or hidden)
the approach
so, i'm using listfragment
list pane, , simple fragment
details pane. last 1 isn't integrated.
<?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" > <fragment android:id="@+id/listfragment" android:layout_width="0dip" android:layout_weight=".3" android:layout_height="match_parent" class="com.###.###.ui.fragments.listfragment" /> <fragment android:id="@+id/detailsfragment" android:layout_width="0dip" android:layout_weight=".7" android:layout_height="match_parent" class="com.###.###.ui.fragments.detailsfragment" /> </linearlayout>
- is there better approach design ?
the style
i want follow android 4.0 design guidelines , apply app same design default contacts app. searched tutorial on how apply style, , can't find that.
here's exact picture of need. (sorry, i'm not yet allowed post images...)
- how can implement default android 4.0 detailled-list style ?
i've seen this ressource picture on guidelines webpage. i'm sure there simple way implement style on application... so, if can me doing this...
Comments
Post a Comment