Skip to content

Instantly share code, notes, and snippets.

@wellingtoncosta
Created January 16, 2019 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellingtoncosta/1630e7daecc6d580789e8795e974d366 to your computer and use it in GitHub Desktop.
Save wellingtoncosta/1630e7daecc6d580789e8795e974d366 to your computer and use it in GitHub Desktop.
<androidx.constraintlayout.widget.ConstraintLayout
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"
tools:context=".ui.FragmentTwo">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar_fragment_two"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/AppTheme.AppBarOverlay"
app:layout_constraintTop_toTopOf="parent">
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar_fragment_two"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:title="@string/fragment_two"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</com.google.android.material.appbar.AppBarLayout>
<Button
android:id="@+id/back_to_fragment_one"
android:layout_width="196dp"
android:layout_height="wrap_content"
android:text="@string/back_to_fragment_one"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintBottom_toBottomOf="parent" />
<Button
android:id="@+id/finish_app"
android:layout_width="196dp"
android:layout_height="wrap_content"
android:text="@string/finish_app"
app:layout_constraintTop_toBottomOf="@id/back_to_fragment_one"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintLeft_toLeftOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment