[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [snowflake-mobile/master] Added note TextView
commit 256cf0a2b54110e026548718cd2be95bd4fb5dd9
Author: Hashik Donthineni <HashikDonthineni@xxxxxxxxx>
Date: Fri Aug 7 01:37:45 2020 +0530
Added note TextView
---
app/src/main/res/layout/fragment_main.xml | 24 +++++++++++++++++++-----
app/src/main/res/values/strings.xml | 2 ++
2 files changed, 21 insertions(+), 5 deletions(-)
diff --git a/app/src/main/res/layout/fragment_main.xml b/app/src/main/res/layout/fragment_main.xml
index 0dcaf86..e465db7 100644
--- a/app/src/main/res/layout/fragment_main.xml
+++ b/app/src/main/res/layout/fragment_main.xml
@@ -33,18 +33,32 @@
android:src="@drawable/ic_status_on"
android:tint="@color/snowflakeOff" />
+ <TextView
+ android:id="@+id/note_tv"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@id/snowflake_logo"
+ android:layout_centerHorizontal="true"
+ android:layout_marginLeft="30dp"
+ android:layout_marginTop="30dp"
+ android:layout_marginRight="30dp"
+ android:fontFamily="@font/source_code_pro"
+ android:gravity="center"
+ android:text="@string/turn_on_note"
+ android:textSize="16sp"
+ android:visibility="visible" />
+
<TextView
android:id="@+id/users_served"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:layout_below="@id/snowflake_logo"
+ android:layout_below="@id/note_tv"
android:layout_centerHorizontal="true"
- android:layout_marginTop="10dp"
+ android:layout_marginLeft="30dp"
+ android:layout_marginTop="30dp"
+ android:layout_marginRight="30dp"
android:fontFamily="@font/source_code_pro"
android:gravity="center"
- android:paddingLeft="50dp"
- android:paddingTop="10dp"
- android:paddingRight="50dp"
android:textSize="16sp"
android:visibility="gone" />
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 7faf436..c9dfd5d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -5,4 +5,6 @@
<string name="users_served_text">Number of users your Snowflake has helped circumvent censorship in the last 24 hours: $</string>
<string name="Snowflake_Off">Snowflake is Off</string>
<string name="Snowflake_On">Snowflake is On</string>
+ <string name="turn_on_note">Turn on Snowflake to help users circumvent censorship</string>
+ <string name="snowflake_ready_note">Your Snowflake is ready to help users circumvent censorship</string>
</resources>
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits