android.support.v4.widget.DrawerLayout.getRootView()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.4k)|赞(0)|评价(0)|浏览(116)

本文整理了Java中android.support.v4.widget.DrawerLayout.getRootView()方法的一些代码示例,展示了DrawerLayout.getRootView()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DrawerLayout.getRootView()方法的具体详情如下:
包路径:android.support.v4.widget.DrawerLayout
类名称:DrawerLayout
方法名:getRootView

DrawerLayout.getRootView介绍

暂无

代码示例

代码示例来源:origin: kingargyle/adt-leanback-support

void dispatchOnDrawerClosed(View drawerView) {
  final LayoutParams lp = (LayoutParams) drawerView.getLayoutParams();
  if (lp.knownOpen) {
    lp.knownOpen = false;
    if (mListener != null) {
      mListener.onDrawerClosed(drawerView);
    }
    updateChildrenImportantForAccessibility(drawerView, false);
    // Only send WINDOW_STATE_CHANGE if the host has window focus. This
    // may change if support for multiple foreground windows (e.g. IME)
    // improves.
    if (hasWindowFocus()) {
      final View rootView = getRootView();
      if (rootView != null) {
        rootView.sendAccessibilityEvent(AccessibilityEvent.TYPE_WINDOW_STATE_CHANGED);
      }
    }
  }
}

代码示例来源:origin: stackoverflow.com

mGravity = getDrawerViewGravity(mDrawer);
mDrawerLayout = drawerLayout;
mRootView = (ViewGroup)mDrawerLayout.getRootView();
LayoutInflater inflater = (LayoutInflater) mDrawerLayout.getContext().getSystemService( Context.LAYOUT_INFLATER_SERVICE );
mHandle = inflater.inflate(handleLayout, mRootView, false);

代码示例来源:origin: indywidualny/FaceSlim

View root = mDrawerLayout.getRootView();
root.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
Log.v("Hardware Acceleration", "disabled for this view");

相关文章