有没有办法从android ContentView
获取BottomSheetDialog
?在PopupWindow
中,我可以通过PopupWindow
方法获取popupWindow.getContentView()
的观看次数。但是,我找不到任何从ConentView
获取BottomSheetDialog
的方法。
答案 0 :(得分:2)
请试试这个:
if (JSON.parse(localStorage.getItem('currentClass')) == "active")
{
jQuery('#supporttbl').addClass('active')
$('.sub-menu').css({ "display": "block" });
}
$("#supporttbl").click(function () {
var currentClass;
if ($(this).attr('class')== "active") {
currentClass = $(this).attr('class');
localStorage.setItem('currentClass', JSON.stringify(currentClass));
console.log(JSON.parse(localStorage.getItem('currentClass')));
jQuery('#supporttbl').addClass('active')
$('.sub-menu').css({ "display": "block" });
} else {
currentClass = "Null";
localStorage.setItem('currentClass', JSON.stringify(currentClass));
console.log(JSON.parse(localStorage.getItem('currentClass')));
jQuery('#supporttbl').removeClass('active')
$('.sub-menu').css({ "display": "none" });
}
});