没有合适的资源?快使用搜索试试~ 我知道了~
首页使用delphi FireMonkey 开发移动客户端
使用delphi FireMonkey 开发移动客户端

使用delphi FireMonkey 开发移动客户端XE7版本,支持苹果和安卓 Mobile Tutorials: Mobile Application Development (iOS and Android)
资源详情
资源评论
资源推荐

Product Documentation
RAD Studio
Mobile Tutorials
Version XE7

Embarcadero Technologies 2
© 2014 Embarcadero Technologies, Inc. Embarcadero, the Embarcadero Technologies
logos, and all other Embarcadero Technologies product or service names are
trademarks or registered trademarks of Embarcadero Technologies, Inc. All other
trademarks are property of their respective owners.
Embarcadero Technologies, Inc. is a leading provider of award-winning tools for
application developers and database professionals so they can design systems right,
build them faster and run them better, regardless of their platform or programming
language. Ninety of the Fortune 100 and an active community of more than three
million users worldwide rely on Embarcadero products to increase productivity, reduce
costs, simplify change management and compliance and accelerate innovation. The
company's flagship tools include: Embarcadero® Change Manager™, CodeGear™
RAD Studio, DBArtisan®, Delphi®, ER/Studio®, JBuilder® and Rapid SQL®. Founded in
1993, Embarcadero is headquartered in San Francisco, with offices located around the
world. Embarcadero is online at www.embarcadero.com.
September, 2014

Embarcadero Technologies 3
CONTENTS
Mobile Tutorials: Mobile Application Development (iOS and Android) ................. 11
Setup ................................................................................................................................. 12
Using Basic User Interface Elements ............................................................................. 12
Using Device Functionality ............................................................................................ 14
Accessing a Database .................................................................................................. 15
See Also ......................................................................................................................... 15
Mobile Tutorial: Set Up Your Development Environment on the Mac (iOS) .......... 17
Requirements on the Mac and iOS .......................................................................... 17
Steps to Configure Your Mac to Run Your iOS Application .................................. 18
Step 1: Install the Platform Assistant ...................................................................... 18
Step 2: Run the Platform Assistant ......................................................................... 19
Step 3: Install Xcode on the Mac .......................................................................... 21
Next Steps ................................................................................................................. 21
Additional Steps to Configure Your Mac to Run Your iOS Application on Your iOS
Device............................................................................................................................... 22
Step 1: Install the Xcode Command Line Tools on a Mac.................................... 22
Step 2: Sign Up for a Developer Account ............................................................... 23
Step 3: Request, Download and Install Your Development Certificate ............. 23
Request, Download and Install Your Certificate ................................................ 24
Step 4: Register Your Device for Deployment ......................................................... 25
Step 5: Create and Install a Provisioning Profile ..................................................... 25
See Also ......................................................................................................................... 26
Mobile Tutorial: Set Up Your Development Environment on Windows PC (iOS) ... 28
Setting Up Your RAD Studio Environment ................................................................ 28
Create a Connection Profile for the Mac ........................................................... 28
Add an SDK to the Development System for the iOS Device Connected to
the Mac ..................................................................................................................... 31
See Also ......................................................................................................................... 33
Mobile Tutorial: Set Up Your Development Environment on Windows PC
(Android) .......................................................................................................................... 34
Setting Up Your RAD Studio Environment ................................................................ 34
Android Development Tools Are Installed with RAD Studio .............................. 35
Adding Your Android SDK in Tools Options > SDK Manager ............................. 36
Installing the USB Driver for Your Android Device (Required) ............................... 40
Creating an Android Emulator (Optional) .............................................................. 41
See Also ......................................................................................................................... 41
Mobile Tutorial: Creating an Application for Mobile Platforms (iOS and Android)
........................................................................................................................................... 43
Before You Start ........................................................................................................... 43
Step 1: Create a New FireMonkey Application for Android or iOS ..................... 43
Step 2: Select a Style ................................................................................................... 45

