MCQs Test!! VB Basic Test !! Essentials of VB !! Creating User Services !! function !! Anatomy !! GK March-2019 !! DATA TYPES IN JAVA !! Classes ,Constructor ,Methods,Inheritance !! Ecology-I !! Biology 2019 !! Gk april 2019 !! Biology (living world) !! Plant anatomy !! CELL STRUCTURES AND FUNCTION !! General biology !! Human physiology !! Data structure !! Ecology-II !! GK TEST !! Reproduction in plants !! Human reproduction !! The ABC of C !! Operating system set1 !! Operating system set2 !! Gk and current affairs !! Animal kingdom !! Number system !! Animal kingdom-II !! Gk TEST-III !! Number series !! Microorganisms !! Interview question in c !! Time and Work !! Percentage !! General history !! Average !! Cells !! Locomotion and Movement !! paging !! Bacteriology !! Page replacement policy !! Secondary memory and Disk scheduling !! Introduction of Nervous System and neurons !! Plant harmones !! Transport and Mineral Nutrition in Plants !! Neurotransmitters !! Modern Indian History !! Photosynthesis in Plants !! Modern Indian History-II !! Plant respiration !! Environment & Biodiversity !! Environment & Biodiversity - II !! Algae, Bryophytes, Pteridophytes !! Area !! Cricket !! Days of the Year (India and the World) !! Plant Pathology - I !! Indian Transport System !! Plant Pathology - II !! Aptitude !! Biology !! Botany !! C language !! Computer Science !! Core Java !! Gate !! GK !! Mysql !! Operating system !! Physics !! VB-Visual Basic !! Zoology


Layout In Android
Previous Home Next

View or ViewGroup object are the root elements each layout file. XML is very helpful for design UI layouts. You could create web pages in HTML. We can divide the layout in 2 ways.

  1. Android provides widgets and layouts class that are used to create the layout.
  2. You can instantiate layout elements at runtime that means programmatically.

You could declare your application's default layouts in XML, including the screen elements that will appear in them and their properties. You could then add code in your application that would modify the state of the screen objects, including those declared in XML, at run time. The layout opt tool find out inefficiencies or other problems. You can change or modify your source code and recompile. In general, the XML vocabulary for declaring UI elements closely follows the structure and naming of the classes and methods, where element names correspond to class names and attribute names correspond to methods.

However, note that not all vocabulary is identical. you can guess what XML attribute corresponds to a class method, or guess what class corresponds to a given xml element. In some cases, there are slight naming differences. For example, the EditText element has a text attribute that corresponds to EditText.setText().

Attributes : There are many type attributes in XML. View object have some type attributes eg. textSize attribute but every attributes is inherited by any View attributeed is the the root View class.

  1. ID : ID attributes uniquely identify the View within the tree. This is an XML attribute common to all View objects and you will use it very often. The
  2. "android:id="@+id/my_button"


  3. Layout Parameters : XML layout attributes named layout_something define layout parameters for the View that are appropriate for the ViewGroup in which it resides.
Previous Home Next