新增主播数据弹窗
This commit is contained in:
@@ -14,6 +14,7 @@ import android.widget.TextView;
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.live.dialog.LiveDataInfoDialog;
|
||||
import com.yunbao.live.dialog.LiveTaskDialog;
|
||||
|
||||
|
||||
@@ -30,7 +31,8 @@ public class TestActivity extends AppCompatActivity {
|
||||
listView = new ListView(this);
|
||||
setContentView(listView);
|
||||
String[] strs = new String[]{
|
||||
"弹出主播任务"
|
||||
"弹出主播任务",
|
||||
"直播數據"
|
||||
};
|
||||
|
||||
listView.setAdapter(new ArrayAdapter<String>(this, android.R.layout.simple_expandable_list_item_1, strs));
|
||||
@@ -39,7 +41,10 @@ public class TestActivity extends AppCompatActivity {
|
||||
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
|
||||
switch (position) {
|
||||
case 0:
|
||||
new LiveTaskDialog(TestActivity.this).showDialog();
|
||||
new LiveTaskDialog(TestActivity.this).showDialog();
|
||||
break;
|
||||
case 1:
|
||||
new LiveDataInfoDialog(TestActivity.this).showDialog();
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user