调整直播间UI
This commit is contained in:
parent
917d237b6d
commit
e0eea59539
@ -198,11 +198,12 @@ public class LiveAnchorEditCallMeAdapter extends RecyclerView.Adapter<LiveAnchor
|
|||||||
@Override
|
@Override
|
||||||
public void onItemClick(String bean, int position) {
|
public void onItemClick(String bean, int position) {
|
||||||
if (StringUtil.isEmpty(bean)) {
|
if (StringUtil.isEmpty(bean)) {
|
||||||
letter.setText(WordUtil.getString(R.string.live_anchor_edit_call_me_not_filled));
|
letter.setText(R.string.live_anchor_edit_call_me_letter_content);
|
||||||
letter.setTextColor(Color.parseColor("#80FFFFFF"));
|
letter.setTextColor(Color.parseColor("#80FFFFFF"));
|
||||||
} else {
|
} else {
|
||||||
letter.setText(bean);
|
letter.setText(bean);
|
||||||
letter.setTextColor(Color.WHITE);
|
letter.setTextColor(Color.WHITE);
|
||||||
|
list.get(1).setValue(bean);
|
||||||
}
|
}
|
||||||
if (onItemClickListener != null) {
|
if (onItemClickListener != null) {
|
||||||
onItemClickListener.onItemClick(new TmpData(letter.getText().toString(), 1, TYPE_LETTER), getAbsoluteAdapterPosition());
|
onItemClickListener.onItemClick(new TmpData(letter.getText().toString(), 1, TYPE_LETTER), getAbsoluteAdapterPosition());
|
||||||
@ -215,7 +216,13 @@ public class LiveAnchorEditCallMeAdapter extends RecyclerView.Adapter<LiveAnchor
|
|||||||
@Override
|
@Override
|
||||||
public void setData(TmpData data, int position) {
|
public void setData(TmpData data, int position) {
|
||||||
super.setData(data, position);
|
super.setData(data, position);
|
||||||
|
if(StringUtil.isEmpty(data.getValue())){
|
||||||
|
letter.setText(R.string.live_anchor_edit_call_me_letter_content);
|
||||||
|
letter.setTextColor(Color.parseColor("#80FFFFFF"));
|
||||||
|
}else {
|
||||||
letter.setText(data.getValue());
|
letter.setText(data.getValue());
|
||||||
|
letter.setTextColor(Color.WHITE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -274,7 +281,8 @@ public class LiveAnchorEditCallMeAdapter extends RecyclerView.Adapter<LiveAnchor
|
|||||||
public void onItemClick(String bean, int position) {
|
public void onItemClick(String bean, int position) {
|
||||||
if (StringUtil.isEmpty(bean)) {
|
if (StringUtil.isEmpty(bean)) {
|
||||||
contact.setTag(null);
|
contact.setTag(null);
|
||||||
contact.setText(WordUtil.getString(R.string.live_anchor_edit_call_me_not_filled));
|
contact.setHint(WordUtil.getString(R.string.live_anchor_edit_call_me_not_filled));
|
||||||
|
if(position==0)
|
||||||
contact.setTextColor(Color.parseColor("#80FFFFFF"));
|
contact.setTextColor(Color.parseColor("#80FFFFFF"));
|
||||||
} else {
|
} else {
|
||||||
contact.setTag(bean);
|
contact.setTag(bean);
|
||||||
|
@ -75,7 +75,7 @@ public class LiveAnchorEditCallMeEditAppDialog extends AbsDialogPopupWindow {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case TYPE_LETTER:
|
case TYPE_LETTER:
|
||||||
titleView.setText("填寫信內容");
|
titleView.setText("填寫信內容");
|
||||||
edit.setHint("我能想到最浪漫的事,就是和你一起慢慢變老,一路上收藏點點滴滴的歡笑,留到以後坐著搖椅慢慢聊。");
|
edit.setHint(R.string.live_anchor_edit_call_me_letter_content);
|
||||||
title.setText("信內容");
|
title.setText("信內容");
|
||||||
break;
|
break;
|
||||||
case TYPE_APP_WECHAT:
|
case TYPE_APP_WECHAT:
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
app:layout_constraintTop_toTopOf="parent"
|
||||||
app:srcCompat="@mipmap/bg_live_user_mailbox_top" />
|
app:srcCompat="@mipmap/bg_live_user_mailbox_top2" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/title"
|
android:id="@+id/title"
|
||||||
|
BIN
live/src/main/res/mipmap-xxxhdpi/bg_live_user_mailbox_top2.png
Normal file
BIN
live/src/main/res/mipmap-xxxhdpi/bg_live_user_mailbox_top2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 112 KiB |
Loading…
Reference in New Issue
Block a user