本文整理了Java中android.widget.ListView.layoutChildren()
方法的一些代码示例,展示了ListView.layoutChildren()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ListView.layoutChildren()
方法的具体详情如下:
包路径:android.widget.ListView
类名称:ListView
方法名:layoutChildren
暂无
代码示例来源:origin: wangdan/AisenWeiBo
protected void layoutChildren() {
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
}
}
代码示例来源:origin: iSoron/uhabits
@Override
protected void layoutChildren() {
final CalendarDay focusedDay = findAccessibilityFocus();
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
} else {
restoreAccessibilityFocus(focusedDay);
}
}
代码示例来源:origin: UweTrottmann/SeriesGuide
@Override
protected void layoutChildren() {
super.layoutChildren();
if (mFloatView != null) {
if (mFloatView.isLayoutRequested() && !mFloatViewOnMeasured) {
// Have to measure here when usual android measure
// pass is skipped. This happens during a drag-sort
// when layoutChildren is called directly.
measureFloatView();
}
mFloatView.layout(0, 0, mFloatView.getMeasuredWidth(), mFloatView.getMeasuredHeight());
mFloatViewOnMeasured = false;
}
}
代码示例来源:origin: tony-Shx/Swface
@Override
protected void layoutChildren() {
if (!mBlockLayoutChildren) {
super.layoutChildren();
}
}
}
代码示例来源:origin: matrix-org/matrix-android-sdk
@Override
protected void layoutChildren() {
// the adapter items are added without refreshing the list (back pagination only)
// to reduce the number of refresh
try {
super.layoutChildren();
} catch (Exception e) {
Log.e(LOG_TAG, "## layoutChildren() failed " + e.getMessage(), e);
}
}
代码示例来源:origin: sjtuwzx/Filter
@Override
protected void layoutChildren() {
if (mSelectionPosition >= 0) {
setSelectionFromTop(mSelectionPosition, mTop);
mSelectionPosition = -1;
mTop = 0;
}
super.layoutChildren();
}
}
代码示例来源:origin: devinhu/androidone
@Override
protected void layoutChildren() {
super.layoutChildren();
if (mFloatView != null) {
if (mFloatView.isLayoutRequested() && !mFloatViewOnMeasured) {
// Have to measure here when usual android measure
// pass is skipped. This happens during a drag-sort
// when layoutChildren is called directly.
measureFloatView();
}
mFloatView.layout(0, 0, mFloatView.getMeasuredWidth(), mFloatView.getMeasuredHeight());
mFloatViewOnMeasured = false;
}
}
代码示例来源:origin: vanilla-music/vanilla
@Override
protected void layoutChildren() {
super.layoutChildren();
if (mFloatView != null) {
if (mFloatView.isLayoutRequested() && !mFloatViewOnMeasured) {
// Have to measure here when usual android measure
// pass is skipped. This happens during a drag-sort
// when layoutChildren is called directly.
measureFloatView();
}
mFloatView.layout(0, 0, mFloatView.getMeasuredWidth(), mFloatView.getMeasuredHeight());
mFloatViewOnMeasured = false;
}
}
代码示例来源:origin: yukuku/androidbible
@Override
protected void layoutChildren() {
super.layoutChildren();
if (mFloatView != null) {
if (mFloatView.isLayoutRequested() && !mFloatViewOnMeasured) {
// Have to measure here when usual android measure
// pass is skipped. This happens during a drag-sort
// when layoutChildren is called directly.
measureFloatView();
}
mFloatView.layout(0, 0, mFloatView.getMeasuredWidth(), mFloatView.getMeasuredHeight());
mFloatViewOnMeasured = false;
}
}
代码示例来源:origin: namndbka/QDict
@Override
protected void layoutChildren() {
super.layoutChildren();
if (mFloatView != null) {
if (mFloatView.isLayoutRequested() && !mFloatViewOnMeasured) {
// Have to measure here when usual android measure
// pass is skipped. This happens during a drag-sort
// when layoutChildren is called directly.
measureFloatView();
}
mFloatView.layout(0, 0, mFloatView.getMeasuredWidth(), mFloatView.getMeasuredHeight());
mFloatViewOnMeasured = false;
}
}
代码示例来源:origin: adolfAn/FBReader_AS
@Override
protected void layoutChildren() {
super.layoutChildren();
if (mFloatView != null) {
if (mFloatView.isLayoutRequested() && !mFloatViewOnMeasured) {
// Have to measure here when usual android measure
// pass is skipped. This happens during a drag-sort
// when layoutChildren is called directly.
measureFloatView();
}
mFloatView.layout(0, 0, mFloatView.getMeasuredWidth(), mFloatView.getMeasuredHeight());
mFloatViewOnMeasured = false;
}
}
代码示例来源:origin: yomguy/servestream
@Override
protected void layoutChildren() {
super.layoutChildren();
if (mFloatView != null) {
if (mFloatView.isLayoutRequested() && !mFloatViewOnMeasured) {
// Have to measure here when usual android measure
// pass is skipped. This happens during a drag-sort
// when layoutChildren is called directly.
measureFloatView();
}
mFloatView.layout(0, 0, mFloatView.getMeasuredWidth(), mFloatView.getMeasuredHeight());
mFloatViewOnMeasured = false;
}
}
代码示例来源:origin: mohamad-amin/PersianMaterialDateTimePicker
@Override
protected void layoutChildren() {
final MonthAdapter.CalendarDay focusedDay = findAccessibilityFocus();
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
} else {
restoreAccessibilityFocus(focusedDay);
}
}
代码示例来源:origin: alhazmy13/HijriDatePicker
@Override
protected void layoutChildren() {
final MonthAdapter.CalendarDay focusedDay = findAccessibilityFocus();
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
} else {
restoreAccessibilityFocus(focusedDay);
}
}
代码示例来源:origin: alhazmy13/HijriDatePicker
@Override
protected void layoutChildren() {
final MonthAdapter.CalendarDay focusedDay = findAccessibilityFocus();
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
} else {
restoreAccessibilityFocus(focusedDay);
}
}
代码示例来源:origin: bkhezry/PersianDateRangePicker
@Override
protected void layoutChildren() {
final MonthAdapter.CalendarDay focusedDay = findAccessibilityFocus();
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
} else {
restoreAccessibilityFocus(focusedDay);
}
}
代码示例来源:origin: CiTuX/datetimepicker
@Override
protected void layoutChildren() {
final CalendarDay focusedDay = findAccessibilityFocus();
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
} else {
restoreAccessibilityFocus(focusedDay);
}
}
代码示例来源:origin: mohamad-amin/PersianMaterialDateTimePicker
@Override
protected void layoutChildren() {
final MonthAdapter.CalendarDay focusedDay = findAccessibilityFocus();
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
} else {
restoreAccessibilityFocus(focusedDay);
}
}
代码示例来源:origin: henrichg/PhoneProfilesPlus
@Override
protected void layoutChildren() {
final CalendarDay focusedDay = findAccessibilityFocus();
super.layoutChildren();
if (mPerformingScroll) {
mPerformingScroll = false;
} else {
restoreAccessibilityFocus(focusedDay);
}
}
代码示例来源:origin: derry/delion
@Override
protected void layoutChildren() {
super.layoutChildren();
// In ICS, the selected view is not marked as selected despite calling setSelection(0),
// so we bootstrap this after the children have been laid out.
if (!isInTouchMode() && getSelectedView() != null) {
getSelectedView().setSelected(true);
}
}
内容来源于网络,如有侵权,请联系作者删除!