2020年3月11日水曜日

dialogCornerRadius でダイアログの角丸具合を指定する

Android Pie(API Level 28)から ?android:attr/dialogCornerRadius でダイアログの角丸具合を指定できるようになりましたが、AppCompat や MaterialComponents では ?attr/dialogCornerRadius としてバックポートされています。 <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> <item name="dialogCornerRadius">12dp</item> </style> (<item name="android:dialogCornerRadius">12dp</item> だと Android Pie(API Level 28)以降だけ角丸になります。)



<item name="dialogCornerRadius">12dp</item>

API Level 21



API Level 27



API Level 28





<item name="android:dialogCornerRadius">12dp</item>

API Level 21



API Level 27



API Level 28





1 件のコメント:

  1. Okay then...

    What I'm going to tell you may sound really creepy, and maybe even kind of "supernatural"

    HOW would you like it if you could simply hit "Play" to listen to a short, "musical tone"...

    And magically bring MORE MONEY to your life???

    And I'm talking about hundreds... even thousands of dollars!!

    Sounds way too EASY??? Think it couldn't possibly be REAL?!?

    Well then, I've got news for you.

    Many times the greatest miracles life has to offer are also the EASIEST!!

    Honestly, I will PROVE it to you by letting you PLAY a REAL "miracle money-magnet tone" I developed...

    (And COMPLETELY RISK FREE).

    YOU simply click "Play" and the money will start coming into your life.. starting so fast, you will be surprised..

    CLICK here now to PLAY the wonderful "Miracle Money TONE" as my gift to you!!

    返信削除