W zakupionej aplikacji znajduje się instrukcja, osoba od której apkę kupiłem napisała, że mam plik activity_instruction.xml i według niego mam się wzorować.
Jednak nie rozumiem w jaki sposób dodać tu treść i obrazek.
Treść znajduje się w pliku strings.xml, a odnośnika do obrazka nie widzę w pliku activity_instruction.xml.
Prosiłbym o informację co zrobić, aby dodać jeszcze jeden opis wraz ze zdjęciem.
Zawartość pliku:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mainLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/bg_color"
tools:context="com.wrteam.BitwaKL4.activity.InstructionActivity">
<include layout="@layout/toolbar_layout" />
<View
android:id="@+id/divider"
android:layout_width="match_parent"
android:layout_height="3dp"
android:layout_below="@+id/toolBar"
android:background="@drawable/drop_shadow" />
<RelativeLayout
android:id="@+id/contents_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/divider">
<ScrollView
android:id="@+id/scrollView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/tvPlay">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="5dp">
<LinearLayout
android:id="@+id/step1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:gravity="center"
android:text="@string/has_option"
android:textColor="@color/txt_color"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:weightSum="5">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:src="@drawable/correct"
android:contentDescription="TODO" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="5dp"
android:text="@string/msg_right"
android:textColor="@color/txt_color" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="4"
android:orientation="horizontal">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp"
android:src="@drawable/incorrect"
android:contentDescription="TODO" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:padding="5dp"
android:text="@string/msg_wrong"
android:textColor="@color/txt_color" />
</LinearLayout>
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/divider2"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_below="@+id/step1"
android:background="@drawable/drop_shadow" />
<LinearLayout
android:id="@+id/battleLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/divider2"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/battle_quiz"
android:textColor="@color/txt_color"
android:textStyle="bold" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_10dp"
android:text="@string/battle_msg1"
android:textColor="@color/txt_color" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_10dp"
android:text="@string/battle_msg2"
android:textColor="@color/txt_color" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="@dimen/margin_10dp"
android:text="@string/battle_msg3"
android:textColor="@color/txt_color" />
</LinearLayout>
<View
android:id="@+id/dividerBattle"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_below="@+id/battleLayout"
android:background="@drawable/drop_shadow" />
<TextView
android:id="@+id/tvLifline"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/dividerBattle"
android:layout_centerHorizontal="true"
android:padding="5dp"
android:text="@string/msg_lifeline"
android:textColor="@color/txt_color"
android:textStyle="bold" />
<LinearLayout
android:id="@+id/step2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/tvLifline"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:weightSum="4">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:layout_weight="1"
android:background="@drawable/achievement_bg"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/fiftyfifty"
android:contentDescription="TODO" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:layout_weight="1"
android:background="@drawable/achievement_bg"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/skip" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:layout_weight="1"
android:background="@drawable/achievement_bg"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dp"
android:src="@drawable/audiencepool" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:layout_weight="1"
android:background="@drawable/achievement_bg"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="3dp"
android:src="@drawable/resettime" />
</LinearLayout>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:orientation="vertical"
android:weightSum="4">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/msg_fifty_fifty"
android:textColor="@color/txt_color" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/msg_skip"
android:textColor="@color/txt_color" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/msg_opinion"
android:textColor="@color/txt_color" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/margin_10dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:text="@string/msg_reset"
android:textColor="@color/txt_color" />
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/divider3"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_below="@+id/step2"
android:background="@drawable/drop_shadow" />
<LinearLayout
android:id="@+id/step3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/divider3"
android:orientation="vertical">
<TextView
android:id="@+id/step3_des1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="5dp"
android:text="@string/leaderboard"
android:textColor="@color/txt_color"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="@dimen/margin_10dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="3dp"
android:background="@drawable/achievement_bg"
android:gravity="center">
<ImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="3dp"
android:layout_marginLeft="3dp"
android:layout_marginTop="3dp"
android:layout_marginEnd="3dp"
android:layout_marginRight="3dp"
android:layout_marginBottom="3dp"
android:src="@drawable/rank"
android:tint="@color/colorPrimaryDark" />
</LinearLayout>
<TextView
android:id="@+id/step3_des2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginStart="@dimen/margin_10dp"
android:layout_marginTop="2dp"
android:text="@string/msg_leaderboard"
android:textColor="@color/txt_color" />
</LinearLayout>
</LinearLayout>
<View
android:id="@+id/divider4"
android:layout_width="match_parent"
android:layout_height="4dp"
android:layout_below="@+id/step3"
android:background="@drawable/drop_shadow" />
<View
android:id="@+id/divider5"
android:layout_width="match_parent"
android:layout_height="@dimen/margin_10dp" />
</RelativeLayout>
</ScrollView>
<TextView
android:id="@+id/tvPlay"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@color/colorPrimaryDark"
android:gravity="center"
android:onClick="Start"
android:padding="@dimen/margin_dp"
android:text="@string/lets_play"
android:textAppearance="@style/TextAppearance.AppCompat.Medium"
android:textColor="@color/white"
android:textStyle="bold" />
</RelativeLayout>
</RelativeLayout>