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

NinePatchesActivity

public class NinePatchesActivity extends android.app.Activity

Fields Summary
Constructors Summary
Methods Summary
protected voidonCreate(android.os.Bundle savedInstanceState)

        super.onCreate(savedInstanceState);
        
        FrameLayout layout = new FrameLayout(this);
        Button b = new Button(this);
        b.setLayoutParams(new FrameLayout.LayoutParams(FrameLayout.LayoutParams.WRAP_CONTENT,
                FrameLayout.LayoutParams.WRAP_CONTENT, Gravity.CENTER));
        b.setText("9 patches");
        layout.addView(b);
        layout.setBackgroundColor(0xffffffff);
        
        setContentView(layout);