Upgrade to Pro — share decks privately, control downloads, hide ads and more …

FragmentContainerViewとは

yoppie
November 27, 2019

 FragmentContainerViewとは

yoppie

November 27, 2019
Tweet

More Decks by yoppie

Other Decks in Programming

Transcript

  1. &OHJOFFSJOH
 ӳ୯ޠ w ༷ʑͳϥΠϒϥϦͷ࢖͍ํ w -JOUϢχοτςετ6*ςετ w #JUSJTFΛ࢖ͬͨ$*$%؀ڥߏங ༷ʑͳӳ୯ޠͷ
 ΤϯδχΞϦϯάͰͷҙຯͱ


    ར༻ํ๏ͱར༻ྫ
 ྫ ࣮ߦ͢Δ FYFDVUFSVOTUBSUJOWPLF IUUQTUFYCPPUIQN IUUQTXXXBNB[PODPKQEQ#:3)%'7
  2. <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/decelerate_interpolator" android:shareInterpolator="true"> <translate android:duration="400" android:fromXDelta="100%"

    android:fromYDelta="0%" android:toXDelta="0%" android:toYDelta="0%" /> </set> <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/decelerate_interpolator" android:shareInterpolator="true" android:zAdjustment="bottom"> <translate android:duration="400" android:fromXDelta="0%" android:fromYDelta="0%" android:toXDelta="-50%" android:toYDelta="0%" /> </set> OBW@FOUFSYNM OBW@FYJUYNM ίϯςφ͕'SBNF-BZPVU ;PSEFSJOH
  3. <?xml version="1.0" encoding="utf-8"?> <layout 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"> <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_parent" android:layout_height="match_parent"

    tools:context=".activity.SubActivity"> <androidx.fragment.app.FragmentContainerView android:id="@+id/fragment_container_view" android:name="androidx.navigation.fragment.NavHostFragment" android:layout_width="match_parent" android:layout_height="match_parent" app:defaultNavHost="true" app:navGraph="@navigation/activity_navigation" /> </androidx.constraintlayout.widget.ConstraintLayout> </layout> GSBHNFOU͔Βஔ͖׵͑Մೳ