Add some padding to keep the dialog borders away
package app.test;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
public class Test extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setTitle("Activity");
TextView tv = new TextView(this);
tv.setText("I'm Really An Activity!");
tv.setPadding(15, 15, 15, 15);
setContentView(tv);
}
}
Related examples in the same category