update 自由PK 次数用完了提示用户
update 自由PK 调整UI
This commit is contained in:
parent
03b3398bce
commit
ad028c69d0
@ -27,6 +27,11 @@ import java.util.Arrays;
|
|||||||
public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
||||||
private static final int HEAD = 0;
|
private static final int HEAD = 0;
|
||||||
private static final int ITEM = 2;
|
private static final int ITEM = 2;
|
||||||
|
private int freePkNum;//PK次数
|
||||||
|
|
||||||
|
public void setFreePkNum(int freePkNum) {
|
||||||
|
this.freePkNum = freePkNum;
|
||||||
|
}
|
||||||
|
|
||||||
public FreePkRecyclerAdapter(Context context) {
|
public FreePkRecyclerAdapter(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
@ -101,6 +106,10 @@ public class FreePkRecyclerAdapter extends RefreshAdapter<RandomPkUserBean> {
|
|||||||
ToastUtil.show(R.string.free_pk_user_pking);
|
ToastUtil.show(R.string.free_pk_user_pking);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (freePkNum == 0) {
|
||||||
|
ToastUtil.show(R.string.free_pk_num_null);
|
||||||
|
return;
|
||||||
|
}
|
||||||
LiveHttpUtil.getMicList(LiveRyAnchorActivity.mLiveUid, 0, new com.yunbao.common.http.HttpCallback() {
|
LiveHttpUtil.getMicList(LiveRyAnchorActivity.mLiveUid, 0, new com.yunbao.common.http.HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
public void onSuccess(int code, String msg, String[] info) {
|
||||||
|
@ -151,6 +151,7 @@ public class FreePkDialogFragment extends AbsDialogFragment implements View.OnCl
|
|||||||
@Override
|
@Override
|
||||||
public void onSuccess(Integer data) {
|
public void onSuccess(Integer data) {
|
||||||
freePkNum.setText("" + data);
|
freePkNum.setText("" + data);
|
||||||
|
adapter.setFreePkNum(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -238,6 +239,7 @@ public class FreePkDialogFragment extends AbsDialogFragment implements View.OnCl
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 搜索
|
* 搜索
|
||||||
|
*
|
||||||
* @param key
|
* @param key
|
||||||
*/
|
*/
|
||||||
public void search(String key) {
|
public void search(String key) {
|
||||||
|
@ -155,8 +155,8 @@
|
|||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/imageView6"
|
android:id="@+id/imageView6"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="14dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="14dp"
|
||||||
android:layout_marginEnd="4dp"
|
android:layout_marginEnd="4dp"
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
app:layout_constraintBottom_toBottomOf="parent"
|
||||||
app:layout_constraintEnd_toStartOf="@+id/tmp_text2"
|
app:layout_constraintEnd_toStartOf="@+id/tmp_text2"
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
<string name="random_pk_info_btn_end_desc" translatable="false">退出過程中也有可能匹配到對手</string>
|
<string name="random_pk_info_btn_end_desc" translatable="false">退出過程中也有可能匹配到對手</string>
|
||||||
<string name="random_pk_search_hint" translatable="false">請輸入您要pk的主播昵稱或id</string>
|
<string name="random_pk_search_hint" translatable="false">請輸入您要pk的主播昵稱或id</string>
|
||||||
<string name="free_pk_user_pking" translatable="false">對方正在PK中</string>
|
<string name="free_pk_user_pking" translatable="false">對方正在PK中</string>
|
||||||
|
<string name="free_pk_num_null" translatable="false">PK次數已用完</string>
|
||||||
|
|
||||||
|
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user