FileDocCategorySizeDatePackage
TransformTestActivity.javaAPI DocAndroid 5.1 API6625Thu Mar 12 22:22:44 GMT 2015com.google.android.test.transform

TransformTestActivity

public class TransformTestActivity extends android.app.Activity

Fields Summary
Constructors Summary
public TransformTestActivity()

        super();
        init(false);
    
public TransformTestActivity(boolean noCompat)

        super();
        init(noCompat);
    
Methods Summary
public voidinit(boolean noCompat)


    
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        
        this.setTitle(R.string.act_title);
        LinearLayout root = new LinearLayout(this);
        root.setOrientation(LinearLayout.VERTICAL);

        TransformView view = new TransformView(getApplicationContext());
        Drawable drawable = getResources().getDrawable(R.drawable.logo);
        drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicWidth());
        view.setDrawable(drawable);

        root.addView(view);
        setContentView(root);