Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStefan Niedermann <info@niedermann.it>2020-03-23 23:43:28 +0300
committerNiedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com>2020-03-24 12:06:45 +0300
commit6adfacc7887e2e8d9dd939db41d7f029046c9619 (patch)
treeed78d15da761759d8d4262328fd989bf9fc60b60 /app
parent805159ce3120594370689caa6c64cf53f0cbe8fd (diff)
Use FAB for adding comment
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app')
-rw-r--r--app/src/main/res/layout/fragment_card_edit_tab_comments.xml18
-rw-r--r--app/src/main/res/values/dimens.xml1
2 files changed, 14 insertions, 5 deletions
diff --git a/app/src/main/res/layout/fragment_card_edit_tab_comments.xml b/app/src/main/res/layout/fragment_card_edit_tab_comments.xml
index ebf455d29..7786127e9 100644
--- a/app/src/main/res/layout/fragment_card_edit_tab_comments.xml
+++ b/app/src/main/res/layout/fragment_card_edit_tab_comments.xml
@@ -15,13 +15,22 @@
android:layout_marginBottom="@dimen/standard_margin"
android:orientation="horizontal">
+ <ImageView
+ android:layout_width="@dimen/icon_size_details"
+ android:layout_height="match_parent"
+ android:layout_marginEnd="@dimen/standard_margin"
+ android:layout_marginRight="@dimen/standard_margin"
+ android:contentDescription="@null"
+ android:tint="@color/grey600"
+ app:srcCompat="@drawable/ic_comment_white_24dp" />
+
<EditText
android:id="@+id/message"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:layout_marginStart="@dimen/avatar_size_plus_standard_margin"
- android:layout_marginLeft="@dimen/avatar_size_plus_standard_margin"
+ android:layout_marginStart="@dimen/standard_margin"
+ android:layout_marginLeft="@dimen/standard_margin"
android:layout_weight="1"
android:autofillHints="@null"
android:hint="@string/simple_comment"
@@ -32,13 +41,14 @@
android:paddingRight="@dimen/standard_half_padding"
tools:ignore="RtlSymmetry" />
- <ImageView
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/fab"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:contentDescription="@string/add_comment"
- android:tint="@color/primary"
+ android:tint="@android:color/white"
+ app:fabSize="mini"
app:srcCompat="@drawable/ic_send_white_24dp" />
</LinearLayout>
diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml
index 8404aca34..0b0f8f27c 100644
--- a/app/src/main/res/values/dimens.xml
+++ b/app/src/main/res/values/dimens.xml
@@ -1,7 +1,6 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
- <dimen name="avatar_size_plus_standard_margin">56dp</dimen>
<dimen name="standard_margin">16dp</dimen>
<dimen name="standard_padding">16dp</dimen>
<dimen name="standard_half_margin">8dp</dimen>