jak dodać jeden układ w innym układzie.Zostałem utworzony ten układ w tblrow.XML.so chcę dodać te wiersze w menu.XML.i chcesz dodać te wiersze w zależności od nie wiersze.Jak mogę to zrobić.Jeśli dodaję, jak mogę zidentyfikować każdy wiersz.Proszę pomóc mi.Musię rozwiązania w java nie w XML. Mój kod tododawanie układu w innym układzie
<TableRow android:id="@+id/tblRowMovies" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/btn_backgrnd" android:clickable="true" android:focusable = "true" android:layout_weight="1.0">
<ImageView android:layout_width="wrap_content" android:layout_height="fill_parent" android:src="@drawable/movie" android:layout_gravity="center_vertical|center_horizontal"/>
<TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="MOVIES" android:layout_gravity="center_vertical" android:paddingLeft="20dp" android:textColor="@android:color/white" android:textSize="20sp" android:textStyle="bold">
</TextView>
.
wiem this.but trzeba go w kodzie Java. –
To może ci pomóc. http://stackoverflow.com/questions/3195668/android-programmatically-include-layout-i-without-xml – Gopinath