:
This dialog box is fully inherited and modeled like alertdialog, but only achieves custom effects.
In addition, seticon is not implemented because most of the dialogs on the iPhone do not have icons.
The attachment contains examples, Jar packages, and jar package source code.
Usage:
1. Like the previous page flip control, set build path first, introduce the jar package, and thenCodeAdd in
Import CN. fiker. Lib. iphonedialog .*;
2. Copy the following resources to the project.
Images in the drawable directory;
Three items in style. xml and strings. xml under values (yes, no, and canceled)
Dialog_iphone.xml in Layout
3. Use this dialog box just like using normal alertdialog.
Iphonedialogbuilder IB = new iphonedialogbuilder (this); Ib. settitle ("dialog box example"); Ib. setmessage ("this is a dialog box with only one button. "); IB. setpositivebutton (R. string. yes, new dialoginterface. onclicklistener () {@ override public void onclick (dialoginterface dialog, int which) {toast. maketext (main. this, "you have selected" yes ", toast. length_short ). show (); dialog. dismiss () ;}}); IB. show ();
Source code download: http://files.cnblogs.com/feifei1010/iPhoneDialog.rar
Welcome to Weibo http://e.weibo.com/u/2975543812
Invite everyone to participate in the blog rewards activity ~ See http://www.apkbus.com/android-64183-1-1.html
Reference: http://www.apkbus.com/android-17062-1-1.html