Added horizontal scroll view style

pull/210/head
M66B 2 years ago
parent a3ad0db4ce
commit 233eef9ce2

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/action_foreground" />
</shape>

@ -2,10 +2,11 @@
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/style_bar"
style="@style/horizontalScrollViewStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorActionBackground"
android:scrollbars="none">
android:scrollbars="horizontal">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="wrap_content"

@ -619,6 +619,13 @@
<item name="android:fadeScrollbars">false</item>
</style>
<style name="horizontalScrollViewStyle">
<item name="android:scrollbarSize">1dp</item>
<item name="android:scrollbarThumbHorizontal">@drawable/scroll_thumb_horizontal</item>
<!--item name="android:scrollbarTrackHorizontal">@drawable/scroll_track_popup</item-->
<item name="android:fadeScrollbars">false</item>
</style>
<style name="fullScreenDialog" parent="android:Theme">
<item name="android:windowNoTitle">true</item>
<item name="android:windowIsFloating">false</item>

Loading…
Cancel
Save