Skip to content

Commit 8bd31e2

Browse files
authored
Merge pull request #10 from ran-su/feature/android-app
Feat: Convert website to a basic Android app
2 parents 2d5cb03 + 89785c7 commit 8bd31e2

File tree

3 files changed

+46
-22
lines changed

3 files changed

+46
-22
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:shape="rectangle">
4+
<solid android:color="@color/colorSlideBackground" />
5+
<corners android:radius="10dp" />
6+
</shape>
Lines changed: 32 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,42 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2+
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
5-
android:orientation="vertical"
6-
android:gravity="center"
7-
android:padding="16dp">
5+
android:padding="32dp">
86

9-
<TextView
10-
android:id="@+id/title_textview"
11-
android:layout_width="wrap_content"
12-
android:layout_height="wrap_content"
13-
android:textSize="24sp"
14-
android:textStyle="bold"
15-
android:layout_marginBottom="16dp" />
16-
17-
<ScrollView
7+
<LinearLayout
188
android:layout_width="match_parent"
19-
android:layout_height="wrap_content">
9+
android:layout_height="match_parent"
10+
android:background="@drawable/slide_background"
11+
android:elevation="4dp"
12+
android:gravity="center"
13+
android:orientation="vertical"
14+
android:padding="48dp">
2015

2116
<TextView
22-
android:id="@+id/content_textview"
23-
android:layout_width="match_parent"
17+
android:id="@+id/title_textview"
18+
android:layout_width="wrap_content"
2419
android:layout_height="wrap_content"
25-
android:textSize="16sp" />
20+
android:layout_marginBottom="24dp"
21+
android:textAlignment="center"
22+
android:textColor="@color/textColorPrimary"
23+
android:textSize="34sp"
24+
android:textStyle="bold" />
25+
26+
<ScrollView
27+
android:layout_width="match_parent"
28+
android:layout_height="wrap_content">
29+
30+
<TextView
31+
android:id="@+id/content_textview"
32+
android:layout_width="match_parent"
33+
android:layout_height="wrap_content"
34+
android:lineSpacingMultiplier="1.2"
35+
android:textAlignment="center"
36+
android:textColor="@color/textColorDefault"
37+
android:textSize="20sp" />
2638

27-
</ScrollView>
39+
</ScrollView>
2840

29-
</LinearLayout>
41+
</LinearLayout>
42+
</FrameLayout>

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<resources>
3-
<color name="colorPrimary">#6200EE</color>
4-
<color name="colorPrimaryDark">#3700B3</color>
5-
<color name="colorAccent">#03DAC5</color>
3+
<color name="colorPrimary">#2c3e50</color>
4+
<color name="colorPrimaryDark">#233140</color>
5+
<color name="colorAccent">#3498db</color>
6+
<color name="colorButtonText">#ffffff</color>
7+
<color name="colorSlideBackground">#fdfdfd</color>
8+
<color name="textColorPrimary">#2c3e50</color>
9+
<color name="textColorSecondary">#34495e</color>
10+
<color name="textColorDefault">#333333</color>
611
</resources>

0 commit comments

Comments
 (0)