From 1f866ae494b811a7b5ab9e6b873529c441be35d1 Mon Sep 17 00:00:00 2001 From: Matan Bar Yosef Date: Sat, 9 Jul 2016 19:47:39 +0300 Subject: [PATCH] - fragment_explore list align --- .../sagi/thesocialnotework/ListAdapter.java | 2 +- app/src/main/res/layout/fragment_explore.xml | 4 +- app/src/main/res/layout/note_view_mini.xml | 102 ++++++++++-------- 3 files changed, 58 insertions(+), 50 deletions(-) diff --git a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/ListAdapter.java b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/ListAdapter.java index 43260f3..5562f0f 100644 --- a/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/ListAdapter.java +++ b/app/src/main/java/com/android_app/matan/ara/sagi/thesocialnotework/ListAdapter.java @@ -63,7 +63,7 @@ public class ListAdapter extends BaseAdapter { TextView date = (TextView) v.findViewById(R.id.nvm_date_textview); TextView location = (TextView) v.findViewById(R.id.nvm_location_textview); TextView likes = (TextView) v.findViewById(R.id.nvm_likes_textview); - ImageView permission = (ImageView) v.findViewById(R.id.nvm_permission_image_view); + ImageView permission = (RoundAvatarImageView) v.findViewById(R.id.nvm_permission_image_view); // NetworkImageView thumbNail = (NetworkImageView) v.findViewById(R.id.infoImageImageView); // String url = mVideos.get(position).getImgURL(); // thumbNail.setImageUrl(url, VolleyUtilSingleTone.getInstance(mContext).getImageLoader()); diff --git a/app/src/main/res/layout/fragment_explore.xml b/app/src/main/res/layout/fragment_explore.xml index b17eaa6..b9d86e3 100644 --- a/app/src/main/res/layout/fragment_explore.xml +++ b/app/src/main/res/layout/fragment_explore.xml @@ -1,6 +1,6 @@ diff --git a/app/src/main/res/layout/note_view_mini.xml b/app/src/main/res/layout/note_view_mini.xml index 7a3708a..89a4469 100644 --- a/app/src/main/res/layout/note_view_mini.xml +++ b/app/src/main/res/layout/note_view_mini.xml @@ -1,122 +1,130 @@ - + + + + + - + + + android:layout_weight="0.6" + android:orientation="vertical"> + android:textAppearance="?android:attr/textAppearanceMedium" + android:textSize="18dp" + android:textStyle="bold" /> + android:layout_height="match_parent" + android:orientation="horizontal"> + android:padding="5dp" + android:text="Date and time" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textSize="9dp" /> + android:padding="5dp" + android:text="Date and time" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textSize="9dp" /> + android:layout_height="wrap_content" + android:orientation="horizontal"> + android:padding="5dp" + android:text="location" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textSize="9dp" /> + android:gravity="end"> - + android:gravity="center" + android:orientation="horizontal" + android:weightSum="1"> + android:gravity="center_vertical|center_horizontal" + android:text="Likes" />