
Fragmenty dynamiczne
447
jesteś tutaj
Układ fragmentu StopwatchFragment
Na potrzeby fragmentu
StopwatchFragment
użyjemy tego samego układu,
który wcześniej przygotowaliśmy dla aplikacji
Stoper. A więc zastąp zawartość
pliku
fragment_stopwatch.xml kodem przedstawionym poniżej:
<?xml version=”1.0” encoding=”utf-8”?>
<LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android”
xmlns:tools=”http://schemas.android.com/tools”
android:layout_width=”match_parent”
android:layout_height=”match_parent”>
android:orientation=”vertical”
android:padding=”16dp”
<TextView
android:id=”@+id/time_view”
android:layout_width=”wrap_content”
android:layout_height=”wrap_content” ...