添加直播任务和直播数据入口

This commit is contained in:
18401019693 2023-02-18 15:01:16 +08:00
parent b8a91a85e4
commit c1c4a7a38b
5 changed files with 35 additions and 0 deletions

View File

@ -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">

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -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>

View File

@ -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>

View File

@ -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();
} }
} }