comparison src/com/five_ten_sg/connectbot/HelpActivity.java @ 387:04a0316bbfe3

wizard and help present help pages in the same order
author Carl Byington <carl@five-ten-sg.com>
date Wed, 06 Aug 2014 11:50:58 -0700
parents e481699db6b1
children
comparison
equal deleted inserted replaced
386:e481699db6b1 387:04a0316bbfe3
44 this.setTitle(String.format("%s: %s", 44 this.setTitle(String.format("%s: %s",
45 getResources().getText(R.string.app_name), 45 getResources().getText(R.string.app_name),
46 getResources().getText(R.string.title_help))); 46 getResources().getText(R.string.title_help)));
47 LinearLayout content = (LinearLayout)this.findViewById(R.id.topics); 47 LinearLayout content = (LinearLayout)this.findViewById(R.id.topics);
48 48
49 String[] topics = getResources().getStringArray(R.array.list_wizard_topics);
49 for (final String topic : topics) { 50 for (final String topic : topics) {
50 Button button = new Button(this); 51 Button button = new Button(this);
51 button.setText(topic); 52 button.setText(topic);
52 button.setOnClickListener(new OnClickListener() { 53 button.setOnClickListener(new OnClickListener() {
53 public void onClick(View v) { 54 public void onClick(View v) {