android.support.v7.app.AppCompatActivity.onContentChanged()方法的使用及代码示例

x33g5p2x  于2022-01-15 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(80)

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

AppCompatActivity.onContentChanged介绍

暂无

代码示例

代码示例来源:origin: fanturbo/Kanzhibo

@Override
public void onContentChanged() {
 super.onContentChanged();
 ButterKnife.bind(this);
}

代码示例来源:origin: lessthanoptimal/BoofAndroidDemo

public void  onContentChanged  () {
  System.out.println("onContentChanged");
  super.onContentChanged();
}

代码示例来源:origin: shazam/android-aspects

@Override
public void onContentChanged() {
  super.onContentChanged();
  dispatcher.dispatchOnContentChanged(this);
}

代码示例来源:origin: FussenYu/MVP_Project

@Override
public void onContentChanged() {
  super.onContentChanged();
  LogUtil.fussenLog().d(TAG+"====onContentChanged========");
  mUbinder = ButterKnife.bind(this);
}

代码示例来源:origin: yeungeek/monkey-android

@Override
public void onContentChanged() {
  super.onContentChanged();
  getMvpDelegate().onContentChanged();
}

代码示例来源:origin: nerzhul/ncsms-android

/**
 * Updates the screen state (current list and other views) when the
 * content changes.
 *
 * @see Activity#onContentChanged()
 */
@Override
public void onContentChanged() {
  super.onContentChanged();
  View emptyView = findViewById(R.id.empty);
  mList = findViewById(R.id.list);
  if (mList == null) {
    throw new RuntimeException(
        "Your content must have a ListView whose id attribute is " +
            "'android.R.id.list'");
  }
  if (emptyView != null) {
    mList.setEmptyView(emptyView);
  }
  mList.setOnItemClickListener(mOnClickListener);
  if (mFinishedStart) {
    setListAdapter(mAdapter);
  }
  mHandler.post(mRequestFocus);
  mFinishedStart = true;
}

代码示例来源:origin: nerzhul/ownCloud-SMS-App

/**
 * Updates the screen state (current list and other views) when the
 * content changes.
 *
 * @see Activity#onContentChanged()
 */
@Override
public void onContentChanged() {
  super.onContentChanged();
  View emptyView = findViewById(R.id.empty);
  mList = findViewById(R.id.list);
  if (mList == null) {
    throw new RuntimeException(
        "Your content must have a ListView whose id attribute is " +
            "'android.R.id.list'");
  }
  if (emptyView != null) {
    mList.setEmptyView(emptyView);
  }
  mList.setOnItemClickListener(mOnClickListener);
  if (mFinishedStart) {
    setListAdapter(mAdapter);
  }
  mHandler.post(mRequestFocus);
  mFinishedStart = true;
}

代码示例来源:origin: NordicSemiconductor/Android-nRF-Toolbox

/**
 * Updates the screen state (current list and other views) when the content changes.
 * 
 * @see android.support.v7.app.AppCompatActivity#onContentChanged()
 */
@Override
public void onContentChanged() {
  super.onContentChanged();
  View emptyView = findViewById(R.id.empty);
  mList = findViewById(R.id.list);
  if (mList == null) {
    throw new RuntimeException(
        "Your content must have a ExpandableListView whose id attribute is " +
            "'R.id.list'");
  }
  if (emptyView != null) {
    mList.setEmptyView(emptyView);
  }
  mList.setOnChildClickListener(this);
  mList.setOnGroupExpandListener(this);
  mList.setOnGroupCollapseListener(this);
  if (mFinishedStart) {
    setListAdapter(mAdapter);
  }
  mFinishedStart = true;
}

相关文章

微信公众号

最新文章

更多

AppCompatActivity类方法