没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Mobile Tutorials
RAD Studio 10.1 Berlin
Embarcadero Technologies 2
© 2016 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™, Embarcadero® RAD Studio, DBArtisan®,
Delphi®, ER/Studio®, JBuilder®, and Rapid SQL®. Founded in 1993, Embarcadero
is headquartered in Austin, with offices located around the world. Embarcadero
is online at www.embarcadero.com.
April, 2016
Embarcadero Technologies 3
CONTENTS
Mobile Tutorials: Mobile Application Development (iOS and Android) ................. 12
Setup ................................................................................................................................. 12
Using Basic User Interface Elements ............................................................................. 13
Using Device Functionality ............................................................................................ 15
Using Backend as a Service .......................................................................................... 16
Accessing a Database .................................................................................................. 17
See Also ......................................................................................................................... 17
Mobile Tutorial: Set Up Your Development Environment on the Mac (iOS) .......... 18
Requirements on the Mac and iOS .......................................................................... 18
Steps to Configure Your Mac to Run Your iOS Application .................................. 19
Step 1: Install the Platform Assistant ...................................................................... 19
Step 2: Run the Platform Assistant ......................................................................... 20
Step 3: Install Xcode on the Mac .......................................................................... 21
Next Steps ................................................................................................................. 22
Additional Steps to Configure Your Mac to Run Your iOS Application on Your iOS
Device............................................................................................................................... 22
Step 1: Make Sure that the Xcode Command Line Tools Are Installed on Your
Mac ............................................................................................................................... 23
Step 2: Sign Up for a Developer Account ............................................................... 24
Step 3: Request, Download and Install Your Development Certificate ............. 24
Request, Download and Install Your Certificate ................................................ 25
Step 4: Register Your Device for Deployment ......................................................... 26
Step 5: Create and Install a Provisioning Profile ..................................................... 27
See Also ......................................................................................................................... 28
Mobile Tutorial: Set Up Your Development Environment on Windows PC (iOS) ... 29
Setting Up Your RAD Studio Environment ................................................................ 30
Create a Connection Profile for the Mac ........................................................... 30
Add an SDK to the Development System for the iOS Device Connected to
the Mac ..................................................................................................................... 33
See Also ......................................................................................................................... 35
Mobile Tutorial: Set Up Your Development Environment on Windows PC
(Android) .......................................................................................................................... 36
See Also ......................................................................................................................... 36
Mobile Tutorial: Creating an Application for Mobile Platforms (iOS and Android)
........................................................................................................................................... 37
Before You Start ........................................................................................................... 37
Step 1: Create a New FireMonkey Application for Android or iOS ..................... 38
Step 2: Select a Style ................................................................................................... 39
Step 3: Place Components on the Multi-Device Form .......................................... 39
Step 4: Adding Views to Your Project....................................................................... 43
Step 5: Write an Event Handler for a Button Click by the User ............................. 43
Embarcadero Technologies 4
Step 6: Test Your Mobile Application ........................................................................ 44
Test Your Android Application on the Android Device ..................................... 45
Test Your iOS Application ....................................................................................... 46
See Also ......................................................................................................................... 48
Mobile Tutorial: Using an Address Book Component (iOS and Android) ............... 49
Basic Features of the TAddressBook Component .................................................. 50
Creating a Sample Application ................................................................................ 50
Designing the User Interface .................................................................................. 50
Retrieving the Contacts List ................................................................................... 54
Implementing the Control Elements Functionality ............................................. 56
Keeping Address Book in Sync .............................................................................. 60
Configuring Access to Address Book ................................................................... 61
Running the Sample Application .............................................................................. 63
See Also ......................................................................................................................... 66
Code Samples.......................................................................................................... 66
Mobile Tutorial: Using a Button Component with Different Styles (iOS and
Android) ............................................................................................................................ 67
Buttons in Mobile Platforms ........................................................................................ 67
Define the Look and Feel for a Button Component .............................................. 69
Using TintColor and IconTintColor on Buttons ..................................................... 71
Using Styled and Colored Buttons on Target Platforms ..................................... 72
Customizing Buttons with Styles ............................................................................. 72
Placing an Image over a Button ........................................................................... 73
Create a Segmented Control Using Button Components ................................... 74
Create a Scope Bar on a Toolbar Component ..................................................... 76
Important Differences Between a TButton and TSpeedButton ............................ 77
See Also ......................................................................................................................... 77
Using Styled and Colored Buttons on Target Platforms ............................................. 79
See Also ......................................................................................................................... 82
Mobile Tutorial: Using a Calendar Component to Pick a Date (iOS and Android)
........................................................................................................................................... 83
Calendar in Mobile Platforms .................................................................................... 83
Implementing an Event Handler for User Changes to the Date .......................... 85
See Also ......................................................................................................................... 87
Samples ..................................................................................................................... 87
Mobile Tutorial: Using Combo Box Components to Pick Items from a List (iOS and
Android) ............................................................................................................................ 88
Implementing a Picker in Multi-Device Applications ............................................. 88
Building a List of Items Using Code ........................................................................... 91
Displaying a Specific Item .......................................................................................... 91
Implementing an Event Handler for the User's Selection ...................................... 93
See Also ......................................................................................................................... 95
Samples ..................................................................................................................... 95
Embarcadero Technologies 5
Mobile Tutorial: Using a Map Component to Work with Maps (iOS and Android)
........................................................................................................................................... 96
Basic Features of the TMapView Component ........................................................ 97
Creating a Sample Application ................................................................................ 97
Configuring Android Applications to Use the TMapView component ........... 97
Designing the User Interface .................................................................................. 97
Running the Sample Application ............................................................................ 102
See Also ....................................................................................................................... 104
Code Samples........................................................................................................ 104
Configuring Android Applications to Use Google Maps ........................................ 105
Getting the Google Maps API key ......................................................................... 105
Retrieving Your Application Certificate ............................................................. 105
Creating an API Project in the Google APIs Console ...................................... 107
Requesting a Maps API Key ................................................................................. 107
Configuring Specific Project Options ..................................................................... 108
See Also ....................................................................................................................... 110
Code Samples........................................................................................................ 110
Mobile Tutorial: Using a MultiView Component to Display Alternate Views of
Information (iOS and Android).................................................................................... 111
About the TMultiView Component ......................................................................... 111
Master Pane Presentation Modes ....................................................................... 113
Designing the User Interface ................................................................................... 120
Designing the Master Pane .................................................................................. 120
Designing the Detail Pane.................................................................................... 121
Implementing the Camera Buttons Functionality ............................................ 121
Setting the TMultiView Component Properties ................................................. 126
Running the Example Application .......................................................................... 126
Mobile Product Samples that Use TMultiView ....................................................... 127
See Also ....................................................................................................................... 127
Mobile Tutorial: Using the Web Browser Component (iOS and Android) ............ 128
Design the User Interface ......................................................................................... 129
Write an Event Handler to Open a Web Page when the User Changes the URL
in the Edit Control ...................................................................................................... 132
Implement a Common Method to Open a Web Page .................................. 133
Implement an Event Handler for the OnChange Event ................................. 134
Implement an Event Handler for the Back Button ........................................... 135
Selecting the Proper Virtual Keyboard for the Web Browser Application ....... 136
WebBrowser Mobile Code Snippet ........................................................................ 138
See Also ....................................................................................................................... 138
Mobile Tutorial: Using Tab Components to Display Pages (iOS and Android) .... 139
Using the Native Style for Tabs on iOS and Android ........................................ 139
Designing Tab Pages Using the Form Designer .................................................... 140
Comparing the Tab Settings on iOS and Android ............................................ 146
Using Custom Multi-Resolution Icons for Your Tabs .............................................. 151
剩余414页未读,继续阅读
资源评论
- lanlong20132017-11-09大体看了一下,内容和XE6的差不多,但是还是谢谢分享。
- lzwjb2017-12-12还可以,就是费了我的一半积分,我没有分了
- kldevo2018-04-07用处不是很大。没有太大意义
- cdzhaoye2018-08-09理论化的资料,还是谢谢分享
leechung
- 粉丝: 1
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功