LoginSignup
24
25

More than 5 years have passed since last update.

androidを開発しててたまにつかうTips的なの

Last updated at Posted at 2014-02-12

Dialogで背景が暗くなるの無効化

dialog.getWindow().setFlags( 0 , WindowManager.LayoutParams.FLAG_DIM_BEHIND);

Option(Menu)ボタンを下に表示する.

本来は2系(ActionBarのない)のSDKでビルドしたものを4系で起動すると表示されるレイアウト(非推奨)

Qiita

window.addFlags(WindowManager.LayoutParams.class.getField("FLAG_NEEDS_MENU_KEY").getInt(null));

ActionBarの下の影を消す

style.xmlに以下の表記を追加

<item name="android:windowContentOverlay">@null</item>

24
25
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
24
25