small fixes for the wizard with new UI
This commit is contained in:
parent
3d1f3912ea
commit
bab67b7c13
|
@ -14,7 +14,7 @@
|
||||||
android:textColor="#FFFFFF"
|
android:textColor="#FFFFFF"
|
||||||
android:layout_alignParentTop="true"
|
android:layout_alignParentTop="true"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:id="@+id/WizardTextTitle"
|
android:id="@+id/WizardLocaleTitle"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:fadingEdge="vertical"
|
android:fadingEdge="vertical"
|
||||||
android:text="@string/wizard_locale_title"
|
android:text="@string/wizard_locale_title"
|
||||||
|
|
|
@ -5,24 +5,6 @@
|
||||||
android:layout_width="fill_parent"
|
android:layout_width="fill_parent"
|
||||||
android:layout_height="fill_parent">
|
android:layout_height="fill_parent">
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/relativeLayout1"
|
|
||||||
android:layout_gravity="center_horizontal"
|
|
||||||
android:background="#000000">
|
|
||||||
<TextView android:textSize="10pt"
|
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:id="@+id/WizardTextTitle"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:fadingEdge="vertical"
|
|
||||||
android:text="TITLE"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:padding="20px" android:layout_centerInParent="true">
|
|
||||||
</TextView>
|
|
||||||
</RelativeLayout>
|
|
||||||
<TableLayout android:id="@+id/TableLayout01" android:stretchColumns="*" android:layout_height="fill_parent" android:layout_width="wrap_content">
|
<TableLayout android:id="@+id/TableLayout01" android:stretchColumns="*" android:layout_height="fill_parent" android:layout_width="wrap_content">
|
||||||
|
|
||||||
<TableRow android:layout_margin="10dip" android:id="@+id/TableRow01" android:layout_weight="1" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
<TableRow android:layout_margin="10dip" android:id="@+id/TableRow01" android:layout_weight="1" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||||
|
|
|
@ -6,37 +6,6 @@
|
||||||
android:layout_height="fill_parent">
|
android:layout_height="fill_parent">
|
||||||
|
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="70sp"
|
|
||||||
android:id="@+id/relativeLayout1"
|
|
||||||
android:layout_gravity="center_vertical|center_horizontal"
|
|
||||||
android:background="#000000"
|
|
||||||
>
|
|
||||||
<ImageView
|
|
||||||
android:src="@drawable/warning"
|
|
||||||
android:id="@+id/orbot_image"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="wrap_content"
|
|
||||||
android:layout_alignParentLeft="true"
|
|
||||||
android:paddingLeft="20sp" >
|
|
||||||
</ImageView>
|
|
||||||
<TextView
|
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:textSize="10pt"
|
|
||||||
android:layout_toRightOf="@id/orbot_image"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:layout_height="fill_parent"
|
|
||||||
android:id="@+id/WizardTextTitle"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:fadingEdge="vertical"
|
|
||||||
android:text="TITLE"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:layout_centerInParent="true"
|
|
||||||
android:paddingLeft="5sp"
|
|
||||||
>
|
|
||||||
</TextView>
|
|
||||||
</RelativeLayout>
|
|
||||||
<TableLayout android:id="@+id/TableLayout01" android:stretchColumns="*" android:layout_height="fill_parent" android:layout_width="wrap_content">
|
<TableLayout android:id="@+id/TableLayout01" android:stretchColumns="*" android:layout_height="fill_parent" android:layout_width="wrap_content">
|
||||||
|
|
||||||
<TableRow android:layout_margin="10dip" android:id="@+id/TableRow01" android:layout_weight="1" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
<TableRow android:layout_margin="10dip" android:id="@+id/TableRow01" android:layout_weight="1" android:layout_width="fill_parent" android:layout_height="fill_parent">
|
||||||
|
|
|
@ -6,40 +6,7 @@
|
||||||
android:layout_height="fill_parent"
|
android:layout_height="fill_parent"
|
||||||
>
|
>
|
||||||
|
|
||||||
<RelativeLayout
|
|
||||||
android:id="@+id/relativeLayout1"
|
|
||||||
android:layout_width="fill_parent"
|
|
||||||
android:layout_height="70sp"
|
|
||||||
android:layout_gravity="center_vertical|center_horizontal"
|
|
||||||
android:background="#000000" >
|
|
||||||
|
|
||||||
<ImageView
|
|
||||||
android:id="@+id/orbot_image"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="fill_parent"
|
|
||||||
android:paddingLeft="40sp"
|
|
||||||
android:src="@drawable/warning"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
|
|
||||||
>
|
|
||||||
|
|
||||||
</ImageView>
|
|
||||||
|
|
||||||
<TextView
|
|
||||||
android:id="@+id/WizardTextTitle"
|
|
||||||
android:layout_width="wrap_content"
|
|
||||||
android:layout_height="fill_parent"
|
|
||||||
android:layout_alignParentTop="true"
|
|
||||||
android:layout_centerHorizontal="true"
|
|
||||||
android:fadingEdge="vertical"
|
|
||||||
android:gravity="center_vertical"
|
|
||||||
android:paddingLeft="5sp"
|
|
||||||
android:singleLine="true"
|
|
||||||
android:text="TITLE"
|
|
||||||
android:textColor="#FFFFFF"
|
|
||||||
android:textSize="20dp" />
|
|
||||||
|
|
||||||
</RelativeLayout>
|
|
||||||
|
|
||||||
<TableLayout android:id="@+id/TableLayout01" android:stretchColumns="*" android:layout_height="fill_parent" android:layout_width="wrap_content" >
|
<TableLayout android:id="@+id/TableLayout01" android:stretchColumns="*" android:layout_height="fill_parent" android:layout_width="wrap_content" >
|
||||||
|
|
||||||
|
|
|
@ -108,8 +108,8 @@ public class ConfigureTransProxy extends Activity implements TorConstants {
|
||||||
private void stepSix(){
|
private void stepSix(){
|
||||||
|
|
||||||
String title = context.getString(R.string.wizard_transproxy_title);
|
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 back = ((Button)findViewById(R.id.btnWizard1));
|
||||||
Button next = ((Button)findViewById(R.id.btnWizard2));
|
Button next = ((Button)findViewById(R.id.btnWizard2));
|
||||||
|
|
|
@ -14,6 +14,7 @@ import android.content.SharedPreferences;
|
||||||
import android.content.SharedPreferences.Editor;
|
import android.content.SharedPreferences.Editor;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.PreferenceManager;
|
import android.preference.PreferenceManager;
|
||||||
|
import android.support.v4.app.ActivityCompat;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.widget.Button;
|
import android.widget.Button;
|
||||||
import android.widget.ImageView;
|
import android.widget.ImageView;
|
||||||
|
@ -80,18 +81,15 @@ public class LotsaText extends Activity implements TorConstants{
|
||||||
String title = context.getString(R.string.wizard_title);
|
String title = context.getString(R.string.wizard_title);
|
||||||
String msg = context.getString(R.string.wizard_title_msg);
|
String msg = context.getString(R.string.wizard_title_msg);
|
||||||
|
|
||||||
TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
|
setTitle(title);
|
||||||
txtTitle.setText(title);
|
|
||||||
|
|
||||||
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
|
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
|
||||||
txtBody.setText(msg);
|
txtBody.setText(msg);
|
||||||
|
|
||||||
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
|
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
|
||||||
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
|
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
|
||||||
ImageView img = (ImageView) findViewById(R.id.orbot_image);
|
|
||||||
|
|
||||||
btn1.setVisibility(Button.INVISIBLE);
|
btn1.setVisibility(Button.INVISIBLE);
|
||||||
img.setImageResource(R.drawable.tor);
|
|
||||||
|
|
||||||
btn2.setOnClickListener(new View.OnClickListener() {
|
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 title = context.getString(R.string.wizard_warning_title);
|
||||||
String msg = context.getString(R.string.wizard_warning_msg);
|
String msg = context.getString(R.string.wizard_warning_msg);
|
||||||
|
|
||||||
TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
|
setTitle(title);
|
||||||
txtTitle.setText(title);
|
|
||||||
|
|
||||||
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
|
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
|
||||||
txtBody.setText(msg);
|
txtBody.setText(msg);
|
||||||
|
|
||||||
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
|
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
|
||||||
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
|
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
|
||||||
ImageView img = (ImageView) findViewById(R.id.orbot_image);
|
|
||||||
|
|
||||||
btn1.setVisibility(Button.VISIBLE);
|
btn1.setVisibility(Button.VISIBLE);
|
||||||
img.setImageResource(R.drawable.warning);
|
|
||||||
|
|
||||||
btn1.setOnClickListener(new View.OnClickListener() {
|
btn1.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
|
|
|
@ -63,13 +63,9 @@ public class Permissions extends Activity implements TorConstants {
|
||||||
|
|
||||||
private void stepFourRoot(){
|
private void stepFourRoot(){
|
||||||
|
|
||||||
String title = context.getString(R.string.wizard_permissions_title);
|
|
||||||
String msg1 = context.getString(R.string.wizard_permissions_root_msg1);
|
String msg1 = context.getString(R.string.wizard_permissions_root_msg1);
|
||||||
String msg2 = context.getString(R.string.wizard_permissions_root_msg2);
|
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));
|
TextView txtBody1 = ((TextView)findViewById(R.id.WizardTextBody1));
|
||||||
txtBody1.setText(msg1);
|
txtBody1.setText(msg1);
|
||||||
|
|
||||||
|
@ -174,8 +170,7 @@ public class Permissions extends Activity implements TorConstants {
|
||||||
String title = context.getString(R.string.wizard_permissions_title);
|
String title = context.getString(R.string.wizard_permissions_title);
|
||||||
String msg = context.getString(R.string.wizard_permissions_no_root_msg);
|
String msg = context.getString(R.string.wizard_permissions_no_root_msg);
|
||||||
|
|
||||||
TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
|
setTitle(title);
|
||||||
txtTitle.setText(title);
|
|
||||||
|
|
||||||
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody1));
|
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody1));
|
||||||
txtBody.setText(msg);
|
txtBody.setText(msg);
|
||||||
|
@ -184,9 +179,6 @@ public class Permissions extends Activity implements TorConstants {
|
||||||
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
|
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
|
||||||
btn2.setEnabled(true);
|
btn2.setEnabled(true);
|
||||||
|
|
||||||
ImageView img = (ImageView) findViewById(R.id.orbot_image);
|
|
||||||
img.setImageResource(R.drawable.warning);
|
|
||||||
|
|
||||||
TextView txtBody2 = ((TextView)findViewById(R.id.WizardTextBody2));
|
TextView txtBody2 = ((TextView)findViewById(R.id.WizardTextBody2));
|
||||||
txtBody2.setVisibility(TextView.GONE);
|
txtBody2.setVisibility(TextView.GONE);
|
||||||
|
|
||||||
|
|
|
@ -62,13 +62,10 @@ public class TipsAndTricks extends Activity implements TorConstants {
|
||||||
|
|
||||||
void stepFive(){
|
void stepFive(){
|
||||||
|
|
||||||
|
|
||||||
String title = getString(R.string.wizard_tips_title);
|
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);
|
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 title = getString(R.string.wizard_final);
|
||||||
String msg = getString(R.string.wizard_final_msg);
|
String msg = getString(R.string.wizard_final_msg);
|
||||||
|
|
||||||
TextView txtTitle = ((TextView)findViewById(R.id.WizardTextTitle));
|
setTitle(title);
|
||||||
txtTitle.setText(title);
|
|
||||||
|
|
||||||
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
|
TextView txtBody = ((TextView)findViewById(R.id.WizardTextBody));
|
||||||
txtBody.setText(msg);
|
txtBody.setText(msg);
|
||||||
|
|
||||||
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
|
Button btn1 = ((Button)findViewById(R.id.btnWizard1));
|
||||||
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
|
Button btn2 = ((Button)findViewById(R.id.btnWizard2));
|
||||||
ImageView img = (ImageView) findViewById(R.id.orbot_image);
|
|
||||||
|
|
||||||
btn2.setText(getString(R.string.btn_finish));
|
btn2.setText(getString(R.string.btn_finish));
|
||||||
btn1.setVisibility(Button.VISIBLE);
|
btn1.setVisibility(Button.VISIBLE);
|
||||||
img.setImageResource(R.drawable.onion);
|
|
||||||
|
|
||||||
btn1.setOnClickListener(new View.OnClickListener() {
|
btn1.setOnClickListener(new View.OnClickListener() {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue