1 |
|
package com.dreamcatcher.bicycle.view.settinglistview; |
2 |
|
|
3 |
|
import android.content.Context; |
4 |
|
import android.util.AttributeSet; |
5 |
|
import android.widget.ListView; |
6 |
|
|
7 |
|
import com.dreamcatcher.bicycle.R; |
8 |
|
import com.dreamcatcher.bicycle.util.Utils; |
9 |
|
|
|
|
| 0% |
Uncovered Elements: 15 (15) |
Complexity: 4 |
Complexity Density: 0,36 |
|
10 |
|
public class SettingListview extends ListView { |
11 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
12 |
0
|
public SettingListview(Context context, AttributeSet attrs, int defStyle) {... |
13 |
0
|
super(context, attrs, defStyle); |
14 |
0
|
init(); |
15 |
|
} |
16 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
17 |
0
|
public SettingListview(Context context, AttributeSet attrs) {... |
18 |
0
|
super(context, attrs); |
19 |
0
|
init(); |
20 |
|
} |
21 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0,5 |
|
22 |
0
|
public SettingListview(Context context) {... |
23 |
0
|
super(context); |
24 |
0
|
init(); |
25 |
|
} |
26 |
|
|
|
|
| 0% |
Uncovered Elements: 5 (5) |
Complexity: 1 |
Complexity Density: 0,2 |
|
27 |
0
|
private void init(){... |
28 |
0
|
setBackgroundResource(R.drawable.listview_bg); |
29 |
0
|
setCacheColorHint(Utils.getColor(R.color.transparent)); |
30 |
0
|
setDivider(Utils.getDrawable(R.drawable.setting_listview_divider)); |
31 |
0
|
setDividerHeight(1); |
32 |
0
|
setPadding(1, 1, 1, 1); |
33 |
|
} |
34 |
|
} |