Back to project page droidkit-engines.
The source code is released under:
MIT License
If you think the Android project droidkit-engines listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.droidkit.sample.view; /* w w w . j a v a 2s. c o m*/ import android.content.Context; import android.util.AttributeSet; import android.widget.ListView; public class BlockingListView extends ListView { private boolean mBlockLayoutChildren; public BlockingListView(Context context) { super(context); } public BlockingListView(Context context, AttributeSet attrs) { super(context, attrs); } public BlockingListView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); } public void setBlockLayoutChildren(boolean block) { mBlockLayoutChildren = block; } @Override protected void layoutChildren() { if (!mBlockLayoutChildren) { try { super.layoutChildren(); } catch (Exception e) { e.printStackTrace(); } } } }