[tor-commits] [orbot/master] Added warning icon to Warning screen

n8fr8 at torproject.org n8fr8 at torproject.org
Fri Oct 28 15:28:27 UTC 2011


commit 322284ef9b3b6af758ddab115685a7d688769c50
Author: Sathyanarayanan Gunasekaran <gsathya.ceg at gmail.com>
Date:   Tue Jun 14 22:38:14 2011 +0530

    Added warning icon to Warning screen
---
 res/drawable/warning.png                  |  Bin 0 -> 2922 bytes
 res/layout/scrollingtext_buttons_view.xml |    8 +++++---
 src/org/torproject/android/LotsaText.java |    6 +++---
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/res/drawable/warning.png b/res/drawable/warning.png
new file mode 100644
index 0000000..42dc6d6
Binary files /dev/null and b/res/drawable/warning.png differ
diff --git a/res/layout/scrollingtext_buttons_view.xml b/res/layout/scrollingtext_buttons_view.xml
index 930bf72..ebecfad 100644
--- a/res/layout/scrollingtext_buttons_view.xml
+++ b/res/layout/scrollingtext_buttons_view.xml
@@ -14,12 +14,12 @@
 	android:background="#000000"
 	>
         <ImageView 
-        	android:src="@drawable/tor" 
+        	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="20px" android:paddingRight="20px" >
+        	android:paddingLeft="20px" android:layout_marginLeft="10dip" android:layout_marginTop="8dip">
         </ImageView>
         <TextView 
         	android:textColor="#FFFFFF"
@@ -37,7 +37,9 @@
         	
         	
         	android:layout_centerInParent="true" 
-        	android:padding="20px"> 
+        	android:paddingLeft="5px"
+        	android:padding="20px"
+        	> 
         </TextView>
     </RelativeLayout>    
 <TableLayout  android:id="@+id/TableLayout01" android:stretchColumns="*" android:layout_height="fill_parent" android:layout_width="wrap_content" >
diff --git a/src/org/torproject/android/LotsaText.java b/src/org/torproject/android/LotsaText.java
index 43e6d16..9f845db 100644
--- a/src/org/torproject/android/LotsaText.java
+++ b/src/org/torproject/android/LotsaText.java
@@ -73,8 +73,8 @@ public class LotsaText extends Activity implements TorConstants{
         ImageView img = (ImageView) findViewById(R.id.orbot_image);
         
     	btn1.setVisibility(Button.INVISIBLE);
-    	img.setVisibility(ImageView.VISIBLE);
-    	
+    	img.setImageResource(R.drawable.tor);
+
     	btn2.setOnClickListener(new View.OnClickListener() {
 			
 			@Override
@@ -108,7 +108,7 @@ public class LotsaText extends Activity implements TorConstants{
         ImageView img = (ImageView) findViewById(R.id.orbot_image);
         
     	btn1.setVisibility(Button.VISIBLE);
-    	img.setVisibility(ImageView.INVISIBLE);
+    	img.setImageResource(R.drawable.warning);
     	
     	btn1.setOnClickListener(new View.OnClickListener() {
 			





More information about the tor-commits mailing list