Skip to content

Commit

Permalink
Merge pull request #139 from dievskiy/master
Browse files Browse the repository at this point in the history
improve ui for buttons
  • Loading branch information
grishka authored Feb 23, 2021
2 parents 524b6a9 + 8701830 commit c336163
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
31 changes: 31 additions & 0 deletions Houseclub/src/main/res/drawable/button_grey_background.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<transition xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<ripple android:color="?android:attr/colorControlHighlight">
<item>
<shape android:id="@android:id/mask">
<solid android:color="#f2f2f2" />
<padding
android:bottom="0dp"
android:left="8dp"
android:right="8dp"
android:top="0dp" />
<corners
android:radius="28dp" />
</shape>
</item>
</ripple>
</item>
<item>
<shape android:id="@android:id/mask">
<solid android:color="#e2e2e2" />
<padding
android:bottom="0dp"
android:left="8dp"
android:right="8dp"
android:top="0dp" />
<corners android:radius="28dp" />
</shape>
</item>

</transition>
3 changes: 2 additions & 1 deletion Houseclub/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
</style>

<style name="Widget.Button.Grey" parent="android:Widget.Material.Button">
<item name="android:textColor">#000</item>
<item name="android:textColor">#DC4855</item>
<item name="android:colorAccent">#E3E0D9</item>
<item name="android:stateListAnimator">@null</item>
<item name="android:textAllCaps">false</item>
<item name="android:background">@drawable/button_grey_background</item>
</style>

<style name="AlertDialog" parent="android:Theme.Material.Light.Dialog.Alert">
Expand Down

2 comments on commit c336163

@sankovalexandr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Гриш, собери сборку, плиз

@Sam12131
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please make a new apk with the new changes

Please sign in to comment.