From f8e2eefe689c4467cd31c5517b67f319d82049d4 Mon Sep 17 00:00:00 2001 From: Pierre Date: Sun, 25 Mar 2018 09:26:47 +0200 Subject: [PATCH] Improved comments creation form. --- .../android/comunic/client/ui/adapters/PostsAdapter.java | 2 +- app/src/main/res/layout/post_item.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/PostsAdapter.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/PostsAdapter.java index 9c2443e..ba4b480 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/PostsAdapter.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/adapters/PostsAdapter.java @@ -235,7 +235,7 @@ public class PostsAdapter extends ArrayAdapter{ //Get view about the comment final EditCommentContentView commentInput = container.findViewById(R.id.input_comment_content); - final ImageButton sendButton = container.findViewById(R.id.comment_send_button); + final ImageView sendButton = container.findViewById(R.id.comment_send_button); //Call interface mListener.onCreateComment(pos, sendButton, post, commentInput); diff --git a/app/src/main/res/layout/post_item.xml b/app/src/main/res/layout/post_item.xml index fbf1261..fcba39c 100644 --- a/app/src/main/res/layout/post_item.xml +++ b/app/src/main/res/layout/post_item.xml @@ -97,10 +97,11 @@ android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" + style="@style/TextAppearance.AppCompat" android:hint="@string/new_comment_hint" android:inputType="textMultiLine" /> -