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

ViewLayersActivity4

public class ViewLayersActivity4 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_4);

        setupList(R.id.list1);
    
public voidsetListOpaque(android.view.View v)

        findViewById(R.id.list1).setAlpha(1.0f);
    
public voidsetListTranslucent(android.view.View v)

        findViewById(R.id.list1).setAlpha(0.5f);
    
private voidsetupList(int listId)

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