Skip to content

Commit f6d8848

Browse files
committed
samples
1 parent d52f959 commit f6d8848

File tree

4 files changed

+12
-41
lines changed

4 files changed

+12
-41
lines changed

app/src/main/java/com/efraespada/stringobfuscator/MainActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected void onCreate(Bundle savedInstanceState) {
3939
}
4040
});
4141

42-
boolean equals = SC.reveal(R.string.c3po).equals(getString(R.string.c3po_));
42+
boolean equals = SC.reveal(R.string.hello_world_b).equals(getString(R.string.hello_world_a));
4343
String areEquals = "Same result: " + equals;
4444
((TextView) findViewById(R.id.same_value)).setText(areEquals);
4545
}

app/src/main/res/layout/activity_main.xml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
android:paddingStart="25dp"
119119
android:paddingEnd="25dp"
120120
android:textSize="12sp"
121-
android:text="@string/c3po"
121+
android:text="@string/hello_world_b"
122122
android:textColor="@android:color/black"
123123
app:html="false"
124124
app:visible="true" />
@@ -128,7 +128,7 @@
128128
android:layout_height="wrap_content"
129129
android:layout_gravity="center_horizontal"
130130
android:layout_marginTop="15dp"
131-
android:text="@string/c3po_"
131+
android:text="@string/hello_world_a"
132132
android:textSize="12sp"
133133
android:paddingStart="25dp"
134134
android:paddingEnd="25dp"
@@ -147,11 +147,12 @@
147147
<com.stringcare.library.SCTextView
148148
android:layout_width="wrap_content"
149149
android:layout_height="wrap_content"
150-
android:layout_gravity="start"
150+
android:layout_gravity="center_horizontal"
151151
android:paddingStart="25dp"
152152
android:paddingEnd="25dp"
153+
android:layout_marginTop="15dp"
153154
android:textSize="12sp"
154-
android:text="@string/c3po_no_android_treatment"
155+
android:text="@string/hello_world_c"
155156
android:textColor="@android:color/black"
156157
app:html="false"
157158
app:androidTreatment="false"

app/src/main/res/values/strings.xml

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -7,44 +7,14 @@
77
</string>
88
<string name="pattern" hidden="true">%1$s (%2$d)</string>
99
<string name="snake_msg_hidden" hidden="true">\n\nla-li-lu-le-lo\n\n🐍😄🍉</string>
10-
<string name="c3po" hidden="true" translatable="true">
11-
+---[RSA 2048]----+
12-
|.*++ o.o. |
13-
|.+B + oo. |
14-
| +++ *+. |
15-
| .o.Oo.+E |
16-
| ++B.S. |
17-
| o * =. |
18-
| + = o |
19-
| + = = . |
20-
| + o o |
21-
+----[SHA256]-----+
10+
<string name="hello_world_a">Hello
11+
World
2212
</string>
23-
<string name="c3po_" translatable="true">
24-
+---[RSA 2048]----+
25-
|.*++ o.o. |
26-
|.+B + oo. |
27-
| +++ *+. |
28-
| .o.Oo.+E |
29-
| ++B.S. |
30-
| o * =. |
31-
| + = o |
32-
| + = = . |
33-
| + o o |
34-
+----[SHA256]-----+
13+
<string name="hello_world_b" hidden="true">Hello
14+
World
3515
</string>
36-
<string name="c3po_no_android_treatment" hidden="true" androidTreatment="false" translatable="true">
37-
+---[RSA 2048]----+
38-
|.*++ o.o. |
39-
|.+B + oo. |
40-
| +++ *+. |
41-
| .o.Oo.+E |
42-
| ++B.S. |
43-
| o * =. |
44-
| + = o |
45-
| + = = . |
46-
| + o o |
47-
+----[SHA256]-----+
16+
<string name="hello_world_c" hidden="true" androidTreatment="false">Hello
17+
World
4818
</string>
4919
<string name="long_new_line_comparison">Long New Line Comparison</string>
5020
<string name="html_treatment">HTML treatment</string>

sample2.png

-15.1 KB
Loading

0 commit comments

Comments
 (0)