-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Unknown
committed
Dec 8, 2018
1 parent
9aa3128
commit 743f4c4
Showing
1 changed file
with
94 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,106 +1,114 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<ScrollView 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:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:clipToPadding="false" | ||
android:fillViewport="true" | ||
android:paddingBottom="@dimen/padding_8dp" | ||
tools:context=".MainActivity"> | ||
|
||
<com.google.android.material.card.MaterialCardView | ||
android:id="@+id/materialCardView" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="@dimen/margin_16dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
app:cardCornerRadius="@dimen/generic_8dp" | ||
app:cardElevation="@dimen/generic_8dp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent"> | ||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
<com.google.android.material.card.MaterialCardView | ||
android:id="@+id/materialCardView" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_margin="@dimen/margin_16dp" | ||
android:clickable="true" | ||
android:focusable="true" | ||
app:cardCornerRadius="@dimen/generic_8dp" | ||
app:cardElevation="@dimen/generic_8dp" | ||
app:cardPreventCornerOverlap="false" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent"> | ||
|
||
<ImageView | ||
<androidx.constraintlayout.widget.ConstraintLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:scaleType="fitXY" | ||
android:src="@drawable/landscape" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
tools:ignore="ContentDescription" /> | ||
android:layout_height="wrap_content"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/margin_16dp" | ||
android:text="@string/material_card_text_view" | ||
android:textColor="@android:color/white" | ||
android:textSize="@dimen/text_size_20sp" | ||
android:textStyle="bold" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
<ImageView | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:scaleType="fitXY" | ||
android:src="@drawable/landscape" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" | ||
tools:ignore="ContentDescription" /> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginBottom="@dimen/margin_16dp" | ||
android:text="@string/material_card_text_view" | ||
android:textColor="@android:color/white" | ||
android:textSize="@dimen/text_size_20sp" | ||
android:textStyle="bold" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" /> | ||
|
||
</com.google.android.material.card.MaterialCardView> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
|
||
<com.google.android.material.button.MaterialButton | ||
android:id="@+id/materialButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/view_64dp" | ||
android:layout_margin="@dimen/margin_16dp" | ||
android:background="@color/darkGreen" | ||
android:text="@string/material_button_text" | ||
android:textAllCaps="false" | ||
android:textColor="@android:color/white" | ||
android:textSize="@dimen/text_size_20sp" | ||
app:cornerRadius="@dimen/generic_8dp" | ||
app:layout_constraintEnd_toEndOf="@+id/materialCardView" | ||
app:layout_constraintStart_toStartOf="@+id/materialCardView" | ||
app:layout_constraintTop_toBottomOf="@+id/materialCardView" | ||
app:rippleColor="@color/lighterGreen" /> | ||
</com.google.android.material.card.MaterialCardView> | ||
|
||
<com.google.android.material.button.MaterialButton | ||
android:id="@+id/materialButton" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/view_64dp" | ||
android:layout_margin="@dimen/margin_16dp" | ||
android:background="@color/darkGreen" | ||
android:text="@string/material_button_text" | ||
android:textAllCaps="false" | ||
android:textColor="@android:color/white" | ||
android:textSize="@dimen/text_size_20sp" | ||
app:cornerRadius="@dimen/generic_8dp" | ||
app:layout_constraintEnd_toEndOf="@+id/materialCardView" | ||
app:layout_constraintStart_toStartOf="@+id/materialCardView" | ||
app:layout_constraintTop_toBottomOf="@+id/materialCardView" | ||
app:rippleColor="@color/lighterGreen" /> | ||
|
||
<com.google.android.material.checkbox.MaterialCheckBox | ||
style="@style/margin_left_16dp" | ||
android:id="@+id/materialCheckBox" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/margin_16dp" | ||
android:text="@string/material_check_box_text" | ||
android:textSize="@dimen/text_size_16sp" | ||
app:layout_constraintStart_toStartOf="@+id/materialButton" | ||
app:layout_constraintTop_toBottomOf="@+id/materialButton" /> | ||
<com.google.android.material.checkbox.MaterialCheckBox | ||
android:id="@+id/materialCheckBox" | ||
style="@style/margin_left_16dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/margin_16dp" | ||
android:text="@string/material_check_box_text" | ||
android:textSize="@dimen/text_size_16sp" | ||
app:layout_constraintStart_toStartOf="@+id/materialButton" | ||
app:layout_constraintTop_toBottomOf="@+id/materialButton" /> | ||
|
||
<com.google.android.material.radiobutton.MaterialRadioButton | ||
android:id="@+id/materialRadioButton" | ||
style="@style/margin_left_8dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/margin_16dp" | ||
android:text="@string/material_radio_button_text" | ||
android:textSize="@dimen/text_size_16sp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/materialCheckBox" /> | ||
<com.google.android.material.radiobutton.MaterialRadioButton | ||
android:id="@+id/materialRadioButton" | ||
style="@style/margin_left_8dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/margin_16dp" | ||
android:text="@string/material_radio_button_text" | ||
android:textSize="@dimen/text_size_16sp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintStart_toStartOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/materialCheckBox" /> | ||
|
||
<com.google.android.material.switchmaterial.SwitchMaterial | ||
android:id="@+id/switchMaterial" | ||
style="@style/margin_right_16dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/margin_16dp" | ||
android:text="@string/material_switch_text" | ||
android:textSize="@dimen/text_size_16sp" | ||
<com.google.android.material.switchmaterial.SwitchMaterial | ||
android:id="@+id/switchMaterial" | ||
style="@style/margin_right_16dp" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/margin_16dp" | ||
android:text="@string/material_switch_text" | ||
android:textSize="@dimen/text_size_16sp" | ||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/materialRadioButton" | ||
app:switchPadding="@dimen/padding_8dp" /> | ||
|
||
app:layout_constraintEnd_toEndOf="parent" | ||
app:layout_constraintTop_toBottomOf="@+id/materialRadioButton" | ||
app:switchPadding="@dimen/padding_8dp" /> | ||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
|
||
</androidx.constraintlayout.widget.ConstraintLayout> | ||
</ScrollView> |