Improved comments creation form.

This commit is contained in:
Pierre 2018-03-25 09:26:47 +02:00
parent 396e82d7a6
commit f8e2eefe68
2 changed files with 3 additions and 2 deletions

View File

@ -235,7 +235,7 @@ public class PostsAdapter extends ArrayAdapter<Post>{
//Get view about the comment //Get view about the comment
final EditCommentContentView commentInput = container.findViewById(R.id.input_comment_content); 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 //Call interface
mListener.onCreateComment(pos, sendButton, post, commentInput); mListener.onCreateComment(pos, sendButton, post, commentInput);

View File

@ -97,10 +97,11 @@
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="1" android:layout_weight="1"
style="@style/TextAppearance.AppCompat"
android:hint="@string/new_comment_hint" android:hint="@string/new_comment_hint"
android:inputType="textMultiLine" /> android:inputType="textMultiLine" />
<ImageButton <ImageView
android:id="@+id/comment_send_button" android:id="@+id/comment_send_button"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"