コード例 #1
0
  private void showQuestions() {
    setContentView(R.layout.main);

    TextView text = (TextView) findViewById(R.id.xmlText);
    for (Question question : questions) {
      text.append("\n" + question.toString());
    }
  }
コード例 #2
0
  @Override
  public void onCreate(Bundle savedInstanceState) {
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    super.onCreate(savedInstanceState);

    questions = Config.getInstance().getQuestionRepository().getQuestions();

    //        setupAlarms();
    for (Question question : questions) Log.v(LOGTAG, question.toString());

    // questionViews = new Vector<View>();
    // createQuestionViews();
    setContentView(R.layout.home);
  }