コード例 #1
0
  @Override
  protected void onStart() {
    super.onStart();
    taskAnswer = (EditText) findViewById(R.id.taskAnswerEditText);
    taskDesc = (TextView) findViewById(R.id.taskDescriptionTextView);
    taskName = (TextView) findViewById(R.id.taskNameTextView);

    taskName.setText(GlobalVariables.getTask().getName());
    taskDesc.setText(GlobalVariables.getTask().getDescription());
  }
コード例 #2
0
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_task);

    if (savedInstanceState == null) {
      getFragmentManager()
          .beginTransaction()
          .add(R.id.container, new PlaceholderFragment())
          .commit();
    }
    decorationDesigner();
  }
コード例 #3
0
 @Override
 public void decorationDesigner() {
   super.decorationDesigner();
   headerTextView.setText(getText(R.string.title_activity_task));
 }