老版本新人任务Toast 注释
This commit is contained in:
parent
0ea401a90e
commit
85160a305c
@ -124,7 +124,9 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
|
||||
public void publicToast(Context content) {
|
||||
// 定义Toast对象
|
||||
Toast toast = new Toast(content);
|
||||
|
||||
// 老版本新人任务Toast 注释
|
||||
/* Toast toast = new Toast(content);
|
||||
// 1、加载布局
|
||||
View view = LayoutInflater.from(content).inflate(R.layout.diy_toast_view, null);
|
||||
// 2、获取组件
|
||||
@ -142,7 +144,7 @@ public class LiveLinkMicPresenter implements View.OnClickListener {
|
||||
// 5-3、250 表示距离上方250dp
|
||||
toast.setGravity(Gravity.CENTER, Gravity.CENTER, Gravity.CENTER);
|
||||
// 6、显示toast
|
||||
toast.show();
|
||||
toast.show();*/
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user