diff options
| author | Eder Bastos <bastos.eder@gmail.com> | 2015-05-10 10:29:29 -0400 |
|---|---|---|
| committer | Eder Bastos <bastos.eder@gmail.com> | 2015-05-10 10:30:09 -0400 |
| commit | 3f1465196c7ea13a99517ddcdcd56f75d4359f99 (patch) | |
| tree | 4a55628d4fc51300361b96cbedb6b04baa0e3146 /Source/Android/app/src/main/res/layout | |
| parent | 24c6be9d0f8dfddc84898cd02c2b98c34f444712 (diff) | |
Add touch feedback to GameGridActivity and AddDirectoryActivity.
Diffstat (limited to 'Source/Android/app/src/main/res/layout')
| -rw-r--r-- | Source/Android/app/src/main/res/layout/card_game.xml | 87 | ||||
| -rw-r--r-- | Source/Android/app/src/main/res/layout/list_item_file.xml | 21 |
2 files changed, 49 insertions, 59 deletions
diff --git a/Source/Android/app/src/main/res/layout/card_game.xml b/Source/Android/app/src/main/res/layout/card_game.xml index e0aa7f01f4..dc8321f8f8 100644 --- a/Source/Android/app/src/main/res/layout/card_game.xml +++ b/Source/Android/app/src/main/res/layout/card_game.xml @@ -2,9 +2,14 @@ <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - android:layout_width="200dp" - android:layout_height="250dp" - android:transitionName="card_game"> + android:layout_width="0dp" + tools:layout_width="224dp" + android:layout_height="256dp" + android:transitionName="card_game" + android:focusable="true" + android:clickable="true" + android:foreground="?android:attr/selectableItemBackground" + > <LinearLayout android:layout_width="match_parent" @@ -17,53 +22,37 @@ android:layout_height="0dp" android:transitionName="image_game_screen" android:layout_weight="1" - tools:src="@drawable/placeholder_screenshot"/> + tools:src="@drawable/placeholder_screenshot" + tools:scaleType="centerCrop"/> + + <TextView + android:id="@+id/text_game_title" + style="@android:style/TextAppearance.Material.Subhead" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:layout_marginTop="16dp" + android:layout_toStartOf="@+id/button_details" + android:ellipsize="end" + android:lines="1" + android:maxLines="1" + tools:text="The Legend of Zelda: The Wind Waker"/> + + <TextView + android:id="@+id/text_game_description" + style="@android:style/TextAppearance.Material.Caption" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="16dp" + android:layout_marginTop="8dp" + android:layout_marginLeft="16dp" + android:layout_marginRight="16dp" + android:ellipsize="end" + android:lines="1" + android:maxLines="1" + tools:text="Zany rhythm action!"/> - <RelativeLayout - android:layout_width="match_parent" - android:layout_height="72dp"> - - - <TextView - android:id="@+id/text_game_title" - style="@android:style/TextAppearance.Material.Subhead" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_below="@+id/image_game_screen" - android:layout_marginLeft="16dp" - android:layout_marginTop="16dp" - android:layout_toStartOf="@+id/button_details" - android:ellipsize="end" - android:lines="1" - android:maxLines="1" - tools:text="Rhythm Heaven Fever"/> - - <TextView - android:id="@+id/text_game_description" - style="@android:style/TextAppearance.Material.Caption" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignEnd="@+id/text_game_title" - android:layout_alignParentBottom="true" - android:layout_alignStart="@+id/text_game_title" - android:layout_marginBottom="16dp" - android:layout_toStartOf="@+id/button_details" - android:ellipsize="end" - android:lines="1" - android:maxLines="1" - android:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus sed odio vel quam auctor euismod. Pellentesque odio nibh, fermentum ut hendrerit id, ultrices et justo. " - tools:text="Zany rhythm action!"/> - - <ImageButton - android:id="@+id/button_details" - style="@android:style/Widget.Material.Light.Button.Borderless.Small" - android:layout_width="48dp" - android:layout_height="48dp" - android:layout_alignParentEnd="true" - android:layout_alignTop="@+id/text_game_title" - android:src="@drawable/ic_action_overflow"/> - </RelativeLayout> </LinearLayout> </android.support.v7.widget.CardView> diff --git a/Source/Android/app/src/main/res/layout/list_item_file.xml b/Source/Android/app/src/main/res/layout/list_item_file.xml index 3999d0368b..7d54e77d27 100644 --- a/Source/Android/app/src/main/res/layout/list_item_file.xml +++ b/Source/Android/app/src/main/res/layout/list_item_file.xml @@ -1,30 +1,31 @@ <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" - android:orientation="horizontal" android:layout_width="match_parent" - android:layout_height="56dp"> + android:layout_height="56dp" + android:background="?android:attr/selectableItemBackground" + android:orientation="horizontal"> <ImageView android:id="@+id/image_type" - android:background="@drawable/oval_ripple_grey" - tools:src="@drawable/ic_wii" - android:layout_gravity="center_vertical" android:layout_width="32dp" android:layout_height="32dp" + android:layout_gravity="center_vertical" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" - android:padding="4dp"/> + android:background="@drawable/oval_ripple_grey" + android:padding="4dp" + tools:src="@drawable/ic_wii"/> <TextView + android:id="@+id/text_file_name" android:layout_width="0dp" android:layout_height="wrap_content" - android:layout_weight="1" + android:layout_gravity="center_vertical" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" - tools:text="File Name" + android:layout_weight="1" android:textSize="16sp" - android:layout_gravity="center_vertical" - android:id="@+id/text_file_name"/> + tools:text="File Name"/> </LinearLayout>
\ No newline at end of file |
