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

TimeDialogActivity

public class TimeDialogActivity 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("Show dialog");
        b.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                new TimePickerDialog(TimeDialogActivity.this, null, 12, 12, true).show();
            }
        });
        layout.addView(b);
        
        setContentView(layout);