mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-16 15:41:16 +01:00
hide games-list hint when more than 2 games present, and add text to
that effect so people aren't surprised.
This commit is contained in:
parent
d9bb5197d4
commit
d56ce42585
3 changed files with 5 additions and 2 deletions
|
@ -12,6 +12,8 @@
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:text="@string/empty_games_list"
|
android:text="@string/empty_games_list"
|
||||||
android:textAppearance="?android:attr/textAppearanceMedium"
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
||||||
|
android:background="#FF202020"
|
||||||
|
android:gravity="center"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<ListView android:id="@id/android:list"
|
<ListView android:id="@id/android:list"
|
||||||
|
|
|
@ -532,6 +532,7 @@
|
||||||
|
|
||||||
<string name="empty_games_list">Use one of the buttons below to
|
<string name="empty_games_list">Use one of the buttons below to
|
||||||
create a game. Then tap the game to play or long-tap it for
|
create a game. Then tap the game to play or long-tap it for
|
||||||
other options.</string>
|
other options.\n(This hint will disappear whenever there are
|
||||||
|
more than two games in the list.)</string>
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
|
|
@ -247,7 +247,7 @@ public class GamesList extends XWListActivity
|
||||||
public void onContentChanged()
|
public void onContentChanged()
|
||||||
{
|
{
|
||||||
int count = DBUtils.gamesList( this ).length;
|
int count = DBUtils.gamesList( this ).length;
|
||||||
int hereOrGone = count > 3 ? View.GONE : View.VISIBLE;
|
int hereOrGone = count > 2 ? View.GONE : View.VISIBLE;
|
||||||
View hint = findViewById( R.id.empty_games_list );
|
View hint = findViewById( R.id.empty_games_list );
|
||||||
hint.setVisibility( hereOrGone );
|
hint.setVisibility( hereOrGone );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue