本文整理了Java中android.support.v4.app.ListFragment.ensureList()
方法的一些代码示例,展示了ListFragment.ensureList()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListFragment.ensureList()
方法的具体详情如下:
包路径:android.support.v4.app.ListFragment
类名称:ListFragment
方法名:ensureList
暂无
代码示例来源:origin: kingargyle/adt-leanback-support
/**
* Get the activity's list view widget.
*/
public ListView getListView() {
ensureList();
return mList;
}
代码示例来源:origin: com.google.android/support-v4
/**
* Get the activity's list view widget.
*/
public ListView getListView() {
ensureList();
return mList;
}
代码示例来源:origin: com.google.android/support-v4
/**
* Attach to list view once the view hierarchy has been created.
*/
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ensureList();
}
代码示例来源:origin: kingargyle/adt-leanback-support
/**
* Attach to list view once the view hierarchy has been created.
*/
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ensureList();
}
代码示例来源:origin: kingargyle/adt-leanback-support
/**
* Get the cursor row ID of the currently selected list item.
*/
public long getSelectedItemId() {
ensureList();
return mList.getSelectedItemId();
}
代码示例来源:origin: com.google.android/support-v4
/**
* Get the cursor row ID of the currently selected list item.
*/
public long getSelectedItemId() {
ensureList();
return mList.getSelectedItemId();
}
代码示例来源:origin: com.google.android/support-v4
/**
* Set the currently selected list item to the specified
* position with the adapter's data
*
* @param position
*/
public void setSelection(int position) {
ensureList();
mList.setSelection(position);
}
代码示例来源:origin: com.google.android/support-v4
/**
* Get the position of the currently selected list item.
*/
public int getSelectedItemPosition() {
ensureList();
return mList.getSelectedItemPosition();
}
代码示例来源:origin: kingargyle/adt-leanback-support
/**
* Get the position of the currently selected list item.
*/
public int getSelectedItemPosition() {
ensureList();
return mList.getSelectedItemPosition();
}
代码示例来源:origin: kingargyle/adt-leanback-support
/**
* Set the currently selected list item to the specified
* position with the adapter's data
*
* @param position
*/
public void setSelection(int position) {
ensureList();
mList.setSelection(position);
}
代码示例来源:origin: com.google.android/support-v4
/**
* The default content for a ListFragment has a TextView that can
* be shown when the list is empty. If you would like to have it
* shown, call this method to supply the text it should use.
*/
public void setEmptyText(CharSequence text) {
ensureList();
if (mStandardEmptyView == null) {
throw new IllegalStateException("Can't be used with a custom content view");
}
mStandardEmptyView.setText(text);
if (mEmptyText == null) {
mList.setEmptyView(mStandardEmptyView);
}
mEmptyText = text;
}
代码示例来源:origin: kingargyle/adt-leanback-support
/**
* The default content for a ListFragment has a TextView that can
* be shown when the list is empty. If you would like to have it
* shown, call this method to supply the text it should use.
*/
public void setEmptyText(CharSequence text) {
ensureList();
if (mStandardEmptyView == null) {
throw new IllegalStateException("Can't be used with a custom content view");
}
mStandardEmptyView.setText(text);
if (mEmptyText == null) {
mList.setEmptyView(mStandardEmptyView);
}
mEmptyText = text;
}
代码示例来源:origin: com.google.android/support-v4
ensureList();
if (mProgressContainer == null) {
throw new IllegalStateException("Can't be used with a custom content view");
代码示例来源:origin: kingargyle/adt-leanback-support
ensureList();
if (mProgressContainer == null) {
throw new IllegalStateException("Can't be used with a custom content view");
内容来源于网络,如有侵权,请联系作者删除!