Skip to content

Commit

Permalink
introduce spinner button (rel. to cgeo#11276) (cgeo#11308)
Browse files Browse the repository at this point in the history
  • Loading branch information
moving-bits authored Jul 25, 2021
1 parent a9ee493 commit 2ab28d1
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
10 changes: 10 additions & 0 deletions main/res/drawable/outline_arrow_drop_down_24.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24"
android:tint="?attr/colorControlNormal">
<path
android:fillColor="@android:color/white"
android:pathData="M7,10l5,5 5,-5H7z"/>
</vector>
2 changes: 1 addition & 1 deletion main/res/layout/logcache_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<Button
android:id="@+id/type"
style="@style/button_full"
style="@style/button_full_spinner"
android:layout_width="0dip"
android:layout_weight="1"
tools:text="log type"/>
Expand Down
2 changes: 1 addition & 1 deletion main/res/layout/logtrackable_activity.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<Button
android:id="@+id/type"
style="@style/button_full"
style="@style/button_full_spinner"
android:layout_width="0dip"
android:layout_weight="1"
tools:text="type"/>
Expand Down
5 changes: 5 additions & 0 deletions main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@
<item name="android:layout_marginBottom">5dip</item>
</style>

<style name="button_full_spinner" parent="button_full">
<item name="icon">@drawable/outline_arrow_drop_down_24</item>
<item name="iconGravity">textEnd</item>
</style>

<style name="button_letter" parent="button">
<item name="android:layout_width">wrap_content</item>
<item name="android:minWidth">40sp</item>
Expand Down

0 comments on commit 2ab28d1

Please sign in to comment.