Minor layout changes.

This commit is contained in:
akwizgran
2012-11-06 19:18:05 +00:00
parent f959ef99ea
commit aa5fc4b866
6 changed files with 66 additions and 58 deletions

View File

@@ -45,6 +45,8 @@ implements OnClickListener {
layout.addView(innerLayout);
TextView interfering = new TextView(this);
interfering.setGravity(CENTER_HORIZONTAL);
interfering.setPadding(0, 0, 0, 10);
interfering.setText(R.string.interfering);
layout.addView(interfering);

View File

@@ -51,6 +51,7 @@ implements WifiStateListener, BluetoothStateListener, OnClickListener {
layout.addView(innerLayout);
TextView checkNetwork = new TextView(this);
checkNetwork.setGravity(CENTER_HORIZONTAL);
checkNetwork.setText(R.string.check_same_network);
layout.addView(checkNetwork);

View File

@@ -49,6 +49,7 @@ OnEditorActionListener {
layout.addView(innerLayout);
TextView enterNickname = new TextView(this);
enterNickname.setGravity(CENTER_HORIZONTAL);
enterNickname.setText(R.string.enter_nickname);
layout.addView(enterNickname);

View File

@@ -33,6 +33,7 @@ implements WifiStateListener, BluetoothStateListener, OnClickListener {
layout.setGravity(CENTER_HORIZONTAL);
TextView sameNetwork = new TextView(this);
sameNetwork.setGravity(CENTER_HORIZONTAL);
sameNetwork.setText(R.string.same_network);
layout.addView(sameNetwork);

View File

@@ -42,10 +42,12 @@ implements ConfirmationListener {
layout.addView(innerLayout);
TextView yourCode = new TextView(this);
yourCode.setGravity(CENTER_HORIZONTAL);
yourCode.setText(R.string.your_confirmation_code);
layout.addView(yourCode);
TextView code = new TextView(this);
code.setGravity(CENTER_HORIZONTAL);
code.setTextSize(50);
InvitationManager im = InvitationManagerFactory.getInvitationManager();
code.setText(im.getLocalConfirmationCode());