Created
May 18, 2021 14:02
-
-
Save Mugurell/e5dec04adeb3c985ed0ca476335ec8be to your computer and use it in GitHub Desktop.
Fenix "Saved cards" layout that with a "Add credit card" below the list of cards and above parent bottom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!-- This Source Code Form is subject to the terms of the Mozilla Public | |
- License, v. 2.0. If a copy of the MPL was not distributed with this | |
- file, You can obtain one at http://mozilla.org/MPL/2.0/. --> | |
<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:id="@+id/credit_cards_wrapper" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<ProgressBar | |
android:id="@+id/progress_bar" | |
style="@style/Widget.AppCompat.ProgressBar.Horizontal" | |
android:layout_width="match_parent" | |
android:layout_height="5dp" | |
android:indeterminate="true" | |
android:visibility="gone" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintVertical_chainStyle="packed" /> | |
<androidx.recyclerview.widget.RecyclerView | |
android:id="@+id/credit_cards_list" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
android:visibility="gone" | |
app:layout_constrainedHeight="true" | |
app:layout_constraintBottom_toTopOf="@id/add_credit_card_button" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/progress_bar" | |
tools:listitem="@layout/credit_card_list_item" /> | |
<include | |
android:id="@+id/add_credit_card_button" | |
layout="@layout/credit_card_add_button" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toBottomOf="@id/credit_cards_list" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment