Android Lollipop view height doesn't fit screen -
i'm working on bringing app targeting api level 18 support @ least lollipop level 21, i've run graphical issue. when targeting api level 21+ view seems large screen, , bottom of app truncated on screen buttons:
the xml defined as:
<?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" > <include layout="@layout/toolbar" android:layout_width="match_parent" android:layout_height="wrap_content"/> <tabhost android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_height="match_parent" > <relativelayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" > <framelayout android:id="..." android:layout_width="match_parent" android:layout_height="match_parent" android:layout_above="@android:id/tabs" > </framelayout> <tabwidget android:id="@android:id/tabs" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignparentbottom="true" > </tabwidget> </relativelayout> </tabhost> </linearlayout>
can see i'm doing wrong?
try in v21 style.xml
<item name="android:windowtranslucentstatus">true</item> <item name="android:windowtranslucentnavigation">true</item> <item name="android:fitssystemwindows">true</item>
you might interested this
Comments
Post a Comment