Added warning icon to Warning screen

This commit is contained in:
Sathyanarayanan Gunasekaran 2011-06-14 22:38:14 +05:30
parent fbdeb71974
commit 322284ef9b
3 changed files with 8 additions and 6 deletions

BIN
res/drawable/warning.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

View File

@ -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" >

View File

@ -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() {