add ripple effect to buttons

This commit is contained in:
tibbi 2016-03-21 21:30:05 +01:00
parent 60fb78b1c8
commit 121fbdb490
5 changed files with 2 additions and 18 deletions

View File

@ -7,7 +7,6 @@
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name="com.simplemobiletools.calculator.MainActivity"

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:drawable="@drawable/button_pressed"
android:state_pressed="true"/>
</selector>

View File

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

View File

@ -7,7 +7,7 @@
android:layout_height="match_parent"
android:background="@color/dark_grey"
android:orientation="vertical"
tools:context="com.simplemobiletools.calculator.MainActivity">
tools:context=".MainActivity">
<TextView
android:id="@+id/formula"

View File

@ -5,14 +5,11 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:textColor">@android:color/white</item>
<item name="buttonStyle">@style/MyButton</item>
<item name="android:buttonStyle">@style/MyButton</item>
</style>
<style name="MyButton" parent="Widget.AppCompat.Button">
<item name="android:textColor">@android:color/white</item>
<item name="background">@drawable/button</item>
<item name="android:background">@drawable/button</item>
<item name="android:background">?android:attr/selectableItemBackground</item>
<item name="android:textSize">@dimen/button_text_size</item>
</style>