0
アンドロイドアプリケーションで作業していて、私のAppBarでシャドウを取り除こうとしていますが、android:elevation="0dp"
を使用しようとしましたが、うまくいきませんでした。AppBarシャドウが削除されていません。アンドロイド
のstyles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
</style>
<style name="AppTheme.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
<style name="MyCheckBox" parent="Theme.AppCompat.Light">
<item name="colorControlNormal">#005cb8</item>
<item name="colorControlActivated">#005cb8</item>
</style>
</resources>
activity_bienvenu.xml
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background"
android:fitsSystemWindows="true"
tools:context="molfix.dev.molfix.Activities.Bvn.BienvenuActivity">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:elevation="0dp"
android:background="#91d0f0">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="45dp"
android:background="@drawable/toolbar_bienvenu"
android:scrollbars="none"
android:weightSum="1"
app:popupTheme="@style/AppTheme.PopupOverlay">
</android.support.v7.widget.Toolbar>
</android.support.design.widget.AppBarLayout>
</RelativeLayout>
:スタイルは、それはどちらか動作しませんでしたが、ここに私のコードです
私はターゲットとしてapi 25を使用していますが、最小限の19のヘルプがありますか?
なぜあなたはそのAPIレベルでのホロのテーマを使用しようとしていますか?ツールバーの影はAppCompat/Materialテーマのものです –
@ cricket_007私はそれを使用しようとはしていませんが、私は他の質問の解決策を見つけましたが、試しましたが機能しませんでした。私のXMLファイルは、まだ動作していない! –
'android:windowContentOverlay'は他の質問にあるかもしれませんが、' parent'と同じではありません...あなたは正しいテーマを編集していますか?例えば、res/values-v21が代わりに使用されています –