Skip to content
This repository was archived by the owner on May 19, 2023. It is now read-only.

Commit 855da74

Browse files
committed
Much nicer looking UI for Welcome
1 parent e3def02 commit 855da74

2 files changed

Lines changed: 68 additions & 21 deletions

File tree

CorrectorSoftcatala/src/main/res/layout/activity_welcome.xml

Lines changed: 64 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,69 @@
77
android:padding="30dp"
88
tools:context=".WelcomeActivity">
99

10-
<TextView
11-
android:id="@+id/textViewSteps"
12-
android:layout_width="wrap_content"
13-
android:layout_height="wrap_content"/>
14-
15-
<TextView
16-
android:id="@+id/textViewLimitations"
17-
android:layout_width="wrap_content"
18-
android:layout_height="wrap_content"
19-
app:layout_constraintTop_toBottomOf="@+id/textViewSteps"
20-
android:layout_marginTop="10dp" />
21-
22-
<Button
23-
android:id="@+id/buttonClose"
24-
app:layout_constraintTop_toBottomOf="@+id/textViewLimitations"
25-
android:layout_width="wrap_content"
26-
android:layout_height="wrap_content"
27-
app:layout_constraintLeft_toLeftOf="parent"
28-
app:layout_constraintRight_toRightOf="parent"
29-
android:layout_marginTop="10dp"/>
10+
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
11+
android:layout_width="fill_parent"
12+
android:layout_height="fill_parent"
13+
android:fillViewport="true"
14+
android:scrollbarStyle="insideOverlay"
15+
android:scrollbars="vertical">
16+
17+
<LinearLayout
18+
android:id="@+id/linearLayout3"
19+
android:layout_width="fill_parent"
20+
android:layout_height="wrap_content"
21+
android:orientation="vertical">
22+
23+
<TextView
24+
android:id="@+id/textViewWelcome"
25+
android:layout_width="wrap_content"
26+
android:layout_height="wrap_content"
27+
android:text="@string/welcome"
28+
android:textStyle="bold"/>
29+
30+
<TextView
31+
android:id="@+id/textViewInstallTitle"
32+
android:layout_width="wrap_content"
33+
android:layout_height="wrap_content"
34+
android:layout_marginTop="10dp"
35+
android:text="@string/installation_title"
36+
android:textColor="@android:color/holo_blue_dark"
37+
android:textStyle="bold"
38+
app:layout_constraintTop_toBottomOf="@+id/textViewWelcome"/>
39+
40+
<TextView
41+
android:id="@+id/textViewSteps"
42+
android:layout_width="wrap_content"
43+
android:layout_height="wrap_content"
44+
android:text="Install"
45+
app:layout_constraintTop_toBottomOf="@+id/textViewInstallTitle"/>
46+
47+
<TextView
48+
android:id="@+id/textViewLimitationsTitle"
49+
android:layout_width="wrap_content"
50+
android:layout_height="wrap_content"
51+
android:text="@string/limitations_title"
52+
android:textColor="@android:color/holo_blue_dark"
53+
android:textStyle="bold"
54+
app:layout_constraintTop_toBottomOf="@+id/textViewSteps"/>
55+
56+
<TextView
57+
android:id="@+id/textViewLimitations"
58+
android:layout_width="wrap_content"
59+
android:layout_height="wrap_content"
60+
app:layout_constraintTop_toBottomOf="@+id/textViewLimitationsTitle"/>
61+
62+
<Button
63+
android:id="@+id/buttonClose"
64+
style="@style/Widget.AppCompat.Button.Colored"
65+
android:layout_width="wrap_content"
66+
android:layout_height="wrap_content"
67+
android:layout_marginTop="10dp"
68+
app:layout_constraintLeft_toLeftOf="parent"
69+
app:layout_constraintRight_toRightOf="parent"
70+
app:layout_constraintTop_toBottomOf="@+id/textViewLimitations"/>
71+
</LinearLayout>
72+
73+
</ScrollView>
3074

3175
</android.support.constraint.ConstraintLayout>

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@
3232
<string name="connections" formatted="false">%d (last %s)</string>
3333
<!-- Used on the string (last %s) when there is connection yet -->
3434
<string name="connection_none">none</string>
35-
<string name="install_steps">Welcome to LanguageTool proofreader!\n\nIn order to configure this application, follow these steps:\n
35+
<string name="welcome">Welcome to LanguageTool proofreader!</string>
36+
<string name="installation_title">Installation</string>
37+
<string name="limitations_title">Limitations</string>
38+
<string name="install_steps">In order to configure this application, follow these steps:\n
3639
1. Go to Settings -> Languages &amp; input -> Spell checker\n
3740
2. Select the "LanguageTool proofreader" as "Default spell checker"\n
3841
</string>

0 commit comments

Comments
 (0)