Wie kann ich diese TextView auf dem Fragment aktivieren. Ich möchte, dass es auch dann statisch bleibt, wenn sich Fragmente voneinander entfernen. Ich habe kein Glück, es oben zu ermöglichen. Hier ist mein LayoutAktivieren Sie TextView oben Fragment
<?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:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.example.skwebviewapp.MainActivity">
<fragment
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:id="@+id/mainFragment"
tools:layout="@layout/fragment_main" />
<TextView
android:layout_width="wrap_content"
android:layout_height="16dp"
android:id="@+id/textView"
android:text="@string/app_name"/>
</LinearLayout>
Dieses es im Inneren des Fragments legt. Ich möchte, dass es oben auf dem Fragment – ryhan112
angezeigt wird Ich habe diesen Check jetzt bearbeitet. –
ist jetzt behoben. Vielen Dank. – ryhan112