androidx.core.widget.NestedScrollView.addView()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(100)

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

NestedScrollView.addView介绍

暂无

代码示例

代码示例来源:origin: florent37/ExpansionPanel

@Override
public void addView(View child, ViewGroup.LayoutParams params) {
  if (getChildCount() > 0) {
    throw new IllegalStateException("ExpansionLayout can host only one direct child");
  }
  super.addView(child, params);
  onViewAdded();
}

代码示例来源:origin: florent37/ExpansionPanel

@Override
public void addView(View child) {
  if (getChildCount() > 0) {
    throw new IllegalStateException("ExpansionLayout can host only one direct child");
  }
  super.addView(child);
  onViewAdded();
}

代码示例来源:origin: florent37/ExpansionPanel

@Override
public void addView(View child, int index) {
  if (getChildCount() > 0) {
    throw new IllegalStateException("ExpansionLayout can host only one direct child");
  }
  super.addView(child, index);
  onViewAdded();
}

代码示例来源:origin: florent37/ExpansionPanel

@Override
public void addView(View child, int index, ViewGroup.LayoutParams params) {
  if (getChildCount() > 0) {
    throw new IllegalStateException("ExpansionLayout can host only one direct child");
  }
  super.addView(child, index, params);
  onViewAdded();
}

代码示例来源:origin: bkhezry/ExtraWebView

private void setFullscreen(boolean isFullscreen) {
  if (!getUserVisibleHint()) {
    return;
  }
  mFullscreen = isFullscreen;
  mControls.setVisibility(isFullscreen ? VISIBLE : View.GONE);
  AppUtils.toggleWebViewZoom(mWebView.getSettings(), isFullscreen);
  if (isFullscreen) {
    mScrollView.removeView(mScrollViewContent);
    mFullscreenView.addView(mScrollViewContent);
  } else {
    reset();
    mWebView.pageUp(true);
    mFullscreenView.removeView(mScrollViewContent);
    mScrollView.addView(mScrollViewContent);
  }
}

相关文章