@Override
public void onItemLongClick(View view, final int postion) {
//Toast.makeText(this, postion + ": Long Click Detected", Toast.LENGTH_SHORT).show();
new MaterialDialog.Builder(this)
.callback(new MaterialDialog.ButtonCallback() {
@Override
public void onPositive(MaterialDialog dialog) {
super.onPositive(dialog);
GlobalConfig.deleteSearchHistory(historyList.get(postion));
refreshHistoryList();
}
})
.theme(Theme.LIGHT)
.backgroundColorRes(R.color.dlgBackgroundColor)
.contentColorRes(R.color.dlgContentColor)
.positiveColorRes(R.color.dlgPositiveButtonColor)
.negativeColorRes(R.color.dlgNegativeButtonColor)
.title(getResources().getString(R.string.dialog_content_delete_one_search_record))
.content(historyList.get(postion))
.contentGravity(GravityEnum.CENTER)
.positiveText(R.string.dialog_positive_likethis)
.negativeText(R.string.dialog_negative_preferno)
.show();
}
SearchActivity.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:light-novel-library_Wenku8_Android
作者:
评论列表
文章目录