add [个人主页-页面跳转]
This commit is contained in:
parent
d2f4bb3d4f
commit
b0a9ebe0f3
@ -383,6 +383,7 @@
|
|||||||
android:textStyle="bold" />
|
android:textStyle="bold" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
android:id="@+id/fanName"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
|
@ -9,6 +9,7 @@ import android.graphics.Color;
|
|||||||
import android.graphics.Outline;
|
import android.graphics.Outline;
|
||||||
import android.net.Uri;
|
import android.net.Uri;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
|
import android.os.Bundle;
|
||||||
import android.util.SparseArray;
|
import android.util.SparseArray;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewOutlineProvider;
|
import android.view.ViewOutlineProvider;
|
||||||
@ -36,6 +37,7 @@ import com.yunbao.common.CommonAppConfig;
|
|||||||
import com.yunbao.common.Constants;
|
import com.yunbao.common.Constants;
|
||||||
import com.yunbao.common.R;
|
import com.yunbao.common.R;
|
||||||
import com.yunbao.common.activity.AbsActivity;
|
import com.yunbao.common.activity.AbsActivity;
|
||||||
|
import com.yunbao.common.activity.WebViewActivity;
|
||||||
import com.yunbao.common.adapter.LabelTagAdapter;
|
import com.yunbao.common.adapter.LabelTagAdapter;
|
||||||
import com.yunbao.common.adapter.UserCommunityAdapter;
|
import com.yunbao.common.adapter.UserCommunityAdapter;
|
||||||
import com.yunbao.common.adapter.UserHomeImgAdapter;
|
import com.yunbao.common.adapter.UserHomeImgAdapter;
|
||||||
@ -62,6 +64,8 @@ import com.yunbao.common.utils.StringUtil;
|
|||||||
import com.yunbao.common.utils.ToastUtil;
|
import com.yunbao.common.utils.ToastUtil;
|
||||||
import com.yunbao.common.utils.WordUtil;
|
import com.yunbao.common.utils.WordUtil;
|
||||||
import com.yunbao.common.views.UserHomeImgsViewHolder;
|
import com.yunbao.common.views.UserHomeImgsViewHolder;
|
||||||
|
import com.yunbao.live.activity.LiveRyAnchorActivity;
|
||||||
|
import com.yunbao.live.dialog.GiftWallDialog;
|
||||||
import com.yunbao.live.views.ShowBigPhoto;
|
import com.yunbao.live.views.ShowBigPhoto;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
@ -133,6 +137,7 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
private List<String> tagList;
|
private List<String> tagList;
|
||||||
private GifImageView liveStatus;
|
private GifImageView liveStatus;
|
||||||
private TextView topName;
|
private TextView topName;
|
||||||
|
private TextView fanName;
|
||||||
private LinearLayout topLayout;
|
private LinearLayout topLayout;
|
||||||
private ScrollView scrollView;
|
private ScrollView scrollView;
|
||||||
private RelativeLayout topImgLayout;
|
private RelativeLayout topImgLayout;
|
||||||
@ -173,7 +178,7 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
beanList = JSONArray.parseArray(Arrays.toString(info), ActiveOtherBean.class);
|
beanList = JSONArray.parseArray(Arrays.toString(info), ActiveOtherBean.class);
|
||||||
UserCommunityAdapter userCommunityAdapter = new UserCommunityAdapter(mContext, beanList,isMe);
|
UserCommunityAdapter userCommunityAdapter = new UserCommunityAdapter(mContext, beanList, isMe);
|
||||||
userCommunityAdapter.setOnItemClickListener(new UserCommunityAdapter.onItemClickListener() {
|
userCommunityAdapter.setOnItemClickListener(new UserCommunityAdapter.onItemClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onImgItem(ActiveOtherBean bean, int position) {
|
public void onImgItem(ActiveOtherBean bean, int position) {
|
||||||
@ -260,6 +265,7 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
authenticationLayout.setVisibility(View.VISIBLE);
|
authenticationLayout.setVisibility(View.VISIBLE);
|
||||||
} else {
|
} else {
|
||||||
imgUp.setVisibility(View.GONE);
|
imgUp.setVisibility(View.GONE);
|
||||||
|
imgLabel.setVisibility(View.GONE);
|
||||||
authorIcon.setVisibility(View.GONE);
|
authorIcon.setVisibility(View.GONE);
|
||||||
authenticationLayout.setVisibility(View.GONE);
|
authenticationLayout.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
@ -304,6 +310,9 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
myAdapter.setData(tagList);
|
myAdapter.setData(tagList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!StringUtil.isEmpty(userInfo.getUserHomeTopInfo().getFans_name())) {
|
||||||
|
fanName.setText(userInfo.getUserHomeTopInfo().getFans_name());
|
||||||
|
}
|
||||||
mBanner.setOutlineProvider(new ViewOutlineProvider() {
|
mBanner.setOutlineProvider(new ViewOutlineProvider() {
|
||||||
@Override
|
@Override
|
||||||
public void getOutline(View view, Outline outline) {
|
public void getOutline(View view, Outline outline) {
|
||||||
@ -425,6 +434,7 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void initView() {
|
private void initView() {
|
||||||
|
fanName = findViewById(R.id.fanName);
|
||||||
bottomEditLayout = findViewById(R.id.bottomEditLayout);
|
bottomEditLayout = findViewById(R.id.bottomEditLayout);
|
||||||
imgUp = findViewById(R.id.imgUp);
|
imgUp = findViewById(R.id.imgUp);
|
||||||
imgLabel = findViewById(R.id.imgLabel);
|
imgLabel = findViewById(R.id.imgLabel);
|
||||||
@ -613,6 +623,48 @@ public class UserHomeActivity extends AbsActivity {
|
|||||||
RouteUtil.forwardEditProfileActivity();
|
RouteUtil.forwardEditProfileActivity();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
itemLayout01.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
//
|
||||||
|
Constants.myIntoIndex = 2;
|
||||||
|
String url = CommonAppConfig.HOST + "/h5/shequ/index.html#/h5/shequ/FengSiTuan?touid=" + uid;
|
||||||
|
WebViewActivity.forward(mContext, url, false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
itemLayout02.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Constants.myIntoIndex = 2;
|
||||||
|
String url = CommonAppConfig.HOST + "/h5/shequ/index.html#/h5/shequ/ShouHu?touid=" + uid;
|
||||||
|
WebViewActivity.forward(mContext, url, false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
itemLayout03.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
GiftWallDialog giftWallDialog = new GiftWallDialog();
|
||||||
|
Bundle bundle = new Bundle();
|
||||||
|
bundle.putString(Constants.LIVE_UID, uid);
|
||||||
|
bundle.putString("mAnchorName", userInfo.getUserHomeTopInfo().getUser_name());
|
||||||
|
bundle.putString("mAvatarUrl", userInfo.getUserHomeTopInfo().getUser_avatar());
|
||||||
|
bundle.putString("toUid", uid);
|
||||||
|
bundle.putInt("isAttention", userInfo.getUserHomeTopInfo().getIs_attention());
|
||||||
|
bundle.putBoolean("isLive", isAnchor);
|
||||||
|
bundle.putBoolean("SBW", !(mContext instanceof LiveRyAnchorActivity));
|
||||||
|
giftWallDialog.setArguments(bundle);
|
||||||
|
giftWallDialog.show(((AbsActivity) mContext).getSupportFragmentManager(), "GiftWallDialog");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
itemLayout04.setOnClickListener(new View.OnClickListener() {
|
||||||
|
@Override
|
||||||
|
public void onClick(View v) {
|
||||||
|
Constants.myIntoIndex = 2;
|
||||||
|
String url = CommonAppConfig.HOST + "/h5/shequ/index.html#/h5/shequ/RongYuQiang??touid=" + uid;
|
||||||
|
WebViewActivity.forward(mContext, url, false);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
findViewById(R.id.setting).setOnClickListener(new View.OnClickListener() {
|
findViewById(R.id.setting).setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
|
Loading…
Reference in New Issue
Block a user