diff options
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/orientation_demo.xml | 17 | ||||
-rw-r--r-- | app/src/main/res/layout/portrait_fragment.xml | 24 |
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 |