mirror of
				https://github.com/pierre42100/ComunicAndroid
				synced 2025-10-31 01:24:43 +00:00 
			
		
		
		
	Improve posts appearance
This commit is contained in:
		| @@ -7,6 +7,7 @@ import android.content.DialogInterface; | ||||
| import android.os.AsyncTask; | ||||
| import android.os.Bundle; | ||||
| import android.support.annotation.Nullable; | ||||
| import android.support.v7.widget.DividerItemDecoration; | ||||
| import android.support.v7.widget.LinearLayoutManager; | ||||
| import android.util.ArrayMap; | ||||
| import android.util.Pair; | ||||
| @@ -176,6 +177,8 @@ public class PostsListFragment extends Fragment | ||||
|         //Get the list view | ||||
|         mRecyclerView = view.findViewById(R.id.posts_list); | ||||
|         mRecyclerView.setOnScrollChangeDetectListener(this); | ||||
|         mRecyclerView.addItemDecoration(new DividerItemDecoration(mRecyclerView.getContext(), | ||||
|                 DividerItemDecoration.VERTICAL)); | ||||
|  | ||||
|         //Show the posts | ||||
|         show(); | ||||
|   | ||||
| @@ -56,6 +56,7 @@ | ||||
|             style="@style/PostVisibility" | ||||
|             android:layout_width="wrap_content" | ||||
|             android:layout_height="wrap_content" | ||||
|             android:layout_gravity="top" | ||||
|             tools:text="Public" /> | ||||
|  | ||||
|         <ImageView | ||||
| @@ -63,8 +64,8 @@ | ||||
|             style="@style/PostActionsButton" | ||||
|             android:layout_width="@dimen/post_options_btn_width" | ||||
|             android:layout_height="@dimen/post_options_btn_height" | ||||
|             android:contentDescription="@string/post_action_btn_description" | ||||
|             android:src="@android:drawable/ic_menu_manage" /> | ||||
|             android:layout_gravity="top" | ||||
|             android:contentDescription="@string/post_action_btn_description" /> | ||||
|  | ||||
|  | ||||
|     </LinearLayout> | ||||
|   | ||||
| @@ -82,6 +82,9 @@ | ||||
|     <style name="PostActionsButton"> | ||||
|         <item name="android:padding">2dp</item> | ||||
|         <item name="android:layout_gravity">center</item> | ||||
|         <item name="android:background">?selectableItemBackground</item> | ||||
|         <item name="android:src">@drawable/ic_more</item> | ||||
|         <item name="android:tint">@android:color/darker_gray</item> | ||||
|     </style> | ||||
|  | ||||
|     <!-- Post header --> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Pierre HUBERT
					Pierre HUBERT