update
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
package com.shayu.onetoone.dialog;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.View;
|
||||
|
||||
import androidx.annotation.NonNull;
|
||||
|
||||
import com.lxj.xpopup.core.AttachPopupView;
|
||||
import com.shayu.onetoone.R;
|
||||
import com.shayu.onetoone.manager.RouteManager;
|
||||
|
||||
public class MsgMoreDialog extends AttachPopupView implements View.OnClickListener {
|
||||
View config, read;
|
||||
|
||||
public MsgMoreDialog(@NonNull Context context) {
|
||||
super(context);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected int getImplLayoutId() {
|
||||
return R.layout.dialog_msg_more;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onCreate() {
|
||||
super.onCreate();
|
||||
config = findViewById(R.id.ll_config);
|
||||
read = findViewById(R.id.ll_read);
|
||||
config.setOnClickListener(this);
|
||||
read.setOnClickListener(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
int id = v.getId();
|
||||
if (id == R.id.ll_config) {
|
||||
RouteManager.forwardMsgMoreConfigActivity();
|
||||
} else if (id == R.id.ll_read) {
|
||||
|
||||
}
|
||||
dismiss();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user