Improve listen activity layout with Linear Layout

This commit is contained in:
Branden Archer
2015-12-27 16:14:35 -05:00
parent c455e966cd
commit 2e9ca0de88
3 changed files with 51 additions and 53 deletions

View File

@@ -110,8 +110,11 @@ public class ListenActivity extends Activity
@Override
public void run()
{
final TextView statusText = (TextView) findViewById(R.id.connectedDeviceNameTextView);
statusText.setText(_name);
final TextView connectedText = (TextView) findViewById(R.id.connectedTo);
connectedText.setText(_name);
final TextView statusText = (TextView) findViewById(R.id.textStatus);
statusText.setText(R.string.listening);
}
});
@@ -139,8 +142,11 @@ public class ListenActivity extends Activity
@Override
public void run()
{
final TextView connectedText = (TextView) findViewById(R.id.connectedTo);
connectedText.setText("");
final TextView statusText = (TextView) findViewById(R.id.textStatus);
statusText.setText("Listening stopped");
statusText.setText(R.string.disconnected);
}
});
}