dimanche 3 mai 2015

I am a bit confused regarding the rendering of other layouts inside my application's main layout.

I know inflate, which I use quite often, but a few days ago I came across < include /> which can be used directly in the application's main xml layout, it quicker and cleaner.

like:

 <include
        android:layout_width="fill_parent"
        android:layout_height="50dp"
        layout="@layout/titlebar" />

What is the difference between these two?

Thanks!

Aucun commentaire:

Enregistrer un commentaire