Android, elevation attribute ignored by LinearLayout -


i trying add elevation various components of app give little more material look. directly below layout giving me issues, have linearlayout casting shadow on sibling, element not show shadow , cannot figure out why.

<linearlayout     android:id="@+id/input_control_block"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:orientation="horizontal"     android:color="@color/white"     android:elevation="8dp">      <button         android:id="@+id/inputmodeselector"         android:layout_width="0dp"         android:layout_height="fill_parent"         android:layout_weight="3"         android:background="@color/cyan"         android:clickable="true"         android:drawableright="@drawable/ic_assignment_white_18dp"         android:gravity="center_vertical|left"         android:padding="16dp"         android:text=" text"         android:textcolor="@color/white" />      <imagebutton         android:id="@+id/addnotebutton"         android:layout_width="0dp"         android:layout_height="wrap_content"         android:layout_weight="2"         android:background="@color/cyan"         android:clickable="true"         android:gravity="center"         android:padding="8dp"         android:src="@drawable/ic_add_circle_outline_white_18dp" />      <button         android:id="@+id/alarmenablebutton"         android:layout_width="0dp"         android:layout_height="fill_parent"         android:layout_weight="3"         android:background="@color/cyan"         android:clickable="true"         android:drawableleft="@drawable/ic_notifications_off_white_18dp"         android:gravity="center_vertical|right"         android:padding="16dp"         android:text="none"         android:textcolor="#ffffff" />  </linearlayout>  <linearlayout     android:id="@+id/edit_text_block"     android:layout_width="match_parent"     android:layout_height="wrap_content"     android:animatelayoutchanges="true"     android:background="@color/white"     android:orientation="vertical"     android:padding="16dp"> //sibling element shadow should cast on 


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -