java - Toolbar hidden by noification pannel -


so i've generated apk, when start app, toolbar hidder noification pannel: android.support.v7.widget.toolbar

enter image description here

toolbar.xml:

<?xml version="1.0" encoding="utf-8"?>  <android.support.v7.widget.toolbar     xmlns:local="http://schemas.android.com/apk/res-auto"     android:id="@+id/main_toolbar"     android:layout_width="match_parent"     android:layout_height="50px"     android:background="#263355"     local:theme="@style/themeoverlay.appcompat.dark.actionbar"     local:popuptheme="@style/themeoverlay.appcompat.light"     xmlns:android="http://schemas.android.com/apk/res/android">      <linearlayout         android:id="@+id/main_toolbar_layout"         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:gravity="center"         android:orientation="vertical">          <textview             android:id="@+id/main_toolbar_title"             android:layout_width="wrap_content"             android:layout_height="wrap_content"             android:textcolor="#ffffff"             android:textsize="16sp"             android:textisselectable="false"             android:textalignment="center"             android:layout_marginright="24dp" />      </linearlayout>  </android.support.v7.widget.toolbar> 

androidmanifest:

<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android"     package="package" >     <uses-permission android:name="android.permission.internet" />     <application         android:allowbackup="true"         android:icon="@mipmap/ic_launcher_solutis"         android:label="@string/app_name"         android:theme="@style/apptheme" >         <activity             android:name=".splashscreen"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.main" />                 <category android:name="android.intent.category.launcher" />             </intent-filter>         </activity>         <activity             android:name=".mainactivity"             android:label="@string/app_name" >             <intent-filter>                 <action android:name="android.intent.action.accueil" />                 <category android:name="android.intent.category.default" />             </intent-filter>         </activity>     </application> </manifest> 

values/style.xml:

<?xml version="1.0" encoding="utf-8"?> <resources>      <style name="apptheme" parent="theme.appcompat.light.noactionbar">     </style>  </resources> 

values-v19:

<?xml version="1.0" encoding="utf-8"?> <resources>     <!-- base application theme. -->     <style name="apptheme" parent="theme.appcompat.light.noactionbar">         <!-- customize theme here. -->         <item name="android:windowtranslucentstatus">true</item>     </style> </resources> 

i'm on htc 1 device, if think not whats device use...

i think should remove line:

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

Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -