android - Compatiblity on NavigationView and Toolbar in Kitkat -


i'm trying run project , cool in lollipop devices(designs , etc.without problem)

but there problem in project , havent experiences compatiblity in kitkat.after installing:

http://i.imgur.com/ksykyeu.png i'm using : https://github.com/akashbang/navigationview

and here activty main:

<android.support.v4.widget.drawerlayout xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:app="http://schemas.android.com/apk/res-auto"     xmlns:card_view="http://schemas.android.com/apk/res-auto"     xmlns:custom="http://schemas.android.com/tools"     xmlns:tools="http://schemas.android.com/tools"     android:id="@+id/drawer"     android:layout_width="match_parent"     android:layout_height="match_parent"     android:fitssystemwindows="true"     tools:context=".mainactivity">      <android.support.v4.widget.swiperefreshlayout         android:id="@+id/swipe_refresh_layout"         android:layout_width="match_parent"         android:layout_height="match_parent">     <scrollview         android:layout_width="match_parent"         android:layout_height="match_parent">          <linearlayout             android:id="@+id/v"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:orientation="vertical"             android:weightsum="1">              <include                 android:id="@+id/toolbar"                 layout="@layout/tool_bar">             </include>              <com.daimajia.slider.library.sliderlayout                 android:id="@+id/slider"                 android:layout_width="match_parent"                 android:layout_height="175dp"                 android:elevation="2dp"                 custom:auto_cycle="true"                 custom:indicator_visibility="invisible"                 custom:pager_animation="accordion"                 custom:pager_animation_span="1000" />              <button                 android:id="@+id/btncat"                 android:layout_width="300dp"                 android:layout_height="55dp"                 android:layout_gravity="center"                 android:drawablestart="@drawable/ic_home"                 android:paddingend="40dp"                 android:paddingstart="20sp"                 android:text="@string/category"                 android:textcolor="#ffffff"                 android:textdirection="ltr" />              <android.support.v7.widget.cardview                 android:layout_width="fill_parent"                 android:layout_height="wrap_content"                 android:layout_marginleft="9dp"                 android:layout_marginright="9dp"                 android:layout_margintop="1dp"                 android:clickable="true"                 android:foreground="?android:attr/selectableitembackground"                 card_view:cardcornerradius="3dp"                 card_view:cardelevation="3sp"                 card_view:cardusecompatpadding="true">              </android.support.v7.widget.cardview>              <relativelayout                 android:id="@+id/top_layout"                 android:layout_width="match_parent"                 android:layout_height="match_parent">                  <textview                     android:id="@+id/textview"                     android:layout_width="wrap_content"                     android:layout_height="wrap_content"                     android:layout_alignparenttop="true"                     android:layout_alignstart="@+id/cardview1"                     android:layout_margintop="30dp"                     android:text="@string/rcrechome"                     android:textappearance="?android:attr/textappearancelarge" />                  <android.support.v7.widget.cardview                     android:id="@+id/cardview1"                     android:layout_width="120dp"                     android:layout_height="180dp"                     android:layout_below="@+id/textview"                     android:layout_marginend="9dp"                     android:layout_marginstart="7dp"                     android:layout_margintop="20dp"                     android:clickable="true"                     android:foreground="?android:attr/selectableitembackground"                     card_view:cardcornerradius="3dp"                     card_view:cardelevation="3sp"                     card_view:cardusecompatpadding="true" />                  <android.support.v7.widget.cardview                     android:id="@+id/cardview2"                     android:layout_width="120dp"                     android:layout_height="180dp"                     android:layout_aligntop="@+id/cardview1"                     android:layout_centerhorizontal="true"                     android:clickable="true"                     android:foreground="?android:attr/selectableitembackground"                     card_view:cardcornerradius="3dp"                     card_view:cardelevation="3sp"                     card_view:cardusecompatpadding="true" />                  <android.support.v7.widget.cardview                     android:id="@+id/cardview3"                     android:layout_width="120dp"                     android:layout_height="180dp"                     android:layout_alignparentend="true"                     android:layout_aligntop="@+id/cardview2"                     android:layout_marginend="7dp"                     android:clickable="true"                     android:foreground="?android:attr/selectableitembackground"                     card_view:cardcornerradius="3dp"                     card_view:cardelevation="3sp"                     card_view:cardusecompatpadding="true" />                  <button                     android:id="@+id/button"                     style="?android:attr/buttonstylesmall"                     android:layout_width="70dp"                     android:layout_height="40dp"                     android:layout_alignbaseline="@+id/textview"                     android:layout_alignbottom="@+id/textview"                     android:layout_alignend="@+id/cardview3"                     android:text="@string/morebtn"                     android:textcolor="#ffffff" />             </relativelayout>         </linearlayout>     </scrollview> </android.support.v4.widget.swiperefreshlayout>      <android.support.design.widget.navigationview         android:id="@+id/navigation_view"         android:layout_width="wrap_content"         android:layout_height="match_parent"         android:layout_gravity="start"         app:headerlayout="@layout/header"         app:menu="@menu/drawer" /> </android.support.v4.widget.drawerlayout> 

theme: activity

<style name="apptheme" parent="theme.appcompat.light.noactionbar">         <item name="colorprimarydark">@color/colorprimarydark</item>         <item name="colorprimary">@color/colorprimary</item>         <item name="windowactionbar">false</item>         <item name="windowactionmodeoverlay">true</item>         <item name="android:windowtranslucentstatus">true</item>         <item name="android:colorbuttonnormal">#43a047</item>          <!-- customize theme here. -->     </style> 

toolbar codes:

<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.toolbar 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="?attr/actionbarsize"     android:background="@color/colorprimary"     app:theme="@style/themeoverlay.appcompat.dark.actionbar" /> 

but, cant figured out, why gonna happened?

cheers!

after deleting in v19 layout , style, working.

<item name="android:windowtranslucentstatus">true</item> 

Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -