Android設定activity不完全画面
AndroidManifestでxmlで
android:theme="@android:style/Theme.Dialog"
トピックがダイアログに表示されます.
MainActivityに次のコードを追加します.
android:theme="@android:style/Theme.Dialog"
トピックがダイアログに表示されます.
MainActivityに次のコードを追加します.
//
requestWindowFeature(Window.FEATURE_NO_TITLE);
// activity
Drawable drawable = getResources().getDrawable(
android.R.color.transparent);
this.getWindow().setBackgroundDrawable(drawable);