mirror of https://github.com/ThmmyNoLife/mTHMMY
Ezerous
2 years ago
6 changed files with 78 additions and 54 deletions
@ -1,5 +1,9 @@ |
|||||
<vector android:height="24dp" android:tint="#26A69A" |
<vector xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:viewportHeight="24" android:viewportWidth="24" |
android:width="24dp" |
||||
android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android"> |
android:height="24dp" |
||||
<path android:fillColor="@android:color/white" android:pathData="M20,18.69L7.84,6.14 5.27,3.49 4,4.76l2.8,2.8v0.01c-0.52,0.99 -0.8,2.16 -0.8,3.42v5l-2,2v1h13.73l2,2L21,19.72l-1,-1.03zM12,22c1.11,0 2,-0.89 2,-2h-4c0,1.11 0.89,2 2,2zM18,14.68L18,11c0,-3.08 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68c-0.15,0.03 -0.29,0.08 -0.42,0.12 -0.1,0.03 -0.2,0.07 -0.3,0.11h-0.01c-0.01,0 -0.01,0 -0.02,0.01 -0.23,0.09 -0.46,0.2 -0.68,0.31 0,0 -0.01,0 -0.01,0.01L18,14.68z"/> |
android:viewportWidth="24.0" |
||||
|
android:viewportHeight="24.0"> |
||||
|
<path |
||||
|
android:fillColor="#26A69A" |
||||
|
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.9,2 2,2zM18,16v-5c0,-3.07 -1.63,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.64,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2zM16,17L8,17v-6c0,-2.48 1.51,-4.5 4,-4.5s4,2.02 4,4.5v6z" /> |
||||
</vector> |
</vector> |
@ -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