summaryrefslogtreecommitdiffstats
path: root/res/layout/component_selector.xml
blob: 4529ec593026b0f4cfa0931353b5e574920d9d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?xml version="1.0" encoding="utf-8"?>

<com.cyngn.theme.chooser.ComponentSelector
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:themes="http://schemas.android.com/apk/res-auto"
    android:id="@+id/component_selector"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="bottom|left"
    android:visibility="gone"
    android:background="@color/component_selection_background">

    <FrameLayout
        android:id="@+id/selection_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content">

        <android.support.v4.view.ViewPager
            android:id="@+id/pager"
            android:layout_width="match_parent"
            android:layout_height="@dimen/component_selection_cell_height"
            themes:itemsPerPage="4"/>

        <com.viewpagerindicator.CirclePageIndicator
            android:id="@+id/page_indicator"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingTop="8dp"
            themes:radius="4dp"
            themes:spacing="16dp"
            themes:pageColor="@android:color/transparent"
            themes:fillColor="@android:color/white"/>

    </FrameLayout>

    <!-- This view will be set to gone if the device does not have a navigation bar -->
    <Space
        android:id="@+id/navbar_padding"
        android:layout_width="match_parent"
        android:layout_height="@*android:dimen/system_bar_height"/>
</com.cyngn.theme.chooser.ComponentSelector>