component_credit_cards.xml (2001B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <!-- This Source Code Form is subject to the terms of the Mozilla Public 3 - License, v. 2.0. If a copy of the MPL was not distributed with this 4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 5 <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" 6 xmlns:tools="http://schemas.android.com/tools" 7 xmlns:app="http://schemas.android.com/apk/res-auto" 8 android:id="@+id/credit_cards_wrapper" 9 android:layout_width="match_parent" 10 android:layout_height="wrap_content"> 11 12 <ProgressBar 13 android:id="@+id/progress_bar" 14 style="@style/Widget.AppCompat.ProgressBar.Horizontal" 15 android:indeterminate="true" 16 android:layout_width="match_parent" 17 android:layout_height="8dp" 18 android:translationY="-3dp" 19 android:visibility="gone" 20 app:layout_constraintVertical_chainStyle="packed" 21 app:layout_constraintTop_toTopOf="parent" 22 app:layout_constraintStart_toStartOf="parent" 23 app:layout_constraintEnd_toEndOf="parent"/> 24 25 <androidx.recyclerview.widget.RecyclerView 26 android:id="@+id/credit_cards_list" 27 android:layout_width="match_parent" 28 android:layout_height="wrap_content" 29 android:visibility="gone" 30 app:layout_constrainedHeight="true" 31 tools:listitem="@layout/credit_card_list_item" 32 app:layout_constraintTop_toBottomOf="@id/progress_bar" 33 app:layout_constraintStart_toStartOf="parent" 34 app:layout_constraintBottom_toTopOf="@id/add_credit_card_button"/> 35 36 <include 37 android:id="@+id/add_credit_card_button" 38 layout="@layout/layout_add_credit_card" 39 android:layout_width="match_parent" 40 android:layout_height="wrap_content" 41 app:layout_constraintBottom_toBottomOf="parent" 42 app:layout_constraintTop_toBottomOf="@id/credit_cards_list" /> 43 44 </androidx.constraintlayout.widget.ConstraintLayout>