Skip to content

Commit def12eb

Browse files
committed
JetPack组件升级
1 parent a7b0da6 commit def12eb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
app:titleTextColor="@android:color/white"
2121
/>
2222

23-
<fragment
23+
<androidx.fragment.app.FragmentContainerView
2424
android:id="@+id/nav_home_fragment"
2525
android:name="androidx.navigation.fragment.NavHostFragment"
2626
android:layout_width="match_parent"

app/src/main/res/layout/activity_user_info.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto">
44

55
<data>
6-
76
<variable
87
name="userModel"
98
type="com.fmt.github.user.model.UserModel" />
@@ -24,7 +23,7 @@
2423
android:layout_width="match_parent"
2524
android:layout_height="wrap_content"
2625
app:contentScrim="@color/colorPrimary"
27-
app:layout_scrollFlags="scroll|exitUntilCollapsed">
26+
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
2827

2928
<LinearLayout
3029
android:layout_width="match_parent"

0 commit comments

Comments
 (0)