3) Get Search on Stackoverflow Forum No Need to Remember

3) Get Search on Stackoverflow Forum No Need to Remember

Remember-

1) Don’t do rote learning, no need to remember keyword and methods. Just remember their working and usability.

2) Test on real device. Because on real device environment are deferent than standard AVD.

3) Get search on stackoverflow forum—no need to remember

------Today’s Topic ------

1) Different type of layout

Relative layout, linear layout, table layout, tab layout, grid layout, Absolute layout, frame layout

Relative layout- In this type of Layout, each View-element can be positioned in a specific way relatively to the specified View-element.

Types of relationships:

to the left, right, above or below

aligned by the left, right, top or bottom

centered vertically, centered horizontally,

Linear Layout - LL has an Orientation property, which defines how will the child elements be positioned - in a vertical or horizontal line. It is really convenient and flexible enough to create screens of different complexity.

Table Layout - Android TableLayout going to be arranged groups of views into rows and columns. You will use the <TableRow> element to build a row in the table.

TabHost layout(Tab layout) - But unfortunately TabHost is deprecated by android in favor of fragments. So it is suggested that use fragment to achieve tab layout.

You can create tab layout using fragments and viewpager. Also you can swipe between tab view as it is the functionality of viewpager which is not possible when using TabHost.

Absolute layout- An Absolute Layout lets you specify exact locations (x/y coordinates) of its children. Absolute layouts are less flexible and harder to maintain than other types of layouts without absolute positioning. Note use in real time app.

Frame layout- Frame Layout is designed to block out an area on the screen to display a single item. Generally, FrameLayout should be used to hold a single child view, because it can be difficult to organize child views in a way that's scalable to different screen sizes without the children overlapping each other.

Dynamic view- grid view, list view,- required adapter to place item on it. When the content for your layout is dynamic or not pre-determined, you have to use an Adapter to populate the layout with data at runtime. an Adapter is use to bind data to its layout. The Adapter behaves as a middleman between the data source and the AdapterView layout.

NOTE no item in xml file because it get item at run time from adapter.

Grid view - Android GridView shows items in two-dimensional scrolling grid (rows & columns) and the grid items are not necessarily predetermined but they automatically inserted to the layout using a ListAdapter

List view- Android ListView is a view which groups several items and display them in vertical scrollable list. The list items are automatically inserted to the list using an Adapter that pulls content from a source such as an array or database.

------New library add in android ------

ConstraintLayout- Constraint Layout ("CL") is the latest addition to Android’s collection of layouts. For responsive actionbar and navigator drawer .

dependencies {
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}

------Button, checkbox, textview, edittext etc ------

------Icon in folder-----

5 diferent size

Mipmap – hdpi – 72

Mipmap –mdpi – 48x48 pixal

Mipmap – xhdpi -96

Mipmap – xxhdpi -144

Mipmap – xxxhdpi – 192

------layout for tables------

Create folder

Layout-sw600dp

Layout-sw720dp

------hindi and English------

Create folder values-hi for hindi … Unicode hindi font only

------Create raw folder for sound and media------

Raw