Merge pull request #16739 from brave/dp_bookmark_widget_shrink_resolve

Update bookmark widget
This commit is contained in:
Deep Pandya
2023-01-19 10:16:39 -05:00
committed by GitHub
5 changed files with 0 additions and 67 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2022 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/2.0/. -->
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/bookmarks_list"
style="@style/DarkModeCompatibleVerticalScrolling"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="16dp"
android:background="@drawable/quick_action_search_and_bookmark_widget_background"
android:divider="@null"
android:drawSelectorOnTop="true"
android:listSelector="@drawable/bookmark_widget_list_selector"
android:alpha="0.9" />
@@ -1,48 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2022 The Brave Authors. All rights reserved.
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at http://mozilla.org/MPL/2.0/. -->
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="UseCompoundDrawables"
android:id="@+id/list_item"
android:layout_marginVertical="4dp"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal" >
<!-- Below textview is added to avoid unused warning for bookmark_widget_background -->
<TextView
android:layout_width="0dp"
android:layout_height="0dp"
android:visibility="gone"
android:background="@color/bookmark_widget_background" />
<ImageView
android:id="@+id/favicon"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="16dp"
tools:ignore="ContentDescription"
android:scaleType="fitCenter"
android:adjustViewBounds="true"
android:background="@drawable/quick_action_search_and_bookmark_widget_bookmark_bg" />
<TextView
android:id="@+id/title"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center_vertical"
android:paddingEnd="16dp"
android:singleLine="true"
android:textSize="24sp"
android:textAlignment="viewStart"
android:textAppearance="@style/TextAppearance.TextLarge.Primary.Baseline" />
</LinearLayout>