Show toolbar shadow on pre-Lollipop

This commit is contained in:
2016-04-19 08:27:45 -04:00
parent 8938b0c9a6
commit d05d404c55
7 changed files with 76 additions and 8 deletions

View File

@@ -191,4 +191,8 @@
</LinearLayout>
</ScrollView>
<View
android:id="@+id/toolbarShadow"
style="@style/ToolbarShadow"/>
</RelativeLayout>

View File

@@ -17,10 +17,10 @@
~ with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
<RelativeLayout android:id="@+id/container"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/container"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="org.isoron.uhabits.MainActivity"
@@ -28,15 +28,19 @@
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
app:popupTheme="?toolbarPopupTheme"
style="@style/Toolbar"/>
style="@style/Toolbar"
app:popupTheme="?toolbarPopupTheme"/>
<fragment
android:id="@+id/fragment1"
android:name="org.isoron.uhabits.fragments.ListHabitsFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:layout="@layout/list_habits_fragment"
android:layout_below="@id/toolbar"/>
android:layout_below="@id/toolbar"
tools:layout="@layout/list_habits_fragment"/>
<View
android:id="@+id/toolbarShadow"
style="@style/ToolbarShadow"/>
</RelativeLayout>

View File

@@ -39,4 +39,8 @@
android:layout_gravity="center"
android:layout_below="@id/toolbar"/>
<View
android:id="@+id/toolbarShadow"
style="@style/ToolbarShadow"/>
</RelativeLayout>

View File

@@ -42,4 +42,8 @@
android:layout_gravity="center"
android:layout_below="@id/toolbar"/>
<View
android:id="@+id/toolbarShadow"
style="@style/ToolbarShadow"/>
</RelativeLayout>