Welcome to mirror list, hosted at ThFree Co, Russian Federation.

widget_color_chooser.xml « layout « res « main « src « app - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0a6dff94cb9439b4614ad39d83609dbd637c6f3e (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
43
44
45
46
47
48
49
50
51
52
53
54
55
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">

        <com.google.android.flexbox.FlexboxLayout
            android:id="@+id/colorPicker"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/spacer_2x"
            app:alignItems="stretch"
            app:flexWrap="wrap"
            app:justifyContent="space_between">

            <androidx.appcompat.widget.AppCompatImageView
                android:id="@+id/customColorChooser"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_marginTop="@dimen/spacer_1x"
                android:contentDescription="@string/pick_custom_color"
                app:layout_flexBasisPercent="15%"
                app:srcCompat="@drawable/circle_alpha_colorize_36dp"
                tools:tint="@color/grey600" />
        </com.google.android.flexbox.FlexboxLayout>

        <com.skydoves.colorpickerview.ColorPickerView
            android:id="@+id/customColorPicker"
            android:layout_width="200dp"
            android:layout_height="200dp"
            android:layout_gravity="center"
            android:layout_marginTop="10dp"
            android:visibility="gone"
            app:selector="@drawable/wheel"
            tools:visibility="visible" />

        <com.skydoves.colorpickerview.sliders.BrightnessSlideBar
            android:id="@+id/brightnessSlide"
            android:layout_width="200dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginTop="10dp"
            android:visibility="gone"
            app:borderColor_BrightnessSlider="@android:color/darker_gray"
            app:borderSize_BrightnessSlider="5"
            app:selector_BrightnessSlider="@drawable/wheel"
            tools:visibility="visible" />
    </LinearLayout>
</ScrollView>