appcompat - Toolbar is not visible on Android 4.X devices -
i updated android.support:appcompat lib 22.1.1.
toolbar visible on lollipop device not on 4.x device.
i have tried extending appcompatactivity, still no luck. if else required please let me know.
here project styles , base activity xml file.
styles.xml
<style name="apptheme.base" parent="theme.appcompat.light.noactionbar"> <item name="colorprimary">@color/primary</item> <item name="colorprimarydark">@color/primarydark</item> <item name="coloraccent">@color/primary</item> <item name="colorcontrolhighlight">@color/primary</item> <item name="drawerarrowstyle">@style/drawerarrowstyle</item> <item name="windowactionmodeoverlay">true</item> <item name="windowactionbaroverlay">true</item> <item name="android:windowactionbaroverlay">true</item> <item name="android:windowbackground">@color/activity_bg</item> <item name="windowactionbar">false</item> <item name="windownotitle">true</item> </style>
activity_base.xml
<relativelayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.com/apk/res-auto" android:id="@+id/fulllayout" android:layout_width="match_parent" android:layout_height="match_parent"> <android.support.v7.widget.toolbar android:minheight="?attr/actionbarsize" android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/toolbar" android:theme="@style/themeoverlay.appcompat.dark.actionbar" app:popuptheme="@style/themeoverlay.appcompat.light" android:background="@color/primary"> </android.support.v7.widget.toolbar> <framelayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/container"> </framelayout> </relativelayout>
update :
issue layout inflated in container part. overlapping toolbar have removed views , worked.
thanks all...
Comments
Post a Comment