修改测试问题
This commit is contained in:
@@ -65,18 +65,18 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
||||
goHomeUser, anchorName, liveDurationAnchor, liveVotes, liveWatchNum;
|
||||
private RelativeLayout userLiveEnd, anchorLiveEnd;
|
||||
private ClipPathCircleImage clipImageUser, clipImageanchor;
|
||||
private LinearLayout followUser;
|
||||
private LinearLayout followUser, listShow;
|
||||
private ImageView changeBatchUser;
|
||||
private RecyclerView likeList;
|
||||
private SearchRecommendBodyAdapter adapter;
|
||||
private IMLoginModel model = null;
|
||||
|
||||
public LiveEndViewHolder(Context context, ViewGroup parentView,String uid) {
|
||||
public LiveEndViewHolder(Context context, ViewGroup parentView, String uid) {
|
||||
super(context, parentView);
|
||||
model = IMLoginManager.get(mContext).getUserInfo();
|
||||
if (TextUtils.equals(model.getId()+"",uid)){
|
||||
if (TextUtils.equals(model.getId() + "", uid)) {
|
||||
type = LiveOfType.ANCHOR;
|
||||
}else {
|
||||
} else {
|
||||
type = LiveOfType.USER;
|
||||
}
|
||||
}
|
||||
@@ -124,6 +124,16 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
||||
.anchorRecommend("3", new HttpCallback<AnchorRecommendModel>() {
|
||||
@Override
|
||||
public void onSuccess(AnchorRecommendModel data) {
|
||||
if (data.getListShow() == 1) {
|
||||
listShow.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
listShow.setVisibility(View.GONE);
|
||||
}
|
||||
if (data.getUpShow() == 1) {
|
||||
changeBatchUser.setVisibility(View.VISIBLE);
|
||||
} else {
|
||||
changeBatchUser.setVisibility(View.GONE);
|
||||
}
|
||||
fragment.dismiss();
|
||||
//组装搜索历史数据
|
||||
adapter.showData(data.getList());
|
||||
@@ -149,6 +159,7 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
||||
clipImageUser = (ClipPathCircleImage) findViewById(R.id.clip_image_user);
|
||||
|
||||
followUser = (LinearLayout) findViewById(R.id.follow_user);
|
||||
listShow = (LinearLayout) findViewById(R.id.list_show);
|
||||
changeBatchUser = (ImageView) findViewById(R.id.change_batch_user);
|
||||
likeList = (RecyclerView) findViewById(R.id.like_list);
|
||||
goHomeUser.setOnClickListener(new View.OnClickListener() {
|
||||
@@ -197,7 +208,7 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
||||
});
|
||||
}
|
||||
|
||||
public static void upData(String votes, String length, int nums,String uname) {
|
||||
public static void upData(String votes, String length, int nums, String uname) {
|
||||
Log.e("收", votes + "votes" + length + "length" + nums + "nums");
|
||||
|
||||
// mVotes.setText(votes);
|
||||
@@ -214,9 +225,9 @@ public class LiveEndViewHolder extends AbsViewHolder implements View.OnClickList
|
||||
}
|
||||
|
||||
public void showData(LiveBean liveBean, final String stream) {
|
||||
if (TextUtils.equals(model.getId()+"",liveBean.getUid())){
|
||||
if (TextUtils.equals(model.getId() + "", liveBean.getUid())) {
|
||||
type = LiveOfType.ANCHOR;
|
||||
}else {
|
||||
} else {
|
||||
type = LiveOfType.USER;
|
||||
}
|
||||
if (type == LiveOfType.USER) {
|
||||
|
||||
@@ -169,7 +169,7 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#b3000000"
|
||||
android:visibility="gone">
|
||||
android:visibility="visible">
|
||||
|
||||
|
||||
<View
|
||||
@@ -280,6 +280,7 @@
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/list_show"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_below="@id/view_xian"
|
||||
@@ -318,24 +319,28 @@
|
||||
android:id="@+id/like_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="20.67dp"
|
||||
android:layout_marginStart="11dp"
|
||||
android:layout_marginTop="20.67dp"
|
||||
android:layout_marginEnd="11dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/go_home_user"
|
||||
android:layout_width="206.33dp"
|
||||
android:layout_height="46.67dp"
|
||||
android:layout_marginStart="71dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:layout_marginEnd="71dp"
|
||||
android:background="@drawable/background_live_end_btn"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_back"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/go_home_user"
|
||||
android:layout_width="206.33dp"
|
||||
android:layout_height="46.67dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginStart="71dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:layout_marginEnd="71dp"
|
||||
android:layout_marginBottom="52dp"
|
||||
android:background="@drawable/background_live_end_btn"
|
||||
android:gravity="center"
|
||||
android:text="@string/live_back"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -343,7 +348,8 @@
|
||||
android:id="@+id/anchor_live_end"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#b3000000">
|
||||
android:background="#b3000000"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
@@ -481,13 +487,13 @@
|
||||
android:layout_width="206.33dp"
|
||||
android:layout_height="46.67dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:layout_marginStart="71dp"
|
||||
android:layout_marginTop="60dp"
|
||||
android:layout_marginEnd="71dp"
|
||||
android:layout_marginBottom="52dp"
|
||||
android:background="@drawable/background_live_end_btn"
|
||||
android:gravity="center"
|
||||
android:layout_centerHorizontal="true"
|
||||
android:text="@string/live_back"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="16sp" />
|
||||
|
||||
Reference in New Issue
Block a user