1.

Explain what is ADBD tool in android how you can install it and how it will connect with Emulator.

Answer»

In Android we have one draw back with Frame layout, when you have multiple CHILD view in Frame layout, they used overlap each other. For resolving this problem we can use CoordinatorLayout. In Coordinator Layput  has additional level of control over it’s child views. It can coordinates the animations and transitions of child views with one another.Please find below CODE where we are adding child view in coordinator view.

<android.support.design.widget.CoordinatorLayout          xmlns:android="HTTP://schemas.android.com/apk/res/android"  xmlns:app="http://schemas.android.com/apk/res-auto"  xmlns:tools="http://schemas.android.com/tools"  android:layout_width="match_parent"  android:layout_height="match_parent"  android:fitsSystemWindows="TRUE">  <android.support.design.widget.AppBarLayout     android:id="@+id/app_bar"     android:layout_width="match_parent"     android:layout_height="@dimen/app_bar_height"     android:fitsSystemWindows="true"     android:THEME="@style/AppTheme.AppBarOverlay">     <android.support.design.widget.CollapsingToolbarLayout         android:id="@+id/toolbar_layout"         android:layout_width="match_parent"         android:layout_height="match_parent"         android:fitsSystemWindows="true"         app:contentScrim="?attr/colorPrimary"         app:layout_scrollFlags="scroll|exitUntilCollapsed">         <android.support.v7.widget.Toolbar             android:id="@+id/toolbar"             android:layout_width="match_parent"             android:layout_height="?attr/actionBarSize"             app:layout_collapseMode="pin"             app:popupTheme="@style/AppTheme.PopupOverlay" />         <TableLayout             android:layout_width="match_parent"             android:layout_height="wrap_content"/>     </android.support.design.widget.CollapsingToolbarLayout> </android.support.design.widget.AppBarLayout> <include layout="@layout/content_scolling" /> <android.support.design.widget.FloatingActionButton     android:id="@+id/fab"     android:layout_width="wrap_content"     android:layout_height="wrap_content"     android:layout_margin="@dimen/fab_margin"     app:layout_anchor="@id/app_bar"     app:layout_anchorGravity="bottom|end"     app:srcCompat="@android:drawable/ic_dialog_email" />  </android.support.design.widget.CoordinatorLayout>


Discussion

No Comment Found

Related InterviewSolutions