Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save oatpano/9cfb02696a5c6e1c1c205bf19ca805e7 to your computer and use it in GitHub Desktop.
Save oatpano/9cfb02696a5c6e1c1c205bf19ca805e7 to your computer and use it in GitHub Desktop.
private LinearLayout layoutForm;
private LinearLayout layoutProgress;
private LinearLayout layoutResult;
private EditText edUsername;
private Button btSend;
private TextView tvResult;
@Override
protected void onCreate(Bundle savedInstanceState) {
setContentView();
initInstance()
}
private void initInstance() {
//Layout Form
layoutForm = (LinearLayout) findViewById(R.id.layoutForm);
edUsername = (EditText) findViewById(R.id.edUsername);
btSend= (Button) findViewById(R.id.btSend);
//Layout Progress
layoutProgress = (LinearLayout) findViewById(R.id.layoutProgress);
//Layout Result
layoutResult = (LinearLayout) findViewById(R.id.layoutResult);
tvResult = (TextView) findViewById(R.id.tvResult);
//setOnClick
btOk.setOnClickListener(onBtSendClickListener);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment