From 322284ef9b3b6af758ddab115685a7d688769c50 Mon Sep 17 00:00:00 2001 From: Sathyanarayanan Gunasekaran Date: Tue, 14 Jun 2011 22:38:14 +0530 Subject: [PATCH] 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(-) create mode 100644 res/drawable/warning.png diff --git a/res/drawable/warning.png b/res/drawable/warning.png new file mode 100644 index 0000000000000000000000000000000000000000..42dc6d665cd1cff03f98c1b7b64d7969acf1e3de GIT binary patch literal 2922 zcmV-w3zhVVP)2&%qw&gF3jX#2Gf*lA68R|69CM2ODOq*##OFNTH%1k=_C;z1Blrl{x zP4iFw=}eQBG?_^=!*rN7X$P7q4Id#bg^)n#q$E&7j4fjWmMsZMmQL2^_5DshI1bsm z)7i}*)tg!E-QMooeZPJC-rHRR1l~jP(h%AKm~#SPXw%=r`YT2>i7i{-9Ojg9MTc)que=WlU191T3j*)3I7mg#IZoz7%p zkz{f(Na?SEz(3Nt-1~nIg~k?odHgXIF3oV z9AlKEe4a5%RaG<$B%*va%i@UyyA%v&KbxF9aU>A<{l5c&KfW)D!G!>0-T~-vx$F?` z1xgYb$tp6OOB)-#^%l#cc1b$^uSjIXh|ub~WdlGnU;F%u6^AyhU*DG}wakPc{8h78?;3#|o~K**7I zX|Ap1U6QmpoJ##^Fp(g`V~jXs)eE&ZH8uVCzP`SVQZmU>Fm?uLn*4tTae$U+T|3F` zamC!Dwyx?uPp)-!YirZi>FGZV#A56H$>g-^bIC`;MsVBGrE9k>U;fW8bary_(a}N> zQ?i>v1(?QoT^;Lu_Su4sP_;`>Ot8`Co?~8{O;xJz5%B_m-Fy1<&wn^P{4;&63bhPr z091c{ef_VyySlj8#f#Ssoq--Di-qy+?KiamIC-cwCBsB90#C8R>bABY-5ZPTJ{$@S z=;dJufQ|L_-?_7`ZFLd>4jG|xC`Zdi_7ECX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ix`DZ9r*n7(bt5@k6wOYNVZbIzEKT9C5q|2rOGu0Su~`0GBC%sInFJ=f$PfUe z1@Y6-=+jeVWgP&4x-gP*q&*k*?`KimDQIZ)$PpGE8Y%!_kgpS$DFh(R{u?h}xS)IX zF$BYB(7|YQ;C7#{L*TfTP&;`CM>(GLB%J(=9z7}_tmNnzEKdIa{NBCn)XtqOJvF6^ zhq@oysj_AC*PBm*LI1CYhPGVIWJ<>WG}LQUR$$-da(SQX>^$ysIBuno({KQTPH~-O z!5sh$Drp9iQ39V{pO5|L>Q(WhQ0Tr_Mn*m`%EPb*paViVm64_?eVDhmK~LVr&QFXQ?5TsGSy zlw68IGCF{A>cb0R=1KVciBRaN-}wD+l*0#Y$_4<9Ka57N&^iBKS_R>&g3VTo^+=jw zcs7g8aIrFgTus5#GWsjd0MtGl{{BwC|22%ITrvd!I=zrghCWLqcK3Na-JI3hLqN!f z5yn^a>>>aRxU0@Zix~Ky35N$io|=02x5LBxW^bkMi%|eD4%voLjuqyT^%DNnA__r==UZ{6ngKIF04+US45*DA@e1GIxGg7CK(7&ZqbjuI$I?lqW7 z#r%oH;bWoD?vs(oS@}cZM`?;2LL=b<1Tg?|yeoC+adt8a07i$I2M9`1G(ruA0tAHO zR(L$OEER+`%RQb|)izr@o!QsY%-SJ1D#BinE6vhABbLZ!$A(1l?D=^7!-1)(v$VXF zQymDTBt>ZCm~jZLqy^Ie>f_oZLRdv`ZLS4Etsydx#XRp_WV5*e0xe)JElDB?K0TI9 zM#zgOvj=RH8Jo=ueBme*a07*qoM6N<$g1{njng9R* literal 0 HcmV?d00001 diff --git a/res/layout/scrollingtext_buttons_view.xml b/res/layout/scrollingtext_buttons_view.xml index 930bf729..ebecfad7 100644 --- a/res/layout/scrollingtext_buttons_view.xml +++ b/res/layout/scrollingtext_buttons_view.xml @@ -14,12 +14,12 @@ android:background="#000000" > + android:paddingLeft="20px" android:layout_marginLeft="10dip" android:layout_marginTop="8dip"> + android:paddingLeft="5px" + android:padding="20px" + > diff --git a/src/org/torproject/android/LotsaText.java b/src/org/torproject/android/LotsaText.java index 43e6d16c..9f845db2 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() {