android - App Elevation is not working -


activity_main.xml

<?xml version="1.0" encoding="utf-8"?> <linearlayout     xmlns:android="http://schemas.android.com/apk/res/android"     xmlns:tools="http://schemas.android.com/tools"     android:layout_width="match_parent"     android:layout_height="match_parent"     xmlns:app="http://schemas.android.com/apk/res-auto"     android:background="@color/tan_background"     android:orientation="vertical"     tools:context="com.example.android.miwok.mainactivity">      <android.support.design.widget.appbarlayout         android:layout_width="match_parent"         android:layout_height="wrap_content"         android:theme="@style/apptheme"         app:elevation="0dp">          <android.support.design.widget.tablayout             android:id="@+id/sliding_tabs"             style="@style/mycustomtablayout"             android:layout_width="match_parent"             android:layout_height="wrap_content" />      </android.support.design.widget.appbarlayout>      <android.support.v4.view.viewpager         android:id="@+id/viewpager"         android:layout_width="match_parent"         android:layout_height="match_parent" /> </linearlayout> 

app screenshot

i created app udacity course. want know how can remove elevation appbar. have tried multiple ways it's not working. preview tab shadow not visible want in app. in emulator, appears again. have tried changing styles.xml , using both android:elevation , app:elevation.

try this

getsupportactionbar().setelevation(0); 

Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -