Fix comment box clickable + prettify
This commit is contained in:
@@ -153,6 +153,8 @@ public class CameraFragment extends Fragment implements PostUploader.PostUploadL
|
|||||||
(view.findViewById(R.id.upload_button)).setOnClickListener(new View.OnClickListener() {
|
(view.findViewById(R.id.upload_button)).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
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();
|
view.findViewById(R.id.comment_box).bringToFront();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -74,13 +74,17 @@
|
|||||||
android:id="@+id/comment_box"
|
android:id="@+id/comment_box"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:visibility="gone"
|
||||||
|
android:clickable="false"
|
||||||
android:layout_margin="10dp"
|
android:layout_margin="10dp"
|
||||||
|
android:padding="5dp"
|
||||||
|
android:background="@android:color/background_light"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Comment:"/>
|
android:text="@string/comment"/>
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/comment_text"
|
android:id="@+id/comment_text"
|
||||||
@@ -89,13 +93,12 @@
|
|||||||
android:lines="4"
|
android:lines="4"
|
||||||
android:layout_margin="4dp"
|
android:layout_margin="4dp"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:visibility="visible"
|
|
||||||
android:background="@android:color/darker_gray"/>
|
android:background="@android:color/darker_gray"/>
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/comment_submit"
|
android:id="@+id/comment_submit"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Submit"/>
|
android:text="@string/upload"/>
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|||||||
@@ -31,4 +31,5 @@
|
|||||||
<string name="update_profile_pic_error">Het updaten van de profielfoto is mislukt. Controleer uw internetverbinding.</string>
|
<string name="update_profile_pic_error">Het updaten van de profielfoto is mislukt. Controleer uw internetverbinding.</string>
|
||||||
<string name="upload_profile_pic">Profielfoto aan het uploaden…</string>
|
<string name="upload_profile_pic">Profielfoto aan het uploaden…</string>
|
||||||
<string name="niet_slecht">"\"Niet slecht.\"s "</string>
|
<string name="niet_slecht">"\"Niet slecht.\"s "</string>
|
||||||
|
<string name="comment">Bijschrift:</string>
|
||||||
</resources>
|
</resources>
|
||||||
@@ -30,4 +30,5 @@
|
|||||||
<string name="image_save_error">Saving image to storage failed. Please make sure there is space available on the device.</string>
|
<string name="image_save_error">Saving image to storage failed. Please make sure there is space available on the device.</string>
|
||||||
<string name="update_profile_pic_error">Updating the profile picture failed. Please check network connection.</string>
|
<string name="update_profile_pic_error">Updating the profile picture failed. Please check network connection.</string>
|
||||||
<string name="upload_profile_pic">Uploading profile picture...</string>
|
<string name="upload_profile_pic">Uploading profile picture...</string>
|
||||||
|
<string name="comment">Comment:</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user