activity_main.xml 4.25 KB
Newer Older
Amit Kumar's avatar
Amit Kumar committed
1
<?xml version="1.0" encoding="utf-8"?>
2
<foundation.e.blisslauncher.core.customviews.InsettableRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
4
5
6
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/workspace"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
7
    android:clipChildren="false"
8
    android:clipToPadding="false"
9
    tools:context="features.launcher.LauncherActivity">
Amit Kumar's avatar
Amit Kumar committed
10

11
12
    <foundation.e.blisslauncher.core.customviews.BlurBackgroundView
        android:id="@+id/blur_layer"
13
        android:layout_width="match_parent"
14
        android:layout_height="match_parent" />
15

Amit Kumar's avatar
Amit Kumar committed
16
    <foundation.e.blisslauncher.core.customviews.HorizontalPager
Amit Kumar's avatar
Amit Kumar committed
17
        android:id="@+id/pages_container"
Amit Kumar's avatar
Amit Kumar committed
18
19
20
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_above="@+id/page_indicator"
21
        android:layout_alignParentTop="true" />
22

Amit Kumar's avatar
Amit Kumar committed
23
    <foundation.e.blisslauncher.core.customviews.PageIndicatorLinearLayout
Amit Kumar's avatar
Amit Kumar committed
24
        android:id="@+id/page_indicator"
Amit Kumar's avatar
Amit Kumar committed
25
26
27
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@+id/dock"
Amit Kumar's avatar
Amit Kumar committed
28
        android:divider="@drawable/gap"
29
        android:gravity="center"
Amit Kumar's avatar
Amit Kumar committed
30
        android:orientation="horizontal"
31
        android:showDividers="middle" />
Amit Kumar's avatar
Amit Kumar committed
32

Amit Kumar's avatar
Amit Kumar committed
33
    <foundation.e.blisslauncher.core.customviews.DockGridLayout
Amit Kumar's avatar
Amit Kumar committed
34
        android:id="@+id/dock"
Amit Kumar's avatar
Amit Kumar committed
35
        android:layout_width="match_parent"
36
        android:layout_height="wrap_content"
Amit Kumar's avatar
Amit Kumar committed
37
        android:layout_alignParentBottom="true"
38
        android:layout_centerHorizontal="true"
Amit Kumar's avatar
Amit Kumar committed
39
        android:animateLayoutChanges="false"
Amit Kumar's avatar
Amit Kumar committed
40
        android:columnCount="@integer/col_count"
41
        android:rowCount="1" />
Amit Kumar's avatar
Amit Kumar committed
42
43

    <RelativeLayout
Amit Kumar's avatar
Amit Kumar committed
44
        android:id="@+id/folder_window_container"
Amit Kumar's avatar
Amit Kumar committed
45
46
        android:layout_width="match_parent"
        android:layout_height="match_parent"
47
        android:clickable="true"
48
49
        android:visibility="gone"
        android:focusable="true">
Amit Kumar's avatar
Amit Kumar committed
50

Amit Kumar's avatar
Amit Kumar committed
51
        <foundation.e.blisslauncher.core.customviews.BlissInput
Amit Kumar's avatar
Amit Kumar committed
52
            android:id="@+id/folder_title"
53
            android:layout_width="match_parent"
Amit Kumar's avatar
Amit Kumar committed
54
            android:layout_height="wrap_content"
55
            android:layout_above="@+id/folder_apps_background"
Amit Kumar's avatar
Amit Kumar committed
56
            android:layout_centerHorizontal="true"
Amit Kumar's avatar
Amit Kumar committed
57
58
            android:background="@null"
            android:imeOptions="actionDone"
59
            android:inputType="textNoSuggestions|textCapSentences"
60
            android:paddingTop="16dp"
Amit Kumar's avatar
Amit Kumar committed
61
            android:paddingBottom="16dp"
62
            android:text="@string/untitled"
Amit Kumar's avatar
Amit Kumar committed
63
            android:textAlignment="center"
64
            android:textCursorDrawable="@drawable/folder_title_text_cursor"
Amit Kumar's avatar
Amit Kumar committed
65
            android:textColor="@android:color/white"
66
            android:textSize="18sp" />
Amit Kumar's avatar
Amit Kumar committed
67

68
69
        <LinearLayout
            android:id="@+id/folder_apps_background"
Amit Kumar's avatar
Amit Kumar committed
70
71
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
Amit Kumar's avatar
Amit Kumar committed
72
            android:layout_centerInParent="true"
73
74
            android:background="@drawable/folder_window"
            android:orientation="vertical">
Amit Kumar's avatar
Amit Kumar committed
75

76
            <androidx.viewpager.widget.ViewPager
77
78
                android:id="@+id/folder_apps"
                android:layout_width="wrap_content"
79
                android:layout_height="wrap_content" />
80

81
82
83
84
            <me.relex.circleindicator.CircleIndicator
                android:id="@+id/indicator"
                android:layout_width="match_parent"
                android:layout_height="24dp"
85
                android:paddingBottom="4dp" />
Amit Kumar's avatar
Amit Kumar committed
86

87
        </LinearLayout>
Amit Kumar's avatar
Amit Kumar committed
88
89
90

    </RelativeLayout>

91
92
93
94
95
96
97
98
99
100
101
    <FrameLayout
        android:id="@+id/swipe_search_container"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingLeft="8dp"
        android:paddingTop="40dp"
        android:paddingRight="8dp"
        android:paddingBottom="8dp"
        android:visibility="gone">

        <include layout="@layout/layout_search_suggestion" />
102
103
    </FrameLayout>

Amit Kumar's avatar
Amit Kumar committed
104
    <ProgressBar
Amit Kumar's avatar
Amit Kumar committed
105
        android:id="@+id/progressbar"
Amit Kumar's avatar
Amit Kumar committed
106
107
108
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"
109
        android:visibility="gone" />
Amit Kumar's avatar
Amit Kumar committed
110

111
</foundation.e.blisslauncher.core.customviews.InsettableRelativeLayout>