Hello I have my custom master / flow layout but do not work for tablets.
My List Active Layout:
& lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: app = "http://schemas.android.com/ apk / res-auto" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: orientation = "vertical" Android: FitsSystemWindows = "true" & gt; & Lt; Include in Android: id = "@ + id / toolbar_actionbar" layout = "@ layout / toolbar_default" /> & Lt; Fragment xmlns: Android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" Android: id = "@ + id / item_list" android: name = "it.package.ItemListFragment" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: Layout_marginLeft = "L6dp" Android: Layout_marginRight = "L6dp" equipment manual = "it.package. items list Activity "tool: layout =" @ layout / list_grast_sign "/> & Lt; / LinearLayout & gt;
My extension layout:
& lt; LinearLayout xmlns: android = "http://schemas.android.com/apk/res/android" xmlns: app = "http://schemas.android.com/apk/res-auto" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: Orientation = "Vertical" Android: fitsSystemWindows = "true" & gt; & Lt; Include in Android: id = "@ + id / toolbar_actionbar" layout = "@ layout / toolbar_default" /> & Lt; FrameLayout xmlns: Android = "http://schemas.android.com/apk/res/android" xmlns: tools = "http://schemas.android.com/tools" Android: id = "@ + id / item_detail_container" Android: layout_width = "match_parent" Android: layout_height = "match_parent" tool: reference = "it.package.ItemDetailActivity" tool: ignore = "mergeRootFrame" /> & Lt; / LinearLayout & gt;
And the tablet has a two-way layout:
& lt; linearLayout xmlns: android = "http://schemas.android.com/apk/res / Android" xmlns: device = "http://schemas.android.com/tools" Android: layout_width = "match_parent" Android: layout_height = "Match_parent" Android: baselineAligned = "false" android: divider = "android: attr / divider horizontal" android: orientation = "horizontal" Android: Shows Diwhiders = "Medium" tool: reference = "it.package.ItemListActivity" & gt ; & Lt ;! - This layout is a two-way layout for item master / extension flow - & gt; & Lt; Include in Android: id = "@ + id / toolbar_actionbar" layout = "@ layout / toolbar_default" /> & Lt; Piece android: id = "@ + id / item_list" android: name = "it.unifi.package.ItemListFragment" Android: layout_width = "0dp" Android: layout_height = "match_parent" Android: layout_weight = "1" Equipment: layout = "@ Layout / list_success_content" /> & Lt; FrameLayout android: id = "@ + id / item_detail_container" Android: layout_width = "0dp" Android: layout_height = "match_parent" Android: layout_weight = "3" / & gt; & Lt; / LinearLayout & gt;
All works for the smartphone, but in the tablet I have a white page.
Try this:
& lt; LinearLayout Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: baselineAligned = "false" android: divider =: Android: orientation = "horizontal" Android: showDividers = "Medium" Android: layout_below = "@ + id / Toolbar_actionbar "Tools:" Android Attr / DividerHorizontal? " Context = "it.package.ItemListActivity" & gt; & Lt; Piece android: id = "@ + id / item_list" android: name = "ItkpackagekItemListFragment" Android: layout_width = "0dp" Android: Layout_height = "Wrap_content" Android: layout_weight = "1" equipment layout = "@ Layout / list_grad_content "/> & Lt; Android: layout_height = "wrap_content" Android: layout_weight = "3" & Lt; / LinearLayout & gt; & Lt; Android.support.v7.widget.Toolbar Android: id = "@ + id / toolbar_actionbar" Android: layout_width = "match_parent" android: layout_height = "wrap_content" android: background = "@color / background_color" android: minHeight = "? Atri / actionbarsis "/> & Lt; / RelativeLayout & gt;
No comments:
Post a Comment