-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set torch button background programmatically to fix issues on api 21 …
…devices * switch button background to vector drawable
- Loading branch information
Showing
7 changed files
with
45 additions
and
27 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
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
7 changes: 0 additions & 7 deletions
7
quickie/src/main/res/color/quickie_bg_torch_color_selector.xml
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,12 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
<item | ||
android:bottom="4dp" | ||
android:left="4dp" | ||
android:right="4dp" | ||
android:top="4dp"> | ||
<shape android:shape="oval"> | ||
<solid android:color="@color/quickie_bg_torch_color_selector"/> | ||
</shape> | ||
</item> | ||
</layer-list> | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:height="48dp" | ||
android:viewportHeight="24" | ||
android:viewportWidth="24" | ||
android:width="48dp"> | ||
<path | ||
android:fillColor="@color/quickie_gray" | ||
android:pathData="M12,12m-10,0a10,10 0,1 1,20 0a10,10 0,1 1,-20 0"/> | ||
</vector> |
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="quickie_stroke">#dadce0</color> | ||
<color name="quickie_gray">#dadce0</color> | ||
<color name="quickie_white">#ffffff</color> | ||
<color name="quickie_transparent">#00000000</color> | ||
<color name="quickie_torch_selected">?attr/colorAccent</color> | ||
<color name="quickie_torch_unselected">@color/quickie_stroke</color> | ||
<color name="quickie_accent_fallback">#03dac5</color> | ||
</resources> |