Skip to content

Commit 5327557

Browse files
committed
add some colorful things
1 parent 9e353f9 commit 5327557

File tree

5 files changed

+18
-2
lines changed

5 files changed

+18
-2
lines changed

.idea/misc.xml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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+
<gradient
4+
android:startColor="@color/colorLightPink"
5+
android:endColor="@color/colorLightBlue"/>
6+
</shape>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
android:id="@+id/toolbar"
1616
android:layout_width="match_parent"
1717
android:layout_height="?attr/actionBarSize"
18-
android:background="?attr/colorPrimary"
18+
android:background="@drawable/background_gradient"
1919
app:popupTheme="@style/AppTheme.PopupOverlay" />
2020

2121
</com.google.android.material.appbar.AppBarLayout>
@@ -29,6 +29,7 @@
2929
android:layout_gravity="bottom|end"
3030
android:layout_margin="@dimen/fab_margin"
3131
android:contentDescription="@string/description_record"
32+
app:backgroundTint="@color/colorLightBlue"
3233
app:srcCompat="@android:drawable/ic_media_play" />
3334

3435
</androidx.coordinatorlayout.widget.CoordinatorLayout>

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,13 @@
2020
<com.google.android.material.textfield.TextInputEditText
2121
android:layout_width="match_parent"
2222
android:layout_height="match_parent"
23+
android:gravity="top"
2324
android:hint="@string/detail_inputbox"
24-
android:inputType="textLongMessage|textImeMultiLine"
25+
android:inputType="textMultiLine"
26+
android:maxLines="18"
2527
android:saveEnabled="true"
28+
android:scrollbars="vertical"
29+
android:textColorHint="#0097A7"
2630
android:textSize="30sp" />
2731
</com.google.android.material.textfield.TextInputLayout>
2832

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,6 @@
33
<color name="colorPrimary">#008577</color>
44
<color name="colorPrimaryDark">#00574B</color>
55
<color name="colorAccent">#D81B60</color>
6+
<color name="colorLightBlue">#56C7F3</color>
7+
<color name="colorLightPink">#F1B3F6</color>
68
</resources>

0 commit comments

Comments
 (0)