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

Rotate3dTextActivity

public class Rotate3dTextActivity extends android.app.Activity

Fields Summary
Constructors Summary
Methods Summary
private static LinearLayout.LayoutParamsmakeLayoutParams()

        LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(
                LinearLayout.LayoutParams.MATCH_PARENT, 0);
        lp.weight = 1.0f;
        return lp;
    
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);

        final LinearLayout layout = new LinearLayout(this);
        layout.setOrientation(LinearLayout.VERTICAL);

        Rotate3dTextView view = new Rotate3dTextView(this);
        layout.addView(view, makeLayoutParams());

        view = new Rotate3dTextView(this);

        FrameLayout container = new FrameLayout(this);
        container.setLayerType(View.LAYER_TYPE_HARDWARE, null);
        container.addView(view);

        layout.addView(container, makeLayoutParams());

        setContentView(layout);