You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
131 lines
5.3 KiB
131 lines
5.3 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
you may not use this file except in compliance with the License.
|
|
You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<com.google.android.material.card.MaterialCardView
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/note_item"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="16dp"
|
|
android:layout_marginEnd="16dp"
|
|
android:layout_marginTop="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
app:cardCornerRadius="12dp"
|
|
app:cardElevation="2dp"
|
|
app:cardBackgroundColor="@color/surface"
|
|
app:strokeWidth="0dp"
|
|
app:rippleColor="@color/ripple">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="16dp">
|
|
|
|
<LinearLayout
|
|
android:id="@+id/content_container"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/alert_container"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<TextView
|
|
android:id="@+id/tv_name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearancePrimaryItem"
|
|
android:visibility="gone"
|
|
android:layout_marginBottom="4dp" />
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center_vertical"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_lock_icon"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:src="@drawable/ic_lock"
|
|
android:tint="@color/text_secondary"
|
|
android:visibility="gone"
|
|
android:layout_marginEnd="4dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_title"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:singleLine="true"
|
|
android:textAppearance="@style/TextAppearancePrimaryItem"
|
|
android:textColor="@color/text_primary"
|
|
android:ellipsize="end"
|
|
android:layout_marginEnd="8dp" />
|
|
|
|
<TextView
|
|
android:id="@+id/tv_time"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textAppearance="@style/TextAppearanceSecondaryItem"
|
|
android:textColor="@color/text_secondary" />
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:id="@+id/alert_container"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_gravity="center_vertical"
|
|
android:gravity="center"
|
|
android:layout_marginStart="8dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
app:layout_constraintBottom_toBottomOf="parent">
|
|
|
|
<ImageView
|
|
android:id="@+id/iv_alert_icon"
|
|
android:layout_width="20dp"
|
|
android:layout_height="20dp"
|
|
android:layout_gravity="center"
|
|
android:contentDescription="@string/menu_alert"
|
|
android:src="@drawable/ic_alarm"
|
|
app:tint="@color/text_secondary"
|
|
android:visibility="gone" />
|
|
|
|
<CheckBox
|
|
android:id="@android:id/checkbox"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:focusable="false"
|
|
android:clickable="false"
|
|
android:visibility="gone"
|
|
android:layout_marginStart="8dp" />
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</com.google.android.material.card.MaterialCardView>
|