è possibile spiegare per me in questo codice:L'androide: attributo name nel <fragment>
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent">
<fragment android:name="com.example.news.ArticleListFragment"
android:id="@+id/list"
android:layout_weight="1"
android:layout_width="0dp"
android:layout_height="match_parent" />
<fragment android:name="com.example.news.ArticleReaderFragment"
android:id="@+id/viewer"
android:layout_weight="2"
android:layout_width="0dp"
android:layout_height="match_parent" />
</LinearLayout>
qual è ArticleListFragment
e ArticleReaderFragmet
???
non so che si riferiscono a cosa ??? alla classe Fragment (o alla sua sottoclasse) che usa nel codice sorgente o nei file XML per il layout ???
se sono file XML dove devono essere posizionati ???
http://developer.android.com/guide/components/fragments.html – CommonsWare