Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[Android] Change the Game List items to be formatted similarly to how…
… the folder browser is. Also ensure the 'no banner' icon scales down to the same size as the other banners.
- Loading branch information
Showing
3 changed files
with
58 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,43 +1,54 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="fill_parent" | ||
| android:orientation="vertical" > | ||
|
|
||
| <LinearLayout | ||
| android:layout_width="match_parent" | ||
| android:layout_height="wrap_content" > | ||
|
|
||
| <ImageView | ||
| android:id="@+id/GameItemIcon" | ||
| android:layout_width="96dp" | ||
| android:layout_height="match_parent" /> | ||
|
|
||
| <LinearLayout | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="match_parent" | ||
| android:orientation="vertical" > | ||
|
|
||
| <TextView | ||
| android:id="@+id/GameItemTitle" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginLeft="5dip" | ||
| android:layout_marginTop="5dip" | ||
| android:singleLine="true" | ||
| android:text="@+id/TextView01" | ||
| android:textStyle="bold" /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/GameItemSubText" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_marginLeft="10dip" | ||
| android:text="@+id/TextView02" /> | ||
|
|
||
| </LinearLayout> | ||
|
|
||
| </LinearLayout> | ||
|
|
||
| </LinearLayout> | ||
| android:layout_height="?android:attr/listPreferredItemHeight" | ||
| android:padding="3dp" > | ||
|
|
||
| <ImageView | ||
| android:id="@+id/GameItemIcon" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="fill_parent" | ||
|
|
||
| android:layout_alignParentTop="true" | ||
| android:layout_alignParentBottom="true" | ||
| android:layout_marginRight="6dip" /> | ||
|
|
||
|
|
||
| <TextView | ||
| android:id="@+id/GameItemSubText" | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="26dip" | ||
|
|
||
| android:layout_toRightOf="@id/GameItemIcon" | ||
| android:layout_alignParentBottom="true" | ||
| android:layout_alignParentRight="true" | ||
|
|
||
| android:singleLine="true" | ||
| android:ellipsize="marquee"/> | ||
|
|
||
| <TextView | ||
| android:id="@+id/GameItemTitle" | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="wrap_content" | ||
|
|
||
| android:layout_toRightOf="@id/GameItemIcon" | ||
| android:layout_alignParentRight="true" | ||
| android:layout_alignParentTop="true" | ||
| android:layout_above="@id/GameItemSubText" | ||
| android:layout_alignWithParentIfMissing="true" | ||
|
|
||
| android:gravity="center_vertical" | ||
| android:textStyle="bold" /> | ||
|
|
||
| <ImageView | ||
| android:src="@android:drawable/divider_horizontal_dark" | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="wrap_content" | ||
| android:scaleType="fitXY" | ||
| android:paddingLeft="5dp" | ||
| android:paddingRight="5dp" | ||
| android:paddingBottom="2dp" | ||
| android:paddingTop="2dp" /> | ||
|
|
||
| </RelativeLayout> | ||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters