FileDocCategorySizeDatePackage
ViewLayersActivity2.javaAPI DocAndroid 5.1 API6236Thu Mar 12 22:22:44 GMT 2015com.android.test.hwui

ViewLayersActivity2

public class ViewLayersActivity2 extends android.app.Activity

Fields Summary
private static final String[]
DATA_LIST
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.view_layers);

        setupList(R.id.list1);
        setupList(R.id.list2);
        setupList(R.id.list3);
        
        findViewById(R.id.list1).setAlpha(0.7f);
    
private voidsetupList(int listId)

        final ListView list = (ListView) findViewById(listId);
        list.setAdapter(new SimpleListAdapter(this));
        list.setLayerType(View.LAYER_TYPE_HARDWARE, null);