mirror of https://github.com/ThmmyNoLife/mTHMMY
Ezerous
2 years ago
20 changed files with 239 additions and 212 deletions
@ -1,49 +1,62 @@ |
|||||
<?xml version="1.0" encoding="utf-8"?> |
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:app="http://schemas.android.com/apk/res-auto" |
xmlns:app="http://schemas.android.com/apk/res-auto" |
||||
android:id="@+id/bookmark_row" |
|
||||
android:layout_width="match_parent" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content"> |
||||
android:background="?android:attr/selectableItemBackground" |
|
||||
android:clickable="true" |
|
||||
android:focusable="true" |
|
||||
android:gravity="center_vertical" |
|
||||
android:orientation="horizontal"> |
|
||||
|
|
||||
<TextView |
<androidx.cardview.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" |
||||
android:id="@+id/bookmark_title" |
android:id="@+id/bookmark_card" |
||||
android:layout_width="0dp" |
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
android:layout_height="wrap_content" |
||||
android:layout_weight="1" |
android:foreground="?android:attr/selectableItemBackground" |
||||
android:paddingBottom="8dp" |
card_view:cardBackgroundColor="@color/background" |
||||
android:paddingTop="6dp" |
card_view:cardCornerRadius="5dp" |
||||
android:paddingStart="16dp" |
card_view:cardElevation="2dp" |
||||
android:paddingEnd="0dp" |
card_view:cardPreventCornerOverlap="false" |
||||
android:textColor="@color/primary_text" |
card_view:cardUseCompatPadding="true" |
||||
android:textSize="18sp" /> |
android:clickable="true" |
||||
|
android:focusable="true"> |
||||
|
<LinearLayout |
||||
|
android:layout_width="match_parent" |
||||
|
android:layout_height="wrap_content" |
||||
|
android:gravity="center_vertical" |
||||
|
android:orientation="horizontal"> |
||||
|
|
||||
<ImageButton |
<TextView |
||||
android:id="@+id/toggle_notification" |
android:id="@+id/bookmark_title" |
||||
android:layout_width="wrap_content" |
android:layout_width="0dp" |
||||
android:layout_height="match_parent" |
android:layout_height="wrap_content" |
||||
android:paddingBottom="3dp" |
android:layout_weight="1" |
||||
android:paddingTop="3dp" |
android:paddingBottom="8dp" |
||||
android:paddingStart="6dp" |
android:paddingTop="6dp" |
||||
android:paddingEnd="6dp" |
android:paddingStart="16dp" |
||||
android:background="@android:color/transparent" |
android:paddingEnd="0dp" |
||||
android:contentDescription="@string/toggle_notification" |
android:textColor="@color/primary_text" |
||||
app:srcCompat="@drawable/ic_notification_on" /> |
android:textSize="18sp" /> |
||||
|
|
||||
<ImageButton |
<ImageButton |
||||
android:id="@+id/remove_bookmark" |
android:id="@+id/toggle_notification" |
||||
android:layout_width="wrap_content" |
android:layout_width="wrap_content" |
||||
android:layout_height="match_parent" |
android:layout_height="match_parent" |
||||
android:paddingBottom="3dp" |
android:paddingBottom="3dp" |
||||
android:paddingTop="3dp" |
android:paddingTop="3dp" |
||||
android:paddingStart="6dp" |
android:paddingStart="6dp" |
||||
android:paddingEnd="6dp" |
android:paddingEnd="6dp" |
||||
android:layout_marginEnd="12dp" |
android:background="@android:color/transparent" |
||||
android:background="@android:color/transparent" |
android:contentDescription="@string/toggle_notification" |
||||
android:contentDescription="@string/remove_bookmark" |
app:srcCompat="@drawable/ic_notification_on" /> |
||||
app:srcCompat="@drawable/ic_delete_accent_24dp" /> |
|
||||
|
<ImageButton |
||||
|
android:id="@+id/remove_bookmark" |
||||
|
android:layout_width="wrap_content" |
||||
|
android:layout_height="match_parent" |
||||
|
android:paddingBottom="3dp" |
||||
|
android:paddingTop="3dp" |
||||
|
android:paddingStart="6dp" |
||||
|
android:paddingEnd="12dp" |
||||
|
android:background="@android:color/transparent" |
||||
|
android:contentDescription="@string/remove_bookmark" |
||||
|
app:srcCompat="@drawable/ic_delete_accent_24dp" /> |
||||
|
</LinearLayout> |
||||
|
</androidx.cardview.widget.CardView> |
||||
</LinearLayout> |
</LinearLayout> |
Loading…
Reference in new issue