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

Commit b2e409a9 authored by Abhishek Aggarwal's avatar Abhishek Aggarwal Committed by Mohammed Althaf T
Browse files

feat: implementation for grid folder

parent 31a85cef
Loading
Loading
Loading
Loading
+81 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>

<!--
     Copyright (C) 2015 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.
-->
<foundation.e.bliss.folder.GridFolder xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:launcher="http://schemas.android.com/apk/res-auto"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:orientation="vertical">

    <LinearLayout
        android:id="@+id/folder_tab"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        android:orientation="vertical"
        android:paddingBottom="10dp">

        <com.android.launcher3.folder.FolderNameEditText
            android:id="@+id/folder_name"
            style="@style/TextHeadline"
            android:layout_width="match_parent"
            android:layout_height="0dp"
            android:layout_gravity="center_horizontal"
            android:layout_weight="1"
            android:background="@android:color/transparent"
            android:gravity="center"
            android:hint="@string/folder_hint_text"
            android:imeOptions="flagNoExtractUi"
            android:singleLine="true"
            android:textColor="@color/workspace_text_color_light"
            android:textColorHighlight="?android:attr/colorControlHighlight"
            android:textColorHint="@color/workspace_text_color_light" />
    </LinearLayout>

    <foundation.e.bliss.folder.GridFolderPage
        android:id="@+id/grid_folder_page"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:elevation="5dp"
        launcher:blurCornerRadius="12dp"
        launcher:blurOverlayColor="@color/e_launcher_widget_background">

        <com.android.launcher3.folder.FolderPagedView
            android:id="@+id/folder_content"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:clipToPadding="false"
            launcher:pageIndicator="@id/folder_page_indicator" />

        <LinearLayout
            android:id="@+id/folder_footer"
            android:layout_width="match_parent"
            android:layout_height="@dimen/grid_folder_footer_height"
            android:layout_gravity="bottom"
            android:clipChildren="false"
            android:paddingBottom="12dp"
            android:orientation="vertical">

            <com.android.launcher3.pageindicators.PageIndicatorDots
                android:id="@+id/folder_page_indicator"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_gravity="center_vertical"
                android:layout_weight="1" />
        </LinearLayout>
    </foundation.e.bliss.folder.GridFolderPage>
</foundation.e.bliss.folder.GridFolder>
 No newline at end of file
+3 −0
Original line number Diff line number Diff line
@@ -3,4 +3,7 @@
    <color name="search_widget_background_color">@color/e_launcher_search_background</color>
    <color name="widgetPrimaryTextColor">#FFFFFF</color>
    <color name="colorAccent">@color/e_accent_light</color>

    <color name="gridFolderPreview">@color/e_launcher_search_background</color>
    <color name="gridFolderBackground">@android:color/transparent</color>
</resources>
+5 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <dimen name="grid_folder_content_padding">12dp</dimen>
    <dimen name="grid_folder_footer_height">32dp</dimen>
</resources>
 No newline at end of file
+4 −0
Original line number Diff line number Diff line
@@ -9,4 +9,8 @@
    </string-array>

    <bool name="default_single_mode">true</bool>

    <integer name="grid_folder_icon_rows">3</integer>
    <integer name="grid_folder_icon_columns">3</integer>
    <integer name="grid_folder_app_icon_size_percentage">22</integer>
</resources>
+5 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<resources>
    <dimen name="folder_cell_x_padding">9dp</dimen>
    <dimen name="folder_cell_y_padding">10dp</dimen>
</resources>
Loading