添加直播任务和直播数据入口
This commit is contained in:
parent
b8a91a85e4
commit
c1c4a7a38b
@ -45,6 +45,7 @@
|
|||||||
android:layout_weight="1" />
|
android:layout_weight="1" />
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
|
android:id="@+id/broadcast_data"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginStart="10dp"
|
android:layout_marginStart="10dp"
|
||||||
@ -128,10 +129,33 @@
|
|||||||
android:layout_marginTop="10dp"
|
android:layout_marginTop="10dp"
|
||||||
android:paddingEnd="16dp">
|
android:paddingEnd="16dp">
|
||||||
|
|
||||||
|
<LinearLayout
|
||||||
|
android:id="@+id/anchor_task"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:gravity="center"
|
||||||
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
<ImageView
|
||||||
|
android:layout_width="40dp"
|
||||||
|
android:layout_height="40dp"
|
||||||
|
android:src="@mipmap/live_more_icon_task" />
|
||||||
|
|
||||||
|
<TextView
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="6dp"
|
||||||
|
android:text="@string/anchor_task"
|
||||||
|
android:textColor="#FF9A9A9A"
|
||||||
|
android:textSize="12sp" />
|
||||||
|
|
||||||
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:id="@+id/live_tool_wish"
|
android:id="@+id/live_tool_wish"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginStart="28dp"
|
||||||
android:gravity="center"
|
android:gravity="center"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
|
BIN
common/src/main/res/mipmap-xxhdpi/live_more_icon_task.png
Normal file
BIN
common/src/main/res/mipmap-xxhdpi/live_more_icon_task.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
@ -1005,4 +1005,5 @@ Limited ride And limited avatar frame</string>
|
|||||||
<string name="phone_number">phone</string>
|
<string name="phone_number">phone</string>
|
||||||
<string name="broadcast_data">Broadcast</string>
|
<string name="broadcast_data">Broadcast</string>
|
||||||
<string name="click_to_view">Click To View</string>
|
<string name="click_to_view">Click To View</string>
|
||||||
|
<string name="anchor_task">Anchor Task</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -1026,4 +1026,5 @@
|
|||||||
<string name="phone_number" >手機號</string>
|
<string name="phone_number" >手機號</string>
|
||||||
<string name="broadcast_data" >開播數據</string>
|
<string name="broadcast_data" >開播數據</string>
|
||||||
<string name="click_to_view">點擊查看</string>
|
<string name="click_to_view">點擊查看</string>
|
||||||
|
<string name="anchor_task">主播任務</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -109,6 +109,8 @@ public class LiveNewFunctionDialogFragment extends AbsDialogFragment implements
|
|||||||
mMicView.setOnClickListener(this);
|
mMicView.setOnClickListener(this);
|
||||||
mRandomPk.setOnClickListener(this);
|
mRandomPk.setOnClickListener(this);
|
||||||
findViewById(R.id.message_linear).setOnClickListener(this);
|
findViewById(R.id.message_linear).setOnClickListener(this);
|
||||||
|
findViewById(R.id.broadcast_data).setOnClickListener(this);
|
||||||
|
findViewById(R.id.anchor_task).setOnClickListener(this);
|
||||||
|
|
||||||
findViewById(R.id.live_tool_robot).setOnClickListener(this);
|
findViewById(R.id.live_tool_robot).setOnClickListener(this);
|
||||||
|
|
||||||
@ -174,6 +176,13 @@ public class LiveNewFunctionDialogFragment extends AbsDialogFragment implements
|
|||||||
.asCustom(new LiveAnchorMessageCustomPopup(getContext()))
|
.asCustom(new LiveAnchorMessageCustomPopup(getContext()))
|
||||||
.show();
|
.show();
|
||||||
dismiss();
|
dismiss();
|
||||||
|
} else if (id == R.id.broadcast_data) {
|
||||||
|
//主播数据
|
||||||
|
new LiveDataInfoDialog(mContext).showDialog();
|
||||||
|
dismiss();
|
||||||
|
} else if (id == R.id.anchor_task) {
|
||||||
|
//主播任务
|
||||||
|
new LiveTaskDialog(mContext).showDialog();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user