xuxiuxi
2017-05-25 7e7f99a8c753e7a2a70fd854a79bf75b861bdc66
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/*
 * Copyright (C) 2016 venshine.cn@gmail.com
 *
 * 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.
 */
package cn.com.basic.face.dialog.wheelview.common;
 
import android.graphics.Color;
 
/**
 * 滚轮常量类
 *
 * @author venshine
 */
public class WheelConstants {
 
    /**
     * 滚轮tag
     */
    public static final String TAG = "com.wx.wheelview";
 
    /**
     * 滚轮每一项的内边距
     */
    public static final int WHEEL_ITEM_PADDING = 20;
 
    /**
     * 滚轮每一项的内部控件外边距
     */
    public static final int WHEEL_ITEM_MARGIN = 20;
 
    /**
     * 滚轮每一项的图片TAG
     */
    public static final int WHEEL_ITEM_IMAGE_TAG = 100;
 
    /**
     * 滚轮每一项的文本TAG
     */
    public static final int WHEEL_ITEM_TEXT_TAG = 101;
 
    /**
     * 平滑滚动持续时间
     */
    public static final int WHEEL_SMOOTH_SCROLL_DURATION = 50;
 
    /**
     * 默认背景
     */
    public static final int WHEEL_BG = Color.WHITE;
 
    /**
     * common皮肤默认背景
     */
    public static final int WHEEL_SKIN_COMMON_BG = Color.parseColor("#dddddd");
 
    /**
     * holo皮肤默认背景
     */
    public static final int WHEEL_SKIN_HOLO_BG = Color.WHITE;
 
    /**
     * holo皮肤默认选中框颜色
     */
    public static final int WHEEL_SKIN_HOLO_BORDER_COLOR = Color.parseColor("#83cde6");
 
    /**
     * 滚轮item高度
     */
    public static final int WHEEL_ITEM_HEIGHT = 45;
 
    /**
     * 滚轮默认文本颜色
     */
    public static final int WHEEL_TEXT_COLOR = Color.BLACK;
 
    /**
     * 滚轮默认文本大小
     */
    public static final int WHEEL_TEXT_SIZE = 16;
 
    /**
     * 滚轮默认文本透明度
     */
    public static final float WHEEL_TEXT_ALPHA = 0.7f;
 
    /**
     * common皮肤默认选中框颜色
     */
    public static final int WHEEL_SKIN_COMMON_COLOR = Color.parseColor("#f0cfcfcf");
 
    /**
     * common皮肤选中框divider颜色
     */
    public static final int WHEEL_SKIN_COMMON_DIVIDER_COLOR = Color.parseColor("#b5b5b5");
 
    /**
     * common皮肤左右边框颜色
     */
    public static final int WHEEL_SKIN_COMMON_BORDER_COLOR = Color.parseColor("#666666");
 
    /**
     * 滚轮滑动时展示选中项
     */
    public static final int WHEEL_SCROLL_HANDLER_WHAT = 0x0100;
 
    /**
     * 滚轮滑动时展示选中项延迟时间
     */
    public static final int WHEEL_SCROLL_DELAY_DURATION = 300;
 
    /**
     * dialog默认颜色
     */
    public static final int DIALOG_WHEEL_COLOR = WHEEL_SKIN_HOLO_BORDER_COLOR;
 
}