add preliminary text including number missing.

This commit is contained in:
Eric House 2012-02-10 18:44:27 -08:00
parent 114db0c96a
commit 43dca99a2c
3 changed files with 14 additions and 0 deletions

View file

@ -6,11 +6,18 @@
android:layout_height="fill_parent"
>
<TextView android:id="@+id/invite_desc"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
/>
<ListView android:id="@id/android:list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:drawSelectorOnTop="false"
android:layout_weight="1"
android:padding="8dp"
/>
<LinearLayout android:orientation="horizontal"

View file

@ -1866,5 +1866,8 @@
<string name="bt_devs_missing">Missing connections? Invite BT
devs? (I won\'t ask again until you reopen this game.)</string>
<string name="invite_descf">Please select the %d device[s] you
want to include in this game. Use the Rescan button if you
don\'t see a device you expect.</string>
</resources>

View file

@ -34,6 +34,7 @@ import android.widget.LinearLayout;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.ListView;
import android.widget.TextView;
import android.os.Handler;
import junit.framework.Assert;
@ -63,6 +64,9 @@ public class BTInviteActivity extends XWListActivity
setContentView( R.layout.btinviter );
TextView desc = (TextView)findViewById( R.id.invite_desc );
desc.setText( Utils.format( this, R.string.invite_descf, m_nMissing ) );
m_okButton = (Button)findViewById( R.id.button_ok );
m_okButton.setOnClickListener( this );
m_rescanButton = (Button)findViewById( R.id.button_rescan );