Open renankaic opened 7 years ago
I'm unable to use an image that is in my Drawable folder. I'm using this code. It's correct?
TextSliderView slide1 = new TextSliderView(this); slide1 .description("Serviços") .image(new File("D:\Renan\AndroidStudioProjects\LayoutTest\app\src\main\res\drawable\servicos.jpg")); sliderShow.addSlider(slide1);
But when I compile and run in my cellphone the image shows blank. Can someone help me, please?
.image(R.drawable.servicos);
It works! Thank you!
I'm unable to use an image that is in my Drawable folder. I'm using this code. It's correct?
TextSliderView slide1 = new TextSliderView(this); slide1 .description("Serviços") .image(new File("D:\Renan\AndroidStudioProjects\LayoutTest\app\src\main\res\drawable\servicos.jpg")); sliderShow.addSlider(slide1);
But when I compile and run in my cellphone the image shows blank. Can someone help me, please?