Skip to content

Commit

Permalink
add some colorful things
Browse files Browse the repository at this point in the history
  • Loading branch information
aquamarine5 committed Apr 8, 2022
1 parent 9e353f9 commit 5327557
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions app/src/main/res/drawable/background_gradient.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="@color/colorLightPink"
android:endColor="@color/colorLightBlue"/>
</shape>
3 changes: 2 additions & 1 deletion app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
android:background="@drawable/background_gradient"
app:popupTheme="@style/AppTheme.PopupOverlay" />

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

</androidx.coordinatorlayout.widget.CoordinatorLayout>
6 changes: 5 additions & 1 deletion app/src/main/res/layout/content_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@
<com.google.android.material.textfield.TextInputEditText
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="top"
android:hint="@string/detail_inputbox"
android:inputType="textLongMessage|textImeMultiLine"
android:inputType="textMultiLine"
android:maxLines="18"
android:saveEnabled="true"
android:scrollbars="vertical"
android:textColorHint="#0097A7"
android:textSize="30sp" />
</com.google.android.material.textfield.TextInputLayout>

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@
<color name="colorPrimary">#008577</color>
<color name="colorPrimaryDark">#00574B</color>
<color name="colorAccent">#D81B60</color>
<color name="colorLightBlue">#56C7F3</color>
<color name="colorLightPink">#F1B3F6</color>
</resources>

0 comments on commit 5327557

Please sign in to comment.