Skip to content
This repository was archived by the owner on May 1, 2021. It is now read-only.

Commit 834bd09

Browse files
author
AndroidDeveloperLB
committed
fixed shadow image that was looking quite large.
1 parent f86865d commit 834bd09

File tree

2 files changed

+24
-11
lines changed

2 files changed

+24
-11
lines changed
Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,23 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:shape="rectangle" >
2+
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
43

5-
<gradient
6-
android:angle="90"
7-
android:endColor="#00000000"
8-
android:startColor="#43000000" />
4+
<item android:bottom="8dp">
5+
<shape android:shape="rectangle" >
6+
<size android:height="1dp" />
97

10-
<size android:height="9dp" />
8+
<solid android:color="#43000000" />
119

12-
</shape>
10+
</shape>
11+
</item>
12+
<item android:top="1dp">
13+
<shape android:shape="rectangle" android:dither="true">
14+
<gradient
15+
android:angle="270"
16+
android:endColor="#00000000"
17+
android:startColor="#10000000" />
18+
19+
<size android:height="8dp" />
20+
</shape>
21+
</item>
22+
23+
</layer-list>

MaterialStuffLibrary/res/layout/msl__activity_preference.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@
2323
android:layout_width="match_parent"
2424
android:layout_height="match_parent" />
2525

26-
<View
26+
<ImageView
2727
android:id="@+id/msl__shadowView"
2828
android:layout_width="match_parent"
2929
android:layout_height="wrap_content"
30-
android:background="@drawable/msl__action_bar_shadow"
31-
android:visibility="gone" />
30+
android:src="@drawable/msl__action_bar_shadow"
31+
android:visibility="gone"
32+
tools:ignore="ContentDescription" />
33+
3234
</FrameLayout>
3335

3436
</LinearLayout>

0 commit comments

Comments
 (0)