Skip to content

Instantly share code, notes, and snippets.

@wellingtoncosta
Created January 16, 2019 19:01
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/4bbe8b4e8439c2b181c4e77d2ea22876 to your computer and use it in GitHub Desktop.
Save wellingtoncosta/4bbe8b4e8439c2b181c4e77d2ea22876 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.FragmentOne">
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar_fragment_one"
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_one"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="?attr/colorPrimary"
app:title="@string/fragment_one"
app:popupTheme="@style/AppTheme.PopupOverlay" />
</com.google.android.material.appbar.AppBarLayout>
<Button
android:id="@+id/go_to_fragment_two"
android:layout_width="196dp"
android:layout_height="wrap_content"
android:text="@string/go_to_fragment_two"
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/go_to_fragment_two"
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