From 08849521e1d851fcccc4b8a8da39a87e6e45f73d Mon Sep 17 00:00:00 2001 From: Felix Atsma Date: Tue, 27 Jun 2017 12:37:23 +0200 Subject: [PATCH] Fix comment box clickable + prettify --- .../java/nl/myhyvesbookplus/tagram/CameraFragment.java | 2 ++ .../app/src/main/res/layout/fragment_camera.xml | 9 ++++++--- .../app/src/main/res/values-nl/strings.xml | 1 + .../app/src/main/res/values/strings.xml | 1 + 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/CameraFragment.java b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/CameraFragment.java index 7c523a3..01bfbe9 100644 --- a/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/CameraFragment.java +++ b/app/MyHyvesBookPlusStagram/app/src/main/java/nl/myhyvesbookplus/tagram/CameraFragment.java @@ -153,6 +153,8 @@ public class CameraFragment extends Fragment implements PostUploader.PostUploadL (view.findViewById(R.id.upload_button)).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { + view.findViewById(R.id.comment_box).setClickable(true); + view.findViewById(R.id.comment_box).setVisibility(View.VISIBLE); view.findViewById(R.id.comment_box).bringToFront(); } }); diff --git a/app/MyHyvesBookPlusStagram/app/src/main/res/layout/fragment_camera.xml b/app/MyHyvesBookPlusStagram/app/src/main/res/layout/fragment_camera.xml index 27b8601..04637b3 100644 --- a/app/MyHyvesBookPlusStagram/app/src/main/res/layout/fragment_camera.xml +++ b/app/MyHyvesBookPlusStagram/app/src/main/res/layout/fragment_camera.xml @@ -74,13 +74,17 @@ android:id="@+id/comment_box" android:layout_width="match_parent" android:layout_height="wrap_content" + android:visibility="gone" + android:clickable="false" android:layout_margin="10dp" + android:padding="5dp" + android:background="@android:color/background_light" android:orientation="vertical"> + android:text="@string/comment"/>