9
9
import java .util .List ;
10
10
11
11
import in .goodiebag .carouselpicker .CarouselPicker ;
12
- import in .goodiebag .example .carouselview . R ;
12
+ import in .goodiebag .example .R ;
13
13
14
14
public class MainActivity extends AppCompatActivity {
15
15
CarouselPicker imageCarousel , textCarousel , mixCarousel ;
@@ -25,10 +25,10 @@ protected void onCreate(Bundle savedInstanceState) {
25
25
tvSelected = (TextView ) findViewById (R .id .tvSelectedItem );
26
26
27
27
List <CarouselPicker .PickerItem > imageItems = new ArrayList <>();
28
- imageItems .add (new CarouselPicker .DrawableItem (R .drawable .icon_checkbox_tune ));
29
- imageItems .add (new CarouselPicker .DrawableItem (R .drawable .icon_checkbox_tune ));
30
- imageItems .add (new CarouselPicker .DrawableItem (R .drawable .icon_checkbox_tune ));
31
- imageItems .add (new CarouselPicker .DrawableItem (R .drawable .icon_checkbox_tune ));
28
+ imageItems .add (new CarouselPicker .DrawableItem (R .drawable .i1 ));
29
+ imageItems .add (new CarouselPicker .DrawableItem (R .drawable .i2 ));
30
+ imageItems .add (new CarouselPicker .DrawableItem (R .drawable .i3 ));
31
+ imageItems .add (new CarouselPicker .DrawableItem (R .drawable .i4 ));
32
32
CarouselPicker .CarouselViewAdapter imageAdapter = new CarouselPicker .CarouselViewAdapter (this , imageItems , 0 );
33
33
imageCarousel .setAdapter (imageAdapter );
34
34
@@ -41,9 +41,9 @@ protected void onCreate(Bundle savedInstanceState) {
41
41
textCarousel .setAdapter (textAdapter );
42
42
43
43
List <CarouselPicker .PickerItem > mixItems = new ArrayList <>();
44
- mixItems .add (new CarouselPicker .DrawableItem (R .drawable .icon_checkbox_tune ));
44
+ mixItems .add (new CarouselPicker .DrawableItem (R .drawable .i1 ));
45
45
mixItems .add (new CarouselPicker .TextItem ("hi" , 20 ));
46
- mixItems .add (new CarouselPicker .DrawableItem (R .drawable .icon_checkbox_tune ));
46
+ mixItems .add (new CarouselPicker .DrawableItem (R .drawable .i2 ));
47
47
mixItems .add (new CarouselPicker .TextItem ("hi" , 20 ));
48
48
49
49
CarouselPicker .CarouselViewAdapter mixAdapter = new CarouselPicker .CarouselViewAdapter (this , mixItems , 0 );
0 commit comments