Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #373 from sigmabeta/android-ui-cleanup
Soften up some of the UI elements on Android
  • Loading branch information
Sonicadvance1 committed Jun 20, 2014
2 parents 0e0238e + 8a288c7 commit d62ae92
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 13 deletions.
25 changes: 20 additions & 5 deletions Source/Android/res/layout/gamelist_folderbrowser_list_item.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="3dp">
Expand All @@ -9,34 +10,48 @@
android:layout_width="wrap_content"
android:layout_height="fill_parent"

tools:src="@drawable/ic_launcher"

android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:layout_marginRight="6dip"/>

<TextView
<!-- Properties in the 'tools' namespace are only visible in the UI editor, not at runtime. -->
<TextView tools:text="@string/file_size"
android:id="@+id/ListItemSubTitle"
android:layout_width="fill_parent"
android:layout_height="26dip"
android:layout_height="26dip"

android:textColor="#bbbbbb"

android:layout_toRightOf="@id/ListItemIcon"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"

android:singleLine="true"
android:ellipsize="marquee"/>
android:ellipsize="marquee"
/>

<TextView
<!-- Properties in the 'tools' namespace are only visible in the UI editor, not at runtime. -->
<TextView tools:text="Name of Game"
android:id="@+id/ListItemTitle"
android:layout_width="fill_parent"
android:layout_height="wrap_content"

android:fontFamily="sans-serif-light"
android:textSize="22sp"
android:textColor="#555555"

android:singleLine="true"
android:ellipsize="end"

android:layout_toRightOf="@id/ListItemIcon"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:layout_above="@id/ListItemSubTitle"
android:layout_alignWithParentIfMissing="true"

android:gravity="center_vertical"
android:textStyle="bold" />
/>

</RelativeLayout>
6 changes: 4 additions & 2 deletions Source/Android/res/layout/gamelist_listview.xml
@@ -1,6 +1,8 @@
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gamelist"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/gamelist"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:choiceMode="singleChoice"
android:dividerHeight="1dp"/>
android:dividerHeight="1dp"
tools:listitem="@layout/gamelist_folderbrowser_list_item"/>
12 changes: 6 additions & 6 deletions Source/Android/res/layout/sidemenu.xml
@@ -1,20 +1,20 @@
<?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:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_height="48dp"
android:gravity="left"
android:orientation="vertical" >

<TextView
android:id="@+id/SideMenuTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_marginTop="5dip"
android:layout_margin="4dp"
android:singleLine="true"
android:text="@+id/TextView01"
android:textAppearance="?android:attr/textAppearanceLarge"
android:textStyle="bold"
tools:text="Menu Option"
android:textAppearance="?android:attr/textAppearanceLarge"
android:fontFamily="sans-serif-light"
android:textColor="#FFFFFF" />

</LinearLayout>

0 comments on commit d62ae92

Please sign in to comment.