android - AlertDialog contextual actionbar bug on Support Library 22.2? -


i think found bug in material alertdialog of support library 22.2, want check first community. context actionbar copy/cut text not work fine "android.support.v7.app.alertdialog".

the result with android.support.v7.app.alertdialog (the actionbar copy/cut text not on top , not possible click on buttons):

enter image description here

if change import use "android.app.alertdialog" actionbar looks fine on top:

enter image description here

the code:

styles.xml:

 <style name="apptheme" parent="theme.appcompat.light.darkactionbar">     <item name="windowactionmodeoverlay">true</item>     <item name="android:windowactionmodeoverlay">true</item> </style> 

code fragment opens dialog:

public static class mydialogfragment extends dialogfragment {     @override     public dialog oncreatedialog(bundle savedinstancestate) {         alertdialog.builder builder = new          alertdialog.builder(getactivity());         layoutinflater inflater = getactivity().getlayoutinflater();         builder.setview(inflater.inflate(r.layout.my_dialog, null))                 .setpositivebutton(android.r.string.ok, new dialoginterface.onclicklistener() {                     public void onclick(dialoginterface dialog, int id) {                     }                 })                 .setnegativebutton(android.r.string.cancel, new dialoginterface.onclicklistener() {                     public void onclick(dialoginterface dialog, int id) {                     }                 });         return builder.create();     } } 

my_dialog.xml:

 <linearlayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent">    <edittext       android:hint="text here"       android:layout_width="match_parent"       android:layout_height="match_parent" />   </linearlayout> 

so, bug of "android.support.v7.app.alertdialog" right?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -