diff --git a/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java b/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java index 5e58c426e..70ef56e51 100644 --- a/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java +++ b/common/src/main/java/com/yunbao/common/adapter/UserCommunityAdapter.java @@ -117,6 +117,8 @@ public class UserCommunityAdapter extends RecyclerView.Adapter { more_del.setTag(bean); if (isMe) { more_del.setVisibility(View.VISIBLE); + } else { + more_del.setVisibility(View.INVISIBLE); } ImgLoader.display(mContext, bean.getUser_avatar(), mAvatar); userName.setText(bean.getUser_name()); diff --git a/common/src/main/res/layout/activity_user_community_item.xml b/common/src/main/res/layout/activity_user_community_item.xml index 881e7f952..0c22f04af 100644 --- a/common/src/main/res/layout/activity_user_community_item.xml +++ b/common/src/main/res/layout/activity_user_community_item.xml @@ -56,7 +56,7 @@ android:layout_height="30dp" android:padding="4dp" android:src="@mipmap/icon_active_more" - android:visibility="invisible" /> + android:visibility="visible" /> diff --git a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java index d66be944e..db1c41fab 100644 --- a/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/UserHomeActivity.java @@ -178,7 +178,6 @@ public class UserHomeActivity extends AbsActivity { } initView(); getUseData(); - getCommunityList(); } private void getCommunityList() { @@ -447,6 +446,7 @@ public class UserHomeActivity extends AbsActivity { } }); mBanner.start(); + getCommunityList(); } private void initView() {