- 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 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());

View file

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

View file

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