summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-19 14:38:55 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-19 14:38:55 +0100
commitd604d263d02ecad65dc2f08f59b6e817cb0e5fe8 (patch)
tree40522b303523e9725a8cdcc6a589c64bff91b17e /app/src/main/res/layout
parent7a45854a203447df2ad288b9796f5dd903c8d448 (diff)
added fragmentsHEADmaster
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/orientation_demo.xml17
-rw-r--r--app/src/main/res/layout/portrait_fragment.xml24
2 files changed, 29 insertions, 12 deletions
diff --git a/app/src/main/res/layout/orientation_demo.xml b/app/src/main/res/layout/orientation_demo.xml
index 2b178d3..c013ebf 100644
--- a/app/src/main/res/layout/orientation_demo.xml
+++ b/app/src/main/res/layout/orientation_demo.xml
@@ -5,20 +5,13 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
- <TextView
- android:id="@+id/textView"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:rotation="45"
- android:rotationX="54"
- android:rotationY="-2"
- android:scaleX="7"
- android:scaleY="6"
- android:text="portrait"
- android:translationX="-30dp"
- android:translationY="-50dp"
+ <androidx.fragment.app.FragmentContainerView
+ android:id="@+id/fragment_container"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
+
</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/portrait_fragment.xml b/app/src/main/res/layout/portrait_fragment.xml
new file mode 100644
index 0000000..2b178d3
--- /dev/null
+++ b/app/src/main/res/layout/portrait_fragment.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <TextView
+ android:id="@+id/textView"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:rotation="45"
+ android:rotationX="54"
+ android:rotationY="-2"
+ android:scaleX="7"
+ android:scaleY="6"
+ android:text="portrait"
+ android:translationX="-30dp"
+ android:translationY="-50dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+</androidx.constraintlayout.widget.ConstraintLayout> \ No newline at end of file