parent
a1a4f32302
commit
1beed62fcf
@ -1,74 +1,61 @@ |
|||||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||||
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||||
xmlns:tools="http://schemas.android.com/tools" |
xmlns:tools="http://schemas.android.com/tools" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent"> |
android:layout_height="match_parent"> |
||||||
|
|
||||||
<androidx.core.widget.NestedScrollView |
<androidx.core.widget.NestedScrollView |
||||||
android:layout_width="match_parent" |
android:id="@+id/nestedScrollView" |
||||||
android:layout_height="match_parent" |
android:layout_width="match_parent" |
||||||
android:fillViewport="true" |
android:layout_height="match_parent" |
||||||
app:layout_behavior="@string/appbar_scrolling_view_behavior" android:id="@+id/nestedScrollView"> |
android:fillViewport="true" |
||||||
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"> |
||||||
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout |
<androidx.constraintlayout.widget.ConstraintLayout |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="wrap_content"> |
android:layout_height="wrap_content"> |
||||||
|
|
||||||
<androidx.recyclerview.widget.RecyclerView |
<androidx.recyclerview.widget.RecyclerView |
||||||
android:id="@+id/recyclerView" |
android:id="@+id/recyclerView" |
||||||
android:layout_width="0dp" |
android:layout_width="0dp" |
||||||
android:layout_height="0dp" |
android:layout_height="0dp" |
||||||
app:layout_constraintBottom_toBottomOf="parent" |
app:layout_constraintBottom_toBottomOf="parent" |
||||||
app:layout_constraintEnd_toEndOf="parent" |
app:layout_constraintEnd_toEndOf="parent" |
||||||
app:layout_constraintStart_toStartOf="parent" |
app:layout_constraintStart_toStartOf="parent" |
||||||
app:layout_constraintTop_toTopOf="parent"/> |
app:layout_constraintTop_toTopOf="parent" /> |
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout> |
</androidx.constraintlayout.widget.ConstraintLayout> |
||||||
|
|
||||||
</androidx.core.widget.NestedScrollView> |
</androidx.core.widget.NestedScrollView> |
||||||
|
|
||||||
<com.google.android.material.appbar.AppBarLayout |
<com.google.android.material.appbar.AppBarLayout |
||||||
android:id="@+id/appBar" |
android:id="@+id/appBar" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="128dp" |
android:layout_height="128dp" |
||||||
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> |
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"> |
||||||
|
|
||||||
<com.google.android.material.appbar.CollapsingToolbarLayout |
<com.google.android.material.appbar.CollapsingToolbarLayout |
||||||
android:id="@+id/collapsingToolbar" |
android:id="@+id/collapsingToolbar" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||||
app:contentScrim="?attr/colorPrimary" |
app:collapsedTitleTextAppearance="@style/PokerAnalyticsTheme.Toolbar.CollapsedTitleAppearance" |
||||||
app:expandedTitleGravity="bottom" |
app:contentScrim="?attr/colorPrimary" |
||||||
app:expandedTitleMarginStart="72dp" |
app:expandedTitleGravity="bottom" |
||||||
app:expandedTitleTextAppearance="@style/PokerAnalyticsTheme.Toolbar.ExpandedTitleAppearance" |
app:expandedTitleMarginStart="72dp" |
||||||
app:collapsedTitleTextAppearance="@style/PokerAnalyticsTheme.Toolbar.CollapsedTitleAppearance" |
app:expandedTitleTextAppearance="@style/PokerAnalyticsTheme.Toolbar.ExpandedTitleAppearance" |
||||||
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"> |
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap"> |
||||||
|
|
||||||
<androidx.appcompat.widget.Toolbar |
<androidx.appcompat.widget.Toolbar |
||||||
android:id="@+id/toolbar" |
android:id="@+id/toolbar" |
||||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||||
android:layout_height="?attr/actionBarSize" |
android:layout_height="?attr/actionBarSize" |
||||||
app:title="Poker Analytics" |
app:layout_collapseMode="pin" |
||||||
app:titleTextColor="@color/white" |
app:title="Poker Analytics" |
||||||
app:layout_collapseMode="pin"/> |
app:titleTextColor="@color/white" /> |
||||||
|
|
||||||
</com.google.android.material.appbar.CollapsingToolbarLayout> |
</com.google.android.material.appbar.CollapsingToolbarLayout> |
||||||
|
|
||||||
</com.google.android.material.appbar.AppBarLayout> |
</com.google.android.material.appbar.AppBarLayout> |
||||||
<Button |
|
||||||
tools:text="Save" |
|
||||||
android:layout_width="wrap_content" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:id="@+id/saveButton" |
|
||||||
app:layout_anchorGravity="right|top" |
|
||||||
app:layout_anchor="@+id/appBar"/> |
|
||||||
<Button |
|
||||||
tools:text="Delete" |
|
||||||
android:layout_width="wrap_content" |
|
||||||
android:layout_height="wrap_content" |
|
||||||
android:id="@+id/deleteButton" |
|
||||||
app:layout_anchorGravity="bottom|right" |
|
||||||
app:layout_anchor="@+id/nestedScrollView"/> |
|
||||||
|
|
||||||
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
</androidx.coordinatorlayout.widget.CoordinatorLayout> |
||||||
@ -0,0 +1,17 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||||
|
<menu xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
|
xmlns:app="http://schemas.android.com/apk/res-auto"> |
||||||
|
|
||||||
|
<item |
||||||
|
android:id="@+id/delete" |
||||||
|
android:icon="@drawable/ic_outline_delete" |
||||||
|
android:title="@string/delete" |
||||||
|
app:showAsAction="ifRoom" /> |
||||||
|
|
||||||
|
<item |
||||||
|
android:id="@+id/save" |
||||||
|
android:title="@string/save" |
||||||
|
android:icon="@drawable/ic_check" |
||||||
|
app:showAsAction="ifRoom" /> |
||||||
|
|
||||||
|
</menu> |
||||||
Loading…
Reference in new issue