Skip to content

Instantly share code, notes, and snippets.

@makorowy
Last active March 2, 2019 13:11
Show Gist options
  • Save makorowy/9a7e5473df32ecf1b8a7da36764106f6 to your computer and use it in GitHub Desktop.
Save makorowy/9a7e5473df32ecf1b8a7da36764106f6 to your computer and use it in GitHub Desktop.
Sample for article needs - How to create a compound view?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="vertical"
tools:context=".MainActivity">
<include
layout="@layout/consents_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"/>
<Button
android:id="@+id/confirmButton"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="48dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="48dp"
android:enabled="false"
android:text="@string/confirm" />
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment