Methods Summary |
---|
public void | disableClip(android.view.View v)
((ClipFrameLayout) findViewById(R.id.container)).setClipEnabled(false);
|
public void | disableLayer(android.view.View v)
findViewById(R.id.container).setLayerType(View.LAYER_TYPE_NONE, null);
|
public void | enableClip(android.view.View v)
((ClipFrameLayout) findViewById(R.id.container)).setClipEnabled(true);
|
public void | enableLayer(android.view.View v)
findViewById(R.id.container).setLayerType(View.LAYER_TYPE_HARDWARE, mPaint);
|
public void | growLayer(android.view.View v)
findViewById(R.id.container).getLayoutParams().height = ViewGroup.LayoutParams.MATCH_PARENT;
findViewById(R.id.container).requestLayout();
|
private void | init()
mPaint.setColorFilter(new PorterDuffColorFilter(0xff00ff00, PorterDuff.Mode.MULTIPLY));
|
protected void | onCreate(android.os.Bundle savedInstanceState)
super.onCreate(savedInstanceState);
init();
setContentView(R.layout.view_layers_5);
setupList(R.id.list1);
|
private void | setupList(int listId)
final ListView list = (ListView) findViewById(listId);
list.setAdapter(new SimpleListAdapter(this));
|
public void | shrinkLayer(android.view.View v)
findViewById(R.id.container).getLayoutParams().height = 300;
findViewById(R.id.container).requestLayout();
|