-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6429 from grzesiek2010/COLLECT-6347
Reworked the banner in Ready to send screen using card view
- Loading branch information
Showing
4 changed files
with
63 additions
and
46 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,57 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
android:id="@+id/banner" | ||
android:background="?colorSurface" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:background="?colorSurfaceContainerLow" | ||
android:paddingVertical="@dimen/margin_standard" | ||
android:visibility="gone" | ||
tools:visibility="visible"> | ||
|
||
<ImageView | ||
android:id="@+id/icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/margin_large" | ||
app:srcCompat="@drawable/ic_send_24" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:tint="?colorPrimary"/> | ||
<com.google.android.material.card.MaterialCardView | ||
style="@style/Widget.Material3.CardView.Filled" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/title" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/margin_large" | ||
android:layout_marginEnd="@dimen/margin_standard" | ||
android:textAppearance="?textAppearanceTitleMedium" | ||
android:textColor="?colorPrimary" | ||
app:layout_constraintStart_toEndOf="@id/icon" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="@id/icon" | ||
tools:text="Last sent: 2 days ago"/> | ||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:paddingVertical="@dimen/margin_standard"> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/subtext" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:textAppearance="?textAppearanceBodyMedium" | ||
app:layout_constraintStart_toStartOf="@id/title" | ||
app:layout_constraintEnd_toEndOf="@id/title" | ||
app:layout_constraintTop_toBottomOf="@id/title" | ||
tools:text="4 forms ready to send"/> | ||
<ImageView | ||
android:id="@+id/icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/margin_standard" | ||
app:srcCompat="@drawable/ic_send_24" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
app:tint="?colorPrimary"/> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/title" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginStart="@dimen/margin_standard" | ||
android:layout_marginEnd="@dimen/margin_standard" | ||
android:textAppearance="?textAppearanceTitleMedium" | ||
android:textColor="?colorPrimary" | ||
app:layout_constraintStart_toEndOf="@id/icon" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toTopOf="@id/icon" | ||
tools:text="Last sent: 2 days ago"/> | ||
|
||
<com.google.android.material.textview.MaterialTextView | ||
android:id="@+id/subtext" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:textAppearance="?textAppearanceBodyMedium" | ||
app:layout_constraintStart_toStartOf="@id/title" | ||
app:layout_constraintEnd_toEndOf="@id/title" | ||
app:layout_constraintTop_toBottomOf="@id/title" | ||
tools:text="4 forms ready to send"/> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</com.google.android.material.card.MaterialCardView> | ||
</FrameLayout> |
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