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):
if change import use "android.app.alertdialog" actionbar looks fine on top:
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
Post a Comment