-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add scrollbar style to candidate view
Currently candidate view use the default style in Android OS, which varies in different manufacturer. Adding a style to it so that it has the same scrollbar on different Android model.
- Loading branch information
Showing
4 changed files
with
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:shape="rectangle"> | ||
<size android:height="4dp" android:width="12dp" /> | ||
<solid android:color="#66666666" /> | ||
<corners android:radius="4dp"/> | ||
</shape> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<style name="candidate_scrollBar"> | ||
<item name="android:scrollbarSize">4dp</item> | ||
<item name="android:scrollbarStyle">outsideOverlay</item> | ||
<item name="android:scrollbars">horizontal</item> | ||
<item name="android:fadeScrollbars">true</item> | ||
<item name="android:scrollbarThumbHorizontal">@drawable/candidate_scrollbar_thumb</item> | ||
</style> | ||
</resources> |