diff options
author | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-03-01 11:05:40 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel.gultsch@rwth-aachen.de> | 2014-03-01 11:05:40 +0100 |
commit | 2ab6cb0ada6370e6ea83a73e0a6a39ea3ff90715 (patch) | |
tree | 180411e193816a07a49f083504e7279db2796430 /res | |
parent | 7b1dd0d0ee170c6892e31b2ef0f66f1c828f24d1 (diff) |
hover effect
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable/blue.xml | 5 | ||||
-rw-r--r-- | res/drawable/bluebackground.xml | 9 | ||||
-rw-r--r-- | res/drawable/darkblue.xml | 5 | ||||
-rw-r--r-- | res/drawable/darkred.xml | 5 | ||||
-rw-r--r-- | res/drawable/red.xml | 5 | ||||
-rw-r--r-- | res/drawable/redbackground.xml | 9 | ||||
-rw-r--r-- | res/layout/fragment_conversation.xml | 8 |
7 files changed, 42 insertions, 4 deletions
diff --git a/res/drawable/blue.xml b/res/drawable/blue.xml new file mode 100644 index 00000000..5692154a --- /dev/null +++ b/res/drawable/blue.xml @@ -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="#FF1da9da" /> +</shape>
\ No newline at end of file diff --git a/res/drawable/bluebackground.xml b/res/drawable/bluebackground.xml new file mode 100644 index 00000000..fbf6d317 --- /dev/null +++ b/res/drawable/bluebackground.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android" > + <item + android:state_pressed="false" + android:drawable="@drawable/blue" /> + <item + android:state_pressed="true" + android:drawable="@drawable/darkblue" /> +</selector> diff --git a/res/drawable/darkblue.xml b/res/drawable/darkblue.xml new file mode 100644 index 00000000..b33c38ce --- /dev/null +++ b/res/drawable/darkblue.xml @@ -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="#FF0099cc" /> +</shape>
\ No newline at end of file diff --git a/res/drawable/darkred.xml b/res/drawable/darkred.xml new file mode 100644 index 00000000..1313cc2f --- /dev/null +++ b/res/drawable/darkred.xml @@ -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="#ffcc0000" /> +</shape>
\ No newline at end of file diff --git a/res/drawable/red.xml b/res/drawable/red.xml new file mode 100644 index 00000000..abdc07d6 --- /dev/null +++ b/res/drawable/red.xml @@ -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="#FFe92727" /> +</shape>
\ No newline at end of file diff --git a/res/drawable/redbackground.xml b/res/drawable/redbackground.xml new file mode 100644 index 00000000..ddca66f4 --- /dev/null +++ b/res/drawable/redbackground.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="utf-8"?> +<selector xmlns:android="http://schemas.android.com/apk/res/android" > + <item + android:state_pressed="false" + android:drawable="@drawable/red" /> + <item + android:state_pressed="true" + android:drawable="@drawable/darkred" /> +</selector> diff --git a/res/layout/fragment_conversation.xml b/res/layout/fragment_conversation.xml index 4e0d2030..cea2be1f 100644 --- a/res/layout/fragment_conversation.xml +++ b/res/layout/fragment_conversation.xml @@ -66,7 +66,7 @@ android:id="@+id/new_fingerprint" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:background="#e92727" + android:background="@drawable/redbackground" android:orientation="vertical" android:visibility="gone" > @@ -94,7 +94,7 @@ android:id="@+id/pgp_keyentry" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:background="#ffa713" + android:background="@drawable/bluebackground" android:orientation="vertical" android:visibility="gone" > @@ -103,14 +103,14 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="OpenPGP encrypted messages found" - android:textColor="#000" + android:textColor="#eee" android:textStyle="bold" android:padding="8dp" android:textSize="20sp"/> <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" - android:textColor="#000" + android:textColor="#eee" android:text="Click here to enter passphrase and decrypt messages" android:paddingLeft="8dp" android:paddingBottom="8dp" |