文字11
This commit is contained in:
@@ -148,12 +148,12 @@ public class CommunityDetailsActivity extends AbsActivity {
|
||||
public void callback(Integer isAttention) {
|
||||
if (isAttention == 1) {
|
||||
ImgLoader.display(CommunityDetailsActivity.this, R.mipmap.icon_like_followed, followIcon);
|
||||
followName.setText("已关注");
|
||||
followName.setText(getResources().getString(R.string.following));
|
||||
followName.setTextColor(Color.parseColor("#777777"));
|
||||
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type_1));
|
||||
} else {
|
||||
ImgLoader.display(CommunityDetailsActivity.this, R.mipmap.icon_like_follow, followIcon);
|
||||
followName.setText("关注");
|
||||
followName.setText(getResources().getString(R.string.follow));
|
||||
followName.setTextColor(getResources().getColor(R.color.white));
|
||||
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type));
|
||||
}
|
||||
@@ -173,11 +173,11 @@ public class CommunityDetailsActivity extends AbsActivity {
|
||||
if (activeBean.getIs_love().equals("1")) {
|
||||
activeBean.setIs_love("0");
|
||||
ImgLoader.display(CommunityDetailsActivity.this, R.mipmap.icon_like01, like);
|
||||
likeCount.setText(Integer.parseInt(activeBean.getLove_num()) - 1 + "人觉得很赞");
|
||||
likeCount.setText(Integer.parseInt(activeBean.getLove_num()) - 1 + getResources().getString(com.yunbao.main.R.string.person_like));
|
||||
} else {
|
||||
activeBean.setIs_love("1");
|
||||
ImgLoader.display(CommunityDetailsActivity.this, R.mipmap.icon_like, like);
|
||||
likeCount.setText(Integer.parseInt(activeBean.getLove_num()) + 1 + "人觉得很赞");
|
||||
likeCount.setText(Integer.parseInt(activeBean.getLove_num()) + 1 + getResources().getString(com.yunbao.main.R.string.person_like));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -189,8 +189,8 @@ public class CommunityDetailsActivity extends AbsActivity {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
SparseArray<String> array = new SparseArray<>();
|
||||
array.append(0, "举报");
|
||||
array.append(1, "不感兴趣");
|
||||
array.append(0, getResources().getString(R.string.report));
|
||||
array.append(1, getResources().getString(R.string.not_interested));
|
||||
DialogUitl.showStringArrayDialog(CommunityDetailsActivity.this, array, new DialogUitl.StringArrayDialogCallback() {
|
||||
@Override
|
||||
public void onItemClick(String text, int tag) {
|
||||
@@ -365,12 +365,12 @@ public class CommunityDetailsActivity extends AbsActivity {
|
||||
}
|
||||
if (activeBean.getIs_attention().equals("1")) {//关注
|
||||
ImgLoader.display(CommunityDetailsActivity.this, R.mipmap.icon_like_followed, followIcon);
|
||||
followName.setText("已关注");
|
||||
followName.setText(getResources().getString(R.string.following));
|
||||
followName.setTextColor(Color.parseColor("#777777"));
|
||||
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type_1));
|
||||
} else {
|
||||
ImgLoader.display(CommunityDetailsActivity.this, R.mipmap.icon_like_follow, followIcon);
|
||||
followName.setText("关注");
|
||||
followName.setText(getResources().getString(R.string.follow));
|
||||
followName.setTextColor(getResources().getColor(R.color.white));
|
||||
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type));
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.yunbao.main.activity;
|
||||
|
||||
import android.Manifest;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.app.Dialog;
|
||||
import android.content.Intent;
|
||||
import android.content.pm.PackageManager;
|
||||
import android.database.Cursor;
|
||||
@@ -326,8 +327,13 @@ public class UserHomeActivity extends AbsActivity {
|
||||
|
||||
@Override
|
||||
public void onImgDel(UserHomeImgBean activeBean, int position) {
|
||||
bannerImgList.remove(position);
|
||||
uploadImg(false);
|
||||
DialogUitl.showSimpleDialog(mContext, getResources().getString(com.yunbao.main.R.string.user_home_img_del_dialog), new DialogUitl.SimpleCallback() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog, String content) {
|
||||
bannerImgList.remove(position);
|
||||
uploadImg(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
mBanner.setAutoPlay(false).setPages(bannerImgList, new UserHomeImgsViewHolder()).setOnPageChangeListener(new ViewPager.OnPageChangeListener() {
|
||||
@@ -452,12 +458,12 @@ public class UserHomeActivity extends AbsActivity {
|
||||
public void callback(Integer isAttention) {
|
||||
if (isAttention == 1) {
|
||||
ImgLoader.display(UserHomeActivity.this, R.mipmap.icon_like_followed, followIcon);
|
||||
followName.setText("已关注");
|
||||
followName.setText(getResources().getString(R.string.following));
|
||||
followName.setTextColor(Color.parseColor("#777777"));
|
||||
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type_1));
|
||||
} else {
|
||||
ImgLoader.display(UserHomeActivity.this, R.mipmap.icon_like_follow, followIcon);
|
||||
followName.setText("关注");
|
||||
followName.setText(getResources().getString(R.string.follow));
|
||||
followName.setTextColor(getResources().getColor(R.color.white));
|
||||
followLayout.setBackground(getResources().getDrawable(R.drawable.bg_main_com_type));
|
||||
}
|
||||
@@ -478,7 +484,7 @@ public class UserHomeActivity extends AbsActivity {
|
||||
itemLayout03.setVisibility(View.GONE);
|
||||
itemLayout04.setVisibility(View.GONE);
|
||||
}
|
||||
moreText.setText("查看更多");
|
||||
moreText.setText(getResources().getString(R.string.moer));
|
||||
ImgLoader.display(mContext, R.mipmap.icon_down, moreIcon);
|
||||
} else {
|
||||
if (isAnchor) {
|
||||
@@ -490,7 +496,7 @@ public class UserHomeActivity extends AbsActivity {
|
||||
itemLayout03.setVisibility(View.VISIBLE);
|
||||
itemLayout04.setVisibility(View.VISIBLE);
|
||||
}
|
||||
moreText.setText("收起");
|
||||
moreText.setText(getResources().getString(R.string.video_comment_collapsed));
|
||||
ImgLoader.display(mContext, R.mipmap.icon_up, moreIcon);
|
||||
}
|
||||
isShowcase = !isShowcase;
|
||||
@@ -535,6 +541,8 @@ public class UserHomeActivity extends AbsActivity {
|
||||
public void onClick(View v) {
|
||||
if (bannerImgList.size() < 9) {
|
||||
selectImg();
|
||||
}else{
|
||||
ToastUtil.show(getResources().getString(com.yunbao.main.R.string._9));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -549,7 +557,7 @@ public class UserHomeActivity extends AbsActivity {
|
||||
public void onClick(View v) {
|
||||
String temp = userInfo.getCheckBlack().get(0).getU2t().equals("0") ? getResources().getString(R.string.black_add) : getResources().getString(com.yunbao.main.R.string.cancel_back);
|
||||
SparseArray<String> array = new SparseArray<>();
|
||||
array.append(1, "不感興趣");
|
||||
array.append(1, getResources().getString(com.yunbao.main.R.string.not_interested));
|
||||
array.append(0, getResources().getString(R.string.report));
|
||||
array.append(2, temp);
|
||||
DialogUitl.showStringArrayDialog(UserHomeActivity.this, array, new DialogUitl.StringArrayDialogCallback() {
|
||||
@@ -736,9 +744,9 @@ public class UserHomeActivity extends AbsActivity {
|
||||
public void onSuccess(int code, String msg, String[] info) {
|
||||
if (code == 0 && info != null) {
|
||||
if (isUp) {
|
||||
ToastUtil.show("上传成功");
|
||||
ToastUtil.show(getResources().getString(com.yunbao.main.R.string.upload_success));
|
||||
} else {
|
||||
ToastUtil.show("删除成功");
|
||||
ToastUtil.show(getResources().getString(com.yunbao.main.R.string.upload_failed));
|
||||
}
|
||||
mBanner.setPages(bannerImgList, new UserHomeImgsViewHolder()).start();
|
||||
tempList = new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user