tapping thumbnail opens game

Only the leftmost column toggles selection now.
This commit is contained in:
Eric House 2020-08-20 14:13:56 -07:00
parent a76556ca20
commit 9aca3bded7
3 changed files with 14 additions and 4 deletions

View file

@ -166,11 +166,12 @@ public class GameListItem extends LinearLayout
{
int id = view.getId();
switch ( id ) {
case R.id.view_loaded:
case R.id.game_view_container:
toggleSelected();
break;
case R.id.right_side:
case R.id.thumbnail:
if ( null != m_summary ) {
m_cb.itemClicked( GameListItem.this, m_summary );
}
@ -201,12 +202,13 @@ public class GameListItem extends LinearLayout
m_expandButton.setOnExpandChangedListener( this );
m_viewUnloaded = (TextView)findViewById( R.id.view_unloaded );
m_viewLoaded = findViewById( R.id.view_loaded );
m_viewLoaded.setOnClickListener( this );
findViewById( R.id.game_view_container ).setOnClickListener(this);
m_list = (LinearLayout)findViewById( R.id.player_list );
m_state = (TextView)findViewById( R.id.state );
m_modTime = (TextView)findViewById( R.id.modtime );
m_gameTypeImage = (ImageView)findViewById( R.id.game_type_marker );
m_thumb = (ImageView)findViewById( R.id.thumbnail );
m_thumb.setOnClickListener( this );
m_role = (TextView)findViewById( R.id.role );
findViewById( R.id.right_side ).setOnClickListener( this );
@ -370,7 +372,7 @@ public class GameListItem extends LinearLayout
if ( null != m_summary ) { // to be safe
int iconID;
if ( m_selected ) {
iconID = R.drawable.check_circle__gen;
iconID = R.drawable.ic_check_circle;
} else if ( m_summary.isMultiGame() ) {
iconID = R.drawable.ic_multigame;
} else {

View file

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="#FF000000"
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM10,17l-5,-5 1.41,-1.41L10,14.17l7.59,-7.59L19,8l-9,9z"/>
</vector>

View file

@ -25,7 +25,6 @@ SRC_SVGS = \
send.svg \
trade.svg \
untrade.svg \
check_circle.svg \
XHDPI_IMGS:=$(foreach img,$(SRC_SVGS:.svg=__gen.png),$(IMG_DEST)/drawable-xhdpi/$(img))
MDPI_IMGS:=$(foreach img,$(SRC_SVGS:.svg=__gen.png),$(IMG_DEST)/drawable-mdpi/$(img))