Skip to content

Instantly share code, notes, and snippets.

View Zoha131's full-sized avatar
🎯
Hunting a Job

Md Abir Hasan Zoha Zoha131

🎯
Hunting a Job
View GitHub Profile
private IMainActivity mIMainActivity;
static int mAppHeight;
static int currentOrientation = -1;
public void setKeyboardVisibilityListener() {
final View contentView = getActivity().findViewById(android.R.id.content);
contentView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
private IMainActivity mIMainActivity;
static int mAppHeight;
static int currentOrientation = -1;
public void setKeyboardVisibilityListener() {
final View contentView = getActivity().findViewById(android.R.id.content);
contentView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {