add game name to list item. I really want to swap the columns now but

can't make player name/score line up correctly on right.
This commit is contained in:
Andy2 2011-03-02 06:49:04 -08:00
parent 467e999509
commit 61a9f708a2
2 changed files with 9 additions and 0 deletions

View file

@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- -*- compile-command: "cd ../../; ant install"; -*- -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
@ -36,6 +38,11 @@
android:layout_width="wrap_content"
android:layout_height="fill_parent"
>
<TextView android:id="@+id/game_name"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="right"
/>
<TextView android:id="@+id/modtime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"

View file

@ -91,6 +91,8 @@ public class GameListAdapter extends XWListAdapter {
list.addView( tmp, ii );
}
view = (TextView)layout.findViewById( R.id.game_name );
view.setText( GameUtils.gameName( m_context, path ) );
view = (TextView)layout.findViewById( R.id.state );
view.setText( summary.summarizeState( m_context ) );
view = (TextView)layout.findViewById( R.id.dict );