-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- make them rounded (like in the files app) - add touch states
- Loading branch information
Showing
4 changed files
with
65 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ripple xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:color="?colorControlHighlight"> | ||
|
||
<item | ||
android:id="@android:id/mask" | ||
android:left="@dimen/spacer_1x" | ||
android:right="@dimen/spacer_1x" | ||
android:top="@dimen/spacer_1hx" | ||
android:bottom="@dimen/spacer_1hx"> | ||
|
||
<shape android:shape="rectangle"> | ||
<!-- value of color is irrelevant, but solid needs to be defined for mask to work --> | ||
<solid android:color="@color/bg_highlighted" /> | ||
<corners android:radius="@dimen/spacer_1hx" /> | ||
</shape> | ||
</item> | ||
|
||
<item | ||
android:left="@dimen/spacer_1x" | ||
android:right="@dimen/spacer_1x" | ||
android:top="@dimen/spacer_1hx" | ||
android:bottom="@dimen/spacer_1hx"> | ||
|
||
<selector> | ||
<item android:state_selected="true"> | ||
<shape android:shape="rectangle"> | ||
<corners android:radius="@dimen/spacer_1hx" /> | ||
<solid android:color="@color/bg_highlighted" /> | ||
</shape> | ||
</item> | ||
|
||
<item> | ||
<shape android:shape="rectangle"> | ||
<corners android:radius="@dimen/spacer_1hx" /> | ||
</shape> | ||
</item> | ||
</selector> | ||
</item> | ||
|
||
</ripple> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<selector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:left="@dimen/spacer_1x" | ||
android:right="@dimen/spacer_1x" | ||
android:top="@dimen/spacer_1hx" | ||
android:bottom="@dimen/spacer_1hx"> | ||
|
||
<item android:state_selected="true"> | ||
<shape android:shape="rectangle"> | ||
<solid android:color="@color/bg_highlighted" /> | ||
</shape> | ||
</item> | ||
|
||
<item> | ||
<shape android:shape="rectangle"/> | ||
</item> | ||
|
||
</selector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters