Changed some appearances of the personal posts.

This commit is contained in:
Niels Zwemmer
2017-06-28 17:58:32 +02:00
parent 52d15a80ca
commit ab79fa7d7c
5 changed files with 11 additions and 7 deletions

View File

@@ -161,11 +161,8 @@ public class CameraFragment extends Fragment implements PostUploader.PostUploadL
mComment.setText(""); mComment.setText("");
PostUploader upload = new PostUploader(getActivity()); PostUploader upload = new PostUploader(getActivity());
if (R.id.pic_preview == 0) {
upload.uploadPicture(new BitmapPost(((PicturePreview)view.findViewById(R.id.pic_preview)).getPicture(), comment)); upload.uploadPicture(new BitmapPost(((PicturePreview)view.findViewById(R.id.pic_preview)).getPicture(), comment));
}
mPhoto.recycle(); mPhoto.recycle();
filterButtons.setVisibility(View.GONE); filterButtons.setVisibility(View.GONE);

View File

@@ -26,7 +26,7 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center_horizontal" android:layout_gravity="center_horizontal"
android:text="Hallo Ik ben een comment!" /> android:text="@string/comment_placeholder" />
<LinearLayout <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"

View File

@@ -10,24 +10,28 @@
android:layout_height="250dp" /> android:layout_height="250dp" />
<TextView <TextView
android:gravity="center"
android:id="@+id/comment_timeline_profile" android:id="@+id/comment_timeline_profile"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:text="Hallo Ik ben een comment!" /> android:text="@string/comment_placeholder" />
<LinearLayout <LinearLayout
android:gravity="center"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="40dp"> android:layout_height="40dp">
<TextView <TextView
android:gravity="center"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="@string/niet_slecht" /> android:text="@string/niet_slecht" />
<TextView <TextView
android:gravity="center"
android:id="@+id/niet_slecht_count_profile" android:id="@+id/niet_slecht_count_profile"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="10" /> android:text=" 10" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>

View File

@@ -34,4 +34,5 @@
<string name="niet_slecht">Niet Slecht.</string> <string name="niet_slecht">Niet Slecht.</string>
<string name="comment">Bijschrift:</string> <string name="comment">Bijschrift:</string>
<string name="cancel">Annuleer</string> <string name="cancel">Annuleer</string>
<string name="comment_placeholder">Hallo Ik ben een comment!</string>
</resources> </resources>

View File

@@ -32,4 +32,6 @@
<string name="upload_profile_pic">Uploading profile picture…</string> <string name="upload_profile_pic">Uploading profile picture…</string>
<string name="comment">Comment:</string> <string name="comment">Comment:</string>
<string name="cancel">Cancel</string> <string name="cancel">Cancel</string>
<string name="comment_placeholder">Hello, I am a comment!</string>
<string name="mail_success">Er is een e-mail verzonden. Volg a.u.b. de instructies.</string>
</resources> </resources>