Friday, September 27, 2013

Android-Activity Style and Themes

Android-Activity Style and Themes

Applying Styles and themes to Activity

By default, an activity occupies the entire screen. However, you can also apply a dialog theme to an activity so that it is displayed as a floating dialog. For example, you might want to customize your activity  to display as a pop-up, warning the user about some actions that they are going to perform. In this case, displaying the activity as a dialog is a good way to get their attention.
To apply a dialog theme to an activity, simply modify the element in the AndroidManifest.xml file by adding the android:theme attribute:

Android-Activity Style and Themes

package=”net.learn2develop.Activities”
android:versionCode=”1”
android:versionName=”1.0”>
android:name=”android.intent.category.LAUNCHER” />

Android-Activity Style and Themes

Doing so will make the activity appear as a dialog, as shown in Figure

Upload UIImage as base64 String

Upload UIImage as Base64 String (Upload UIImage as string) //Select Pic From Camera or Gallery       @objc func btnPro...