unit-ii_views and layout.pdf

Please download to get full document.

View again

All materials on our website are shared by users. If you have any questions about copyright issues, please report us to resolve them. We are always happy to assist you.
Share
Transcript
  UNIT-IIAndroid User InterfaceView & View Groups Dr.Pritee Parwekar   Views ã Activity is a means by which users interact with the application. ã However, an activity by itself does not have a  presence on the screen. ã Instead, it has to draw the screen using Views and ViewGroups ã An activity displays the user interface of your application, which may contain widgets( widget is a generic term for a bit of self-contained code that displays a program, or a piece of a program) such as  buttons, labels, textboxes etc Dr.Pritee Parwekar   View The View is a base class for all UI components in android. For example, the EditTextclass is used to accept the input from users in android apps, which is a sub class of View. ã Following are the some of common View subclasses which will be used in android applications. ã TextView ã EditText ã Button ã CheckBox ã RadioButton ã ImageButton ã Like these we have many View subclasses available in android. Dr.Pritee Parwekar   Views ã The UI is defined using an XML file (e.g., the main.xml file located in the res/layout folder of your  project), which looks similar to the following: Dr.Pritee Parwekar 
Related Search
We Need Your Support
Thank you for visiting our website and your interest in our free products and services. We are nonprofit website to share and download documents. To the running of this website, we need your help to support us.

Thanks to everyone for your continued support.

No, Thanks
SAVE OUR EARTH

We need your sign to support Project to invent "SMART AND CONTROLLABLE REFLECTIVE BALLOONS" to cover the Sun and Save Our Earth.

More details...

Sign Now!

We are very appreciated for your Prompt Action!

x