Skip to content

Instantly share code, notes, and snippets.

@arturaz
Created March 25, 2018 15:52
Show Gist options
  • Save arturaz/899744782211737146216666b4211190 to your computer and use it in GitHub Desktop.
Save arturaz/899744782211737146216666b4211190 to your computer and use it in GitHub Desktop.
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="85dp"
android:padding="8dp"
app:layout_behavior="android.support.design.widget.BottomSheetBehavior"
android:elevation="4dp"
android:background="#eeeeee"
android:id="@+id/bottom_shelf"
app:behavior_hideable="false"
app:behavior_peekHeight="40dp"
app:layout_insetEdge="bottom"
>
<ImageView
android:id="@+id/bottom_shelf_indicator"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_expand_up" />
<TextView
android:id="@+id/total_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="Total:"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
app:layout_constraintBottom_toBottomOf="@id/bottom_shelf_indicator"
app:layout_constraintStart_toEndOf="@id/bottom_shelf_indicator"
app:layout_constraintTop_toTopOf="@id/bottom_shelf_indicator" />
<TextView
android:id="@+id/total_amount"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="0.00 €"
android:textAppearance="@style/TextAppearance.AppCompat.Subhead"
app:layout_constraintBottom_toBottomOf="@id/bottom_shelf_indicator"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/total_label"
app:layout_constraintTop_toTopOf="@id/bottom_shelf_indicator" />
<AutoCompleteTextView
android:id="@+id/note_entry"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:completionThreshold="1"
android:hint="Note... (optional)"
android:imeOptions="actionNext"
android:inputType="text"
app:layout_constraintTop_toBottomOf="@id/bottom_shelf_indicator"
/>
</android.support.constraint.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment