- fragment_explore list align

This commit is contained in:
Matan Bar Yosef 2016-07-09 19:47:39 +03:00
parent 4fe2a0ab51
commit 1f866ae494
3 changed files with 58 additions and 50 deletions

View file

@ -63,7 +63,7 @@ public class ListAdapter extends BaseAdapter {
TextView date = (TextView) v.findViewById(R.id.nvm_date_textview); TextView date = (TextView) v.findViewById(R.id.nvm_date_textview);
TextView location = (TextView) v.findViewById(R.id.nvm_location_textview); TextView location = (TextView) v.findViewById(R.id.nvm_location_textview);
TextView likes = (TextView) v.findViewById(R.id.nvm_likes_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); // NetworkImageView thumbNail = (NetworkImageView) v.findViewById(R.id.infoImageImageView);
// String url = mVideos.get(position).getImgURL(); // String url = mVideos.get(position).getImgURL();
// thumbNail.setImageUrl(url, VolleyUtilSingleTone.getInstance(mContext).getImageLoader()); // thumbNail.setImageUrl(url, VolleyUtilSingleTone.getInstance(mContext).getImageLoader());

View file

@ -1,6 +1,6 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="fill_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:context="com.android_app.matan.ara.sagi.thesocialnotework.ExploreFragment" tools:context="com.android_app.matan.ara.sagi.thesocialnotework.ExploreFragment"
android:orientation="vertical" android:orientation="vertical"
@ -9,7 +9,7 @@
<!-- TODO: Update blank fragment layout --> <!-- TODO: Update blank fragment layout -->
<ListView <ListView
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:id="@+id/list_notes" android:id="@+id/list_notes"
android:choiceMode="none" /> android:choiceMode="none" />

View file

@ -1,92 +1,100 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal" android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"
android:padding="5dp"> android:padding="5dp">
<ImageView <!--<ImageView-->
<!--android:layout_width="70dp"-->
<!--android:layout_height="70dp"-->
<!--android:id="@+id/nvm_permission_image_view"-->
<!--android:layout_gravity="left" />-->
<com.android_app.matan.ara.sagi.thesocialnotework.RoundAvatarImageView
android:id="@+id/nvm_permission_image_view"
android:layout_width="70dp" android:layout_width="70dp"
android:layout_height="70dp" android:layout_height="70dp"
android:id="@+id/nvm_permission_image_view" android:layout_centerInParent="true"
android:layout_gravity="left" /> android:scaleType="centerCrop" />
<LinearLayout <LinearLayout
android:orientation="vertical"
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.6" android:layout_gravity="center"
android:layout_marginLeft="15dp" android:layout_marginLeft="15dp"
android:layout_gravity="center"> android:layout_weight="0.6"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/nvm_title_textview"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceMedium"
android:text="Note Title" android:text="Note Title"
android:id="@+id/nvm_title_textview" android:textAppearance="?android:attr/textAppearanceMedium"
android:textStyle="bold" android:textSize="18dp"
android:textSize="18dp" /> android:textStyle="bold" />
<LinearLayout <LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent"
android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/imageView4"
android:layout_width="13dp" android:layout_width="13dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:id="@+id/imageView4"
android:src="@drawable/date_icon" /> android:src="@drawable/date_icon" />
<TextView <TextView
android:id="@+id/nvm_date_textview"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Date and time"
android:id="@+id/nvm_date_textview"
android:textSize="9dp"
android:gravity="fill_horizontal|fill_vertical" android:gravity="fill_horizontal|fill_vertical"
android:padding="5dp" /> android:padding="5dp"
android:text="Date and time"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="9dp" />
<ImageView <ImageView
android:id="@+id/imageView3"
android:layout_width="13dp" android:layout_width="13dp"
android:layout_height="28dp" android:layout_height="28dp"
android:id="@+id/imageView3"
android:scaleType="fitCenter" android:scaleType="fitCenter"
android:src="@drawable/time_icon" /> android:src="@drawable/time_icon" />
<TextView <TextView
android:id="@+id/nvm_time_textview"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Date and time"
android:id="@+id/nvm_time_textview"
android:textSize="9dp"
android:gravity="fill_horizontal|center_vertical" android:gravity="fill_horizontal|center_vertical"
android:padding="5dp" /> android:padding="5dp"
android:text="Date and time"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="9dp" />
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content"> android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView <ImageView
android:id="@+id/imageView5"
android:layout_width="13dp" android:layout_width="13dp"
android:layout_height="28dp" android:layout_height="28dp"
android:id="@+id/imageView5"
android:src="@drawable/location_icon" /> android:src="@drawable/location_icon" />
<TextView <TextView
android:id="@+id/nvm_location_textview"
android:layout_width="fill_parent" android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="location"
android:id="@+id/nvm_location_textview"
android:textSize="9dp"
android:gravity="fill_horizontal|fill_vertical" android:gravity="fill_horizontal|fill_vertical"
android:padding="5dp" /> android:padding="5dp"
android:text="location"
android:textAppearance="?android:attr/textAppearanceSmall"
android:textSize="9dp" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>
@ -94,29 +102,29 @@
<LinearLayout <LinearLayout
android:layout_width="0dp" android:layout_width="0dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:layout_gravity="right"
android:layout_weight="0.3" android:layout_weight="0.3"
android:gravity="end" android:gravity="end">
android:layout_gravity="right">
<LinearLayout <LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:weightSum="1" android:gravity="center"
android:gravity="center"> android:orientation="horizontal"
android:weightSum="1">
<ImageView <ImageView
android:id="@+id/imageView2"
android:layout_width="40dp" android:layout_width="40dp"
android:layout_height="match_parent" android:layout_height="match_parent"
android:id="@+id/imageView2"
android:src="@drawable/like_icon" /> android:src="@drawable/like_icon" />
<TextView <TextView
android:id="@+id/nvm_likes_textview"
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="match_parent" android:layout_height="match_parent"
android:text="Likes" android:gravity="center_vertical|center_horizontal"
android:id="@+id/nvm_likes_textview" android:text="Likes" />
android:gravity="center_vertical|center_horizontal" />
</LinearLayout> </LinearLayout>
</LinearLayout> </LinearLayout>