Skip to content

Instantly share code, notes, and snippets.

@AmaroNeto
Created February 26, 2020 17:10
Show Gist options
  • Save AmaroNeto/976f51d3e4409639cdec9d815ad742a2 to your computer and use it in GitHub Desktop.
Save AmaroNeto/976f51d3e4409639cdec9d815ad742a2 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<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="wrap_content">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
tools:context=".view.ExpandViewActivity"
tools:background="@color/colorPrimary">
<androidx.cardview.widget.CardView
android:id="@+id/card_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:cardBackgroundColor="@color/red"
app:cardCornerRadius="10dp"
android:elevation="10dp"
android:layout_margin="20dp">
<include android:id="@+id/intro"
layout="@layout/layout_1"/>
<include android:id="@+id/detail"
layout="@layout/layout_2" />
</androidx.cardview.widget.CardView>
</androidx.constraintlayout.widget.ConstraintLayout>
</ScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment