Set Button background

Monday, 05 August 2013 by

A button consists of text or an icon (or both text and an icon) that communicates what action occurs when the user touches it.To customize individual buttons with a different background, specify the android:background attribute with a drawable or color resource. This code is for setting background image of a button and set background color

An image view object provides a view-based container for displaying either a single image or for animating a series of images. To create UIImageView programmatically for iPhone or iPad write the following code-      

Change button text dynamically

Monday, 05 August 2013 by

A button consists of text or an icon (or both text and an icon) that communicates what action occurs when the user touches it.Depending on whether you want a button with text, an icon, or both, you can create the button in your layout in different ways. Here is a code to change the text

A UITextField object is a control that displays editable text and sends an action message to a target object when the user presses the return button. You typically use this class to gather small amounts of text from the user and perform some immediate action, such as a search operation, based on that text. To create a

The UIScrollView class provides support for displaying content that is larger than the size of the application’s window. It enables users to scroll within that content by making swiping gestures, and to zoom in and back from portions of the content by making pinching gestures. To create a simple UIScrollView and add it to a view, write

Create Simple UILabel Programmatically

Monday, 05 August 2013 by

UILabel class implements a read-only text view. Here we are showing that how to a simple create an uilabel programmatically.        

How to create a button dynamically?

Monday, 05 August 2013 by

A button consists of text or an icon (or both text and an icon) that communicates what action occurs when the user touches it.Depending on whether you want a button with text, an icon, or both, you can create the button in your layout in different ways ways. The code represents how to create any

Horizontal ScrollView

Monday, 05 August 2013 by

HorizontalScrollView is a Layout container for a view hierarchy that can be scrolled by the user, allowing it to be larger than the physical display. A HorizontalScrollView is a FrameLayout, meaning you should place one child in it containing the entire contents to scroll; this child may itself be a layout manager with a complex

An instance of the UIButton class implements a button on the touch screen. A button intercepts touch events and sends an action message to a target object when tapped. Here we are showing how to create a UIButton and how to add action on click of that UIButton. To create a simple UIButton and add it to a

Create Simple UIView Programmatically

Monday, 05 August 2013 by

UIView defines a rectangular area on the screen and the interfaces for managing the content in that area. Here we are showing that how to create a simple uiview programatically and adding a background color to the view.        

TOP