Interview answers verified by specialists.

Find interview questions and answers on this website:


See right interview answers on 30 common job interview questions

Write a program that shows the creation of reusable user interface that includes the layout.

The program that uses the reusable user interface including the layout is given below:
<com.android.launcher.Workspace
android:id="@+id/workspace"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
launcher:defaultScreen="1">
<include android:id="@+id/cell1" layout="@layout/work" />
<include android:id="@+id/cell2" layout="@layout/work" />
</com.android.launcher.Workspace>
The tag that is used in this are:
<include />: this is the element tag and it includes other XML layout files. It calls the layout files by using their name and including @layout. This @ defines the inclusion of layout file in the program. The same out in the example is included two times. The tag overrides some attributes that are included in the layout. The id can be added that uniquely identifies the application and the components that are used inside it. 

Do you know that?

28% of freelancers who spent less than two hours per week prospecting earned $70 or more per hour. Next

Articles:

Fast Payments
Payoneer sing up to get free 
$25