Two types of dialog boxes that are similar to iOS 7 and iOS 7

Source: Internet
Author: User

Two types of dialog boxes that are similar to iOS 7 and iOS 7
I have been using the iphone, so I like the various ios controls, I have done ios7 Slide button http://www.eoeandroid.com/thread-331542-1-1.html

Next, let's look at the two dialog boxes of ios7. QQ is the same as ios7. At the bottom of the menu list and AlertDialog, the effect is as follows:


1. AlertDialog. The usage is similar to that of android.

  1. New AlertDialog (MainActivity. this). builder ()
  2. . SetTitle ("title ")
  3. . SetMsg ("text content ")
  4. . SetCancelable (false)
  5. . SetPositiveButton ("OK", new OnClickListener (){
  6. @ Override
  7. Public void onClick (View v ){
  8. //
  9. }
  10. }). SetNegativeButton ("cancel", new OnClickListener (){
  11. @ Override
  12. Public void onClick (View v ){
  13. //
  14. }
  15. })
  16. . Show ();
Copy code

2. ActionSheetDialog, which is similar to AlertDialog
  1. New ActionSheetDialog (MainActivity. this). builder ()
  2. . SetTitle ("title ")
  3. . SetCancelable (false)
  4. . SetCanceledOnTouchOutside (false)
  5. . AddSheetItem ("entry name 1", SheetItemColor. Red,
  6. New OnSheetItemClickListener (){
  7. @ Override
  8. Public void onClick (int which ){
  9. }
  10. })
  11. . AddSheetItem ("entry name 2", SheetItemColor. Red,
  12. New OnSheetItemClickListener (){
  13. @ Override
  14. Public void onClick (int which ){
  15. }
  16. })
  17. // You can add multiple SheetItem instances.
  18. . Show ();
Copy code

Code download: http://download.csdn.net/detail/xiechengfa/8067275


How can I change the interface for receiving calls on iOS 7?

It seems that this cannot be changed at present, because such solutions are not found after jailbreak.
 
How to restore ios7

1. first, the first step is to download the firmware package, open the "iOS7 firmware package" on Apple's official website or other assistants, and then select the iOS7.0.X firmware package corresponding to your device, download it to your local device.
2. What you need to do is to restore your iPhone, iPad, or other iOS 7 devices to the IOS 7.0.x version that is not jailbroken. Connect the device to the USB interface of the computer using a data cable.
3. If your mobile phone is changed to a white apple, you need to enter the DFU mode to install and restore the iOS7.0.4 system. The method is as follows:
1. Press the Home Key and power key simultaneously until the apple Logo is displayed;
2. However, you still need to press and hold the Home key. When the interface connecting to iTunes appears, release the Home Key.
4. Start iTunes on your computer, press and hold the shift key on your computer (the Option key on the Apple Computer), and click "Restore" on the iTunes page ,.
5. In the pop-up dialog box, select the downloaded iOS7.0.4 firmware and perform the following recovery operations. After the restoration, your system becomes a pure version of iOS7.0.X without jailbreak.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.