Embarcadero Technologies 4
Step 3: Place Components on the Multi-Device Form .......................................... 45
Step 4: Adding Views to Your Project....................................................................... 48
Step 5: Write an Event Handler for a Button Click by the User ............................. 48
Step 6: Test Your Mobile Application ........................................................................ 50
Test Your Android Application ............................................................................... 50
Test Your iOS Application ....................................................................................... 51
See Also ......................................................................................................................... 53
Mobile Tutorial: Using a Button Component with Different Styles (iOS and
Android) ............................................................................................................................ 54
Buttons in Mobile Platforms ........................................................................................ 54
Define the Look and Feel for a Button Component .............................................. 55
Using TintColor on Buttons ...................................................................................... 56
Create a Segmented Control Using Button Components ................................... 57
Create a Scope Bar on a Toolbar Component ..................................................... 59
See Also ......................................................................................................................... 60
Mobile Tutorial: Using a Calendar Component to Pick a Date (iOS and Android)
........................................................................................................................................... 61
Calendar in Mobile Platforms .................................................................................... 61
Implementing an Event Handler for User Changes to the Date .......................... 63
See Also ......................................................................................................................... 64
Mobile Tutorial: Using Combo Box Components to Pick Items from a List (iOS and
Android) ............................................................................................................................ 65
Implementing a Picker in Multi-Device Applications ............................................. 65
Building a List of Items Using Code ........................................................................... 67
Displaying a Specific Item .......................................................................................... 68
Implementing an Event Handler for the User's Selection ...................................... 69
See Also ......................................................................................................................... 71
Mobile Tutorial: Using a MultiView Component to Display Alternate Views of
Information (iOS and Android)...................................................................................... 72
About the TMultiView Component ........................................................................... 72
Master Pane Presentation Modes ......................................................................... 73
Designing the User Interface ..................................................................................... 77
Designing the Master Pane .................................................................................... 77
Designing the Details Pane .................................................................................... 78
Setting the TMultiView Component Properties ................................................... 78
Final Steps ................................................................................................................. 79
Running the Example Application ............................................................................ 81
Mobile Product Samples that Use TMultiView ......................................................... 82
See Also ......................................................................................................................... 83
Mobile Tutorial: Using the Web Browser Component (iOS and Android) .............. 84
Using the Web Browser Component in Mobile Platforms ..................................... 84
Design the User Interface ........................................................................................... 85
Write an Event Handler to Open a Web Page when the User Changes the URL
in the Edit Control ........................................................................................................ 87

Embarcadero Technologies 5
Implement a Common Method to Open a Web Page .................................... 87
Implement an Event Handler for the OnChange Event ................................... 88
Implement an Event Handler for the Back Button ............................................. 89
Selecting the Proper Virtual Keyboard for the Web Browser Application ......... 90
WebBrowser Mobile Code Snippet .......................................................................... 91
See Also ......................................................................................................................... 92
Mobile Tutorial: Using Tab Components to Display Pages (iOS and Android) ...... 93
Tabs in Mobile Platforms ............................................................................................. 93
Using the Native Style for Tabs on iOS and Android .......................................... 93
Designing Tab Pages Using the Form Designer ...................................................... 94
Comparing the Tab Settings on iOS and Android .............................................. 99
Aligning the TabControl to the Top of the Android Form ................................ 102
Using Custom Multi-Resolution Icons for Your Tabs .............................................. 103
Displaying Multi-Resolution Custom Icons on Tabs ........................................... 104
Using a Single-Resolution Bitmap for a Custom Icon ....................................... 107
Defining Controls within a TabControl ................................................................... 108
Changing the Page at Run Time ............................................................................ 110
By the User Tapping the Tab ................................................................................ 110
By Actions and an ActionList ............................................................................... 110
By Source Code ..................................................................................................... 115
See Also ....................................................................................................................... 116
Mobile Tutorial: Using LiveBindings to Populate a ListView (iOS and Android) ... 117
Step 1: Creating the Project .................................................................................... 117
Step 2: Adding Fields ................................................................................................ 119
Step 3: Creating LiveBindings .................................................................................. 120
Step 4: Adding More Fields ...................................................................................... 123
Step 5: Adding the onButtonClick Event Handler ................................................ 124
The Results ................................................................................................................... 125
See Also ....................................................................................................................... 127
Mobile Tutorial: Using ListBox Components to Display a Table View (iOS and
Android) .......................................................................................................................... 128
Using ListBox Components to Display a Table View in Mobile Platforms .......... 128
Plain List ................................................................................................................... 129
Grouped List ........................................................................................................... 130
Search Box .............................................................................................................. 130
Create Items on the ListBox Component .............................................................. 132
Add a Header ........................................................................................................ 134
Add a Group Header/Footer to the List ............................................................. 135
Show List Items as Separate Grouped Items ..................................................... 137
Add a Check Box or Other Accessory to a ListBox Item ................................. 137
Add an Icon to a ListBox Item .............................................................................. 138
Add Detail Information to an Item ...................................................................... 138
Running Your Application .................................................................................... 139
Create Your ListBox Application ............................................................................. 139
剩余320页未读,继续阅读










安全验证
文档复制为VIP权益,开通VIP直接复制

评论1