diff --git a/res/layout/layout_wizard_locale.xml b/res/layout/layout_wizard_locale.xml
index 1918f56b..ae3aecb0 100644
--- a/res/layout/layout_wizard_locale.xml
+++ b/res/layout/layout_wizard_locale.xml
@@ -14,7 +14,7 @@
android:textColor="#FFFFFF"
android:layout_alignParentTop="true"
android:layout_height="wrap_content"
- android:id="@+id/WizardTextTitle"
+ android:id="@+id/WizardLocaleTitle"
android:layout_width="wrap_content"
android:fadingEdge="vertical"
android:text="@string/wizard_locale_title"
diff --git a/res/layout/layout_wizard_root.xml b/res/layout/layout_wizard_root.xml
index 7e230a69..cdda4f49 100644
--- a/res/layout/layout_wizard_root.xml
+++ b/res/layout/layout_wizard_root.xml
@@ -4,25 +4,7 @@
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
-
-
-
-
-
+
diff --git a/res/layout/layout_wizard_tips.xml b/res/layout/layout_wizard_tips.xml
index 98b71961..5129935b 100644
--- a/res/layout/layout_wizard_tips.xml
+++ b/res/layout/layout_wizard_tips.xml
@@ -5,38 +5,7 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent">
-
-
-
-
-
-
-
+
diff --git a/res/layout/scrollingtext_buttons_view.xml b/res/layout/scrollingtext_buttons_view.xml
index 9a879b77..beea00a4 100644
--- a/res/layout/scrollingtext_buttons_view.xml
+++ b/res/layout/scrollingtext_buttons_view.xml
@@ -6,40 +6,7 @@
android:layout_height="fill_parent"
>
-
-
-
-
-
-
-
-
diff --git a/src/org/torproject/android/wizard/ConfigureTransProxy.java b/src/org/torproject/android/wizard/ConfigureTransProxy.java
index 974c968e..856fd0f6 100644
--- a/src/org/torproject/android/wizard/ConfigureTransProxy.java
+++ b/src/org/torproject/android/wizard/ConfigureTransProxy.java
@@ -108,8 +108,8 @@ public class ConfigureTransProxy extends Activity implements TorConstants {
private void stepSix(){
String title = context.getString(R.string.wizard_transproxy_title);
- TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
- txtTitle.setText(title);
+
+ setTitle(title);
Button back = ((Button)findViewById(R.id.btnWizard1));
Button next = ((Button)findViewById(R.id.btnWizard2));
diff --git a/src/org/torproject/android/wizard/LotsaText.java b/src/org/torproject/android/wizard/LotsaText.java
index 2bff3731..b831ccad 100644
--- a/src/org/torproject/android/wizard/LotsaText.java
+++ b/src/org/torproject/android/wizard/LotsaText.java
@@ -14,6 +14,7 @@ import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.preference.PreferenceManager;
+import android.support.v4.app.ActivityCompat;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
@@ -80,18 +81,15 @@ public class LotsaText extends Activity implements TorConstants{
String title = context.getString(R.string.wizard_title);
String msg = context.getString(R.string.wizard_title_msg);
- TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
- txtTitle.setText(title);
+ setTitle(title);
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
txtBody.setText(msg);
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
- ImageView img = (ImageView) findViewById(R.id.orbot_image);
btn1.setVisibility(Button.INVISIBLE);
- img.setImageResource(R.drawable.tor);
btn2.setOnClickListener(new View.OnClickListener() {
@@ -114,18 +112,16 @@ public class LotsaText extends Activity implements TorConstants{
String title = context.getString(R.string.wizard_warning_title);
String msg = context.getString(R.string.wizard_warning_msg);
- TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
- txtTitle.setText(title);
-
+ setTitle(title);
+
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
txtBody.setText(msg);
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
- ImageView img = (ImageView) findViewById(R.id.orbot_image);
btn1.setVisibility(Button.VISIBLE);
- img.setImageResource(R.drawable.warning);
+
btn1.setOnClickListener(new View.OnClickListener() {
diff --git a/src/org/torproject/android/wizard/Permissions.java b/src/org/torproject/android/wizard/Permissions.java
index dd4a2179..0b876b67 100644
--- a/src/org/torproject/android/wizard/Permissions.java
+++ b/src/org/torproject/android/wizard/Permissions.java
@@ -63,13 +63,9 @@ public class Permissions extends Activity implements TorConstants {
private void stepFourRoot(){
- String title = context.getString(R.string.wizard_permissions_title);
String msg1 = context.getString(R.string.wizard_permissions_root_msg1);
String msg2 = context.getString(R.string.wizard_permissions_root_msg2);
- TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
- txtTitle.setText(title);
-
TextView txtBody1 = ((TextView)findViewById(R.id.WizardTextBody1));
txtBody1.setText(msg1);
@@ -174,9 +170,8 @@ public class Permissions extends Activity implements TorConstants {
String title = context.getString(R.string.wizard_permissions_title);
String msg = context.getString(R.string.wizard_permissions_no_root_msg);
- TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
- txtTitle.setText(title);
-
+ setTitle(title);
+
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody1));
txtBody.setText(msg);
@@ -184,9 +179,6 @@ public class Permissions extends Activity implements TorConstants {
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
btn2.setEnabled(true);
- ImageView img = (ImageView) findViewById(R.id.orbot_image);
- img.setImageResource(R.drawable.warning);
-
TextView txtBody2 = ((TextView)findViewById(R.id.WizardTextBody2));
txtBody2.setVisibility(TextView.GONE);
diff --git a/src/org/torproject/android/wizard/TipsAndTricks.java b/src/org/torproject/android/wizard/TipsAndTricks.java
index 66b08d64..7b32ec34 100644
--- a/src/org/torproject/android/wizard/TipsAndTricks.java
+++ b/src/org/torproject/android/wizard/TipsAndTricks.java
@@ -62,13 +62,10 @@ public class TipsAndTricks extends Activity implements TorConstants {
void stepFive(){
+
String title = getString(R.string.wizard_tips_title);
- TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
- txtTitle.setText(title);
-
- ImageView img = (ImageView) findViewById(R.id.orbot_image);
- img.setImageResource(R.drawable.onion);
-
+
+ setTitle(title);
Button btnLink = (Button)findViewById(R.id.WizardRootButtonInstallGibberbot);
@@ -171,19 +168,17 @@ public class TipsAndTricks extends Activity implements TorConstants {
String title = getString(R.string.wizard_final);
String msg = getString(R.string.wizard_final_msg);
- TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
- txtTitle.setText(title);
+ setTitle(title);
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
txtBody.setText(msg);
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
- ImageView img = (ImageView) findViewById(R.id.orbot_image);
+
btn2.setText(getString(R.string.btn_finish));
btn1.setVisibility(Button.VISIBLE);
- img.setImageResource(R.drawable.onion);
btn1.setOnClickListener(new View.OnClickListener() {