[Android] Simplify the line divider for the folder browser and game list. Turns out someone disabled it in the list view initially. No more custom implementation now.

This commit is contained in:
Lioncash 2013-08-29 12:06:31 -04:00
parent 8ae076e665
commit 64b83a18b2
3 changed files with 16 additions and 39 deletions

View File

@ -3,12 +3,12 @@
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight" android:layout_height="?android:attr/listPreferredItemHeight"
android:padding="3dip"> android:padding="3dip">
<ImageView <ImageView
android:id="@+id/ImageIcon" android:id="@+id/ImageIcon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginRight="6dip"/> android:layout_marginRight="6dip"/>
@ -17,37 +17,26 @@
android:id="@+id/FolderSubTitle" android:id="@+id/FolderSubTitle"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="26dip" android:layout_height="26dip"
android:layout_toRightOf="@id/ImageIcon" android:layout_toRightOf="@id/ImageIcon"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:singleLine="true" android:singleLine="true"
android:ellipsize="marquee" android:ellipsize="marquee"/>
android:text="Subtitle" />
<TextView <TextView
android:id="@+id/FolderTitle" android:id="@+id/FolderTitle"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toRightOf="@id/ImageIcon" android:layout_toRightOf="@id/ImageIcon"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_above="@id/FolderSubTitle" android:layout_above="@id/FolderSubTitle"
android:layout_alignWithParentIfMissing="true" android:layout_alignWithParentIfMissing="true"
android:gravity="center_vertical" android:gravity="center_vertical"
android:text="Title"
android:textStyle="bold" /> 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> </RelativeLayout>

View File

@ -8,47 +8,36 @@
android:id="@+id/GameItemIcon" android:id="@+id/GameItemIcon"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="fill_parent" android:layout_height="fill_parent"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_marginRight="6dip" /> android:layout_marginRight="6dip" />
<TextView <TextView
android:id="@+id/GameItemSubText" android:id="@+id/GameItemSubText"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="26dip" android:layout_height="26dip"
android:layout_toRightOf="@id/GameItemIcon" android:layout_toRightOf="@id/GameItemIcon"
android:layout_alignParentBottom="true" android:layout_alignParentBottom="true"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:singleLine="true" android:singleLine="true"
android:ellipsize="marquee"/> android:ellipsize="marquee"/>
<TextView <TextView
android:id="@+id/GameItemTitle" android:id="@+id/GameItemTitle"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toRightOf="@id/GameItemIcon" android:layout_toRightOf="@id/GameItemIcon"
android:layout_alignParentRight="true" android:layout_alignParentRight="true"
android:layout_alignParentTop="true" android:layout_alignParentTop="true"
android:layout_above="@id/GameItemSubText" android:layout_above="@id/GameItemSubText"
android:layout_alignWithParentIfMissing="true" android:layout_alignWithParentIfMissing="true"
android:gravity="center_vertical" android:gravity="center_vertical"
android:textStyle="bold" /> 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> </RelativeLayout>

View File

@ -3,5 +3,4 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:choiceMode="singleChoice" android:choiceMode="singleChoice"
android:divider="@android:color/transparent" android:dividerHeight="1dp"/>
android:dividerHeight="0dp"/>