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

Commit 5e774f17 authored by Yash Garg's avatar Yash Garg 💬 Committed by Sahil Sonar
Browse files

feat(widgets): implement resize/remove on -1 page

parent f8e44c1f
Loading
Loading
Loading
Loading
+11 −1
Original line number Diff line number Diff line
@@ -7,6 +7,16 @@
        tools:ignore="ScopedStorage" />
    <uses-permission android:name="foundation.e.pwaplayer.provider.READ_WRITE" />

    <application android:icon="@mipmap/ic_launcher" />
    <application android:icon="@mipmap/ic_launcher">

        <activity
            android:name="foundation.e.bliss.widgets.WidgetsActivity"
            android:autoRemoveFromRecents="true"
            android:clearTaskOnLaunch="true"
            android:excludeFromRecents="true"
            android:exported="true"
            android:label="Remove Widgets"
            android:theme="@style/HomeSettings.Theme" />
    </application>

</manifest>
+9 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <solid android:color="@android:color/transparent" />
    <corners android:radius="14dp" />
    <stroke
        android:width="2dp"
        android:color="@color/white" />
</shape>
 No newline at end of file
+23 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 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.
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:tint="?android:attr/colorForeground">
    <solid android:color="#1f000000" />
    <size
        android:height="1dp"
        android:width="1dp" />
</shape>
+10 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item
        android:width="24dp"
        android:height="24dp"
        android:color="?android:attr/colorPrimary"
        android:drawable="@drawable/ic_remove_icon"
        android:gravity="center"
        android:padding="@dimen/widget_reconfigure_button_padding" />
</layer-list>
+5 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/all_widgets_recycler_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />
Loading