Skip to content

Instantly share code, notes, and snippets.

@jamesjmtaylor
Created March 19, 2018 13:04
Show Gist options
  • Save jamesjmtaylor/ef5ea59197cb52d1ecb46fa101b7af51 to your computer and use it in GitHub Desktop.
Save jamesjmtaylor/ef5ea59197cb52d1ecb46fa101b7af51 to your computer and use it in GitHub Desktop.
Broken Activity ConstraintLayout
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.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:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/gray"
tools:context="com.jamesjmtaylor.weg2015.TabBarActivity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
android:orientation="vertical">
<android.support.design.widget.BottomNavigationView
android:id="@+id/navigation"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/gray"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:menu="@menu/navigation"/>
</LinearLayout>
<FrameLayout
android:id="@+id/fragmentFrameLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_marginBottom="@dimen/bottomNavigationViewHeight"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent">
</FrameLayout>
<FrameLayout
android:id="@+id/hudFrameLayout"
android:layout_width="match_parent"
android:layout_height="match_parent">
</FrameLayout>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment