Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e2d4ff6 authored by Shamali P's avatar Shamali P Committed by Shamali Patwa
Browse files

Add a 3 dot vertical menu and styles (child cl makes it functional)

Bug: 347288851
Flag: EXEMPT standalone picker
Test: Manual
Change-Id: I99985098034f6336f683b1ff3a47dce2aa8e596a
parent 8654ff01
Loading
Loading
Loading
Loading
+26 −0
Original line number Diff line number Diff line
<!--
  ~ Copyright (C) 2024 The Android Open Source Project
  ~
  ~ 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.
  -->

<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="24dp"
    android:height="24dp"
    android:viewportWidth="24"
    android:viewportHeight="24"
    android:tint="?attr/colorControlNormal">
    <path
        android:fillColor="@android:color/white"
        android:pathData="M12,8c1.1,0 2,-0.9 2,-2s-0.9,-2 -2,-2 -2,0.9 -2,2 0.9,2 2,2zM12,10c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2zM12,16c-1.1,0 -2,0.9 -2,2s0.9,2 2,2 2,-0.9 2,-2 -0.9,-2 -2,-2z" />
</vector>
 No newline at end of file
+27 −6
Original line number Diff line number Diff line
@@ -55,19 +55,40 @@
            android:clipToOutline="true"
            android:orientation="vertical">

            <FrameLayout
            <LinearLayout
                android:id="@+id/search_bar_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:orientation="horizontal"
                android:background="?attr/widgetPickerPrimarySurfaceColor"
                android:gravity="center_vertical"
                launcher:layout_sticky="true">
                <FrameLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:clipToPadding="false"
                    android:elevation="0.1dp"
                android:paddingBottom="8dp"
                launcher:layout_sticky="true">
                    android:paddingBottom="8dp">

                    <include layout="@layout/widgets_search_bar" />
                </FrameLayout>

                <ImageButton
                    android:id="@+id/widget_picker_widget_options_menu"
                    android:layout_width="48dp"
                    android:layout_height="48dp"
                    android:layout_marginStart="8dp"
                    android:layout_marginBottom="8dp"
                    android:layout_gravity="bottom"
                    android:background="@drawable/full_rounded_transparent_ripple"
                    android:contentDescription="@string/widget_picker_widget_options_button_description"
                    android:padding="12dp"
                    android:src="@drawable/ic_more_vert_dots"
                    android:visibility="gone"
                    android:tint="?attr/widgetPickerWidgetOptionsMenuColor" />
            </LinearLayout>

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
+27 −6
Original line number Diff line number Diff line
@@ -39,20 +39,41 @@
            android:clipToOutline="true"
            android:orientation="vertical">

            <FrameLayout
            <LinearLayout
                android:id="@+id/search_bar_container"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:gravity="center_vertical"
                android:orientation="horizontal"
                android:background="?attr/widgetPickerPrimarySurfaceColor"
                android:clipToPadding="false"
                android:elevation="0.1dp"
                android:paddingBottom="16dp"
                android:paddingHorizontal="@dimen/widget_list_horizontal_margin_two_pane"
                launcher:layout_sticky="true">
                <FrameLayout
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:clipToPadding="false"
                    android:elevation="0.1dp"
                    android:paddingBottom="16dp">

                    <include layout="@layout/widgets_search_bar" />
                </FrameLayout>

                <ImageButton
                    android:id="@+id/widget_picker_widget_options_menu"
                    android:layout_width="48dp"
                    android:layout_height="48dp"
                    android:layout_marginStart="8dp"
                    android:layout_marginBottom="16dp"
                    android:layout_gravity="bottom"
                    android:background="@drawable/full_rounded_transparent_ripple"
                    android:contentDescription="@string/widget_picker_widget_options_button_description"
                    android:padding="12dp"
                    android:src="@drawable/ic_more_vert_dots"
                    android:visibility="gone"
                    android:tint="?attr/widgetPickerWidgetOptionsMenuColor" />
            </LinearLayout>

            <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent"
+3 −0
Original line number Diff line number Diff line
@@ -27,4 +27,7 @@
        @android:color/system_on_surface_dark</color>
    <color name="widget_cell_subtitle_color_dark">
        @android:color/system_on_surface_variant_dark</color>
    <color name="widget_picker_menu_options_color_dark">
        @android:color/system_on_surface_variant_dark
    </color>
</resources>
+3 −0
Original line number Diff line number Diff line
@@ -27,4 +27,7 @@
        @android:color/system_on_surface_light</color>
    <color name="widget_cell_subtitle_color_light">
        @android:color/system_on_surface_variant_light</color>
    <color name="widget_picker_menu_options_color_light">
        @android:color/system_on_surface_variant_light
    </color>
</resources>
Loading