- Forum-Beiträge: 10
25.01.2019, 17:33:29 via Website
25.01.2019 17:33:29 via Website
Hallo,
ich habe folgende Ressourcen-Datei unter Layout liegen. Android Studio zeigt "LinearLayout" in Rot an. Und ein Build liefert
Execution failed for task ':app:mergeDebugResources'.
/home/brotherj/AndroidStudioProjects/FragmentDemo3/app/src/main/res/values-land/fragmentdemo3.xml:
Error: Unsupported type 'fragment'
/home/brotherj/AndroidStudioProjects/FragmentDemo3/app/src/main/res/values/fragmentdemo3.xml:
Error: Unsupported type 'fragment'
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http_:_//_schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<fragment
android:id="@+id/auswahl"
class="com.example.fragmentdemo3.AuswahlFragment"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1" />
<FrameLayout
android:id="@+id/details"
android:layout_width="0px"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?android:attr/detailsElementBackground" />
</LinearLayout>
Was läuft da schief?
Grüße
BrotherJ