Skip to content

Instantly share code, notes, and snippets.

@Xevion
Created December 17, 2021 09:04
Show Gist options
  • Save Xevion/574694c2d90ffd5ad7c86296aaf1e827 to your computer and use it in GitHub Desktop.
Save Xevion/574694c2d90ffd5ad7c86296aaf1e827 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners
android:radius="@dimen/color_item_frame_corner_radius"/>
<stroke
android:width="@dimen/color_item_frame_width"
android:color="@color/colorColorItemFrame"/>
<solid
android:color="@color/colorWhite"/>
</shape>
<?xml version="1.0" encoding="utf-8"?>
<!--
~ Copyright (c) 2019 Razeware LLC
~
~ Permission is hereby granted, free of charge, to any person obtaining a copy
~ of this software and associated documentation files (the "Software"), to deal
~ in the Software without restriction, including without limitation the rights
~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
~ copies of the Software, and to permit persons to whom the Software is
~ furnished to do so, subject to the following conditions:
~
~ The above copyright notice and this permission notice shall be included in
~ all copies or substantial portions of the Software.
~
~ Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
~ distribute, sublicense, create a derivative work, and/or sell copies of the
~ Software in any work that is designed, intended, or marketed for pedagogical or
~ instructional purposes related to programming, coding, application development,
~ or information technology. Permission for such use, copying, modification,
~ merger, publication, distribution, sublicensing, creation of derivative works,
~ or sale is expressly withheld.
~
~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
~ THE SOFTWARE.
-->
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/root"
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="wrap_content"
android:layout_marginEnd="@dimen/note_overview_item_margin_horizontal"
android:layout_marginStart="@dimen/note_overview_item_margin_horizontal"
android:layout_marginTop="@dimen/note_overview_item_margin_top"
android:background="@drawable/background_note_overview_item"
android:clickable="true"
android:focusable="true"
android:orientation="vertical"
android:padding="@dimen/note_overview_item_padding">
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="end"
android:gravity="start"
android:lines="1"
android:maxLines="1"
android:textColor="@color/colorBlack"
android:textSize="@dimen/note_overview_item_text_size"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:text="Title"/>
<TextView
android:id="@+id/note"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:ellipsize="end"
android:gravity="start"
android:lines="1"
android:maxLines="1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/title"
tools:text="Content"/>
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment