New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Current count of the page in TextSlider? #17
Comments
I managed to solve the issue by using the below workaround: |
Ok, thanks your advise, I'll add some new method today. :-D |
Hi, bro. I think you can use this method: textSliderView.setOnSliderClickListener(new BaseSliderView.OnSliderClickListener() {
@Override
public void onSliderClick(BaseSliderView slider) {
}
}) And I added a new method |
Thanks for the new method. I'll look into its code and implementation. But, the code u mentioned wouldn't work for me as i plan to save the current slide's image via options in menu. If i implement that code, only the last picture is selected each time. As the text slider object which i pass from the method points only to the last image. |
Oh, I think I get your point. |
Hi, bro. |
Yeah. Thanks for that.
|
The code you provided seems have some small bugs.. |
Ok Thanks mate This below code if you find bug-free can be placed in SliderLayout.java for getting the current state of the AutoCycle. It will help in changing the text from "Start AutoCycle" to "Stop AutoCycle" dynamically as per the result in the Menu .
Thank you for this awesome library. I have messaged you on hangouts. If you don't mind we can interact there also. :) |
Is it possible that the Cycle stops after loosing Focus and starts again after user returns to the TextSlider? I tried below code but it didn't work
I used both the commented and the original methods after changing the access specifiers to public in SliderLayout but it didn't work. Hope you find a solution to this. |
You can use these two methods |
I also noticed that the slider will continue to move even it's in background.... |
Ok mate no issues. Even, I am trying to find a workaround for the same. getAutoCycleState():- #17 (comment) Thanks for this library and continuous support. 👍 |
Ok, I'll add these two methods today. :-D |
Hi buddy. |
So, before i solve this problem, i will not add these two method to release version considering the bugs. |
Hi, did you get a chance to work on the setCurrentPosition method. It get stuck for atleast 20 seconds when called. |
Hi all , |
pull request here, #52 |
Hey guys, @Chirag-Galani @nitin84india @RichardHan @johnjohndoe @shekibobo : I'm so sorry for being silent on this issue, cause I'm really busy last few month. I spent 15 minutes to add the new method |
If any problem, feel free to contact me. |
thx , good job, |
Thank You! :) |
Hi, I found an issue when using setCurrentPosition method when you traverse backwards. Suppose I am at slide no 1 and called .setCurrentPosition method to set current slide index to 5, it will work, but if I call .setCurrentPosition from 5th index to say 3rd then the application hangs. I'm getting the following error in doing so: |
hai, i want to get current image slider position |
Hi, |
try this code
final HashMap<String, String> file_maps = new HashMap<String, String>();
for (int i=0;i<responseBody.length();i++){
file_maps.put(obj.optString("Title"),getActivity().getResources().getString(R.string.baseurl)+
"images/"+obj.optString("image_url"));
}
for(String name : file_maps.keySet()){
TextSliderView textSliderView = new TextSliderView(getActivity());
// initialize a SliderLayout
textSliderView
.image(file_maps.get(name))
.setOnSliderClickListener(HomeFragment.this);
//add your extra information
textSliderView.bundle(new Bundle());
textSliderView.getBundle()
.putString("extra",name);
imageSlider.addSlider(textSliderView);
}
imageSlider.setPresetTransformer(SliderLayout.Transformer.Accordion);
imageSlider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);
imageSlider.setCustomAnimation(new DescriptionAnimation());
imageSlider.setDuration(3000);
imageSlider.addOnPageChangeListener(HomeFragment.this);
…On Sat, Feb 11, 2017 at 1:21 PM, akashk2512 ***@***.***> wrote:
Hi,
I have 5 Images in array and I want to show all images one by one. But I
am getting same Image in every slider. Please help me....
for (String url : BookingReq.getSelectedBooking().getBikeImagesBefore()) {
Log.d("ImagesLoopGet",url);
textSliderView.description("")
.image(url)
imageSlider.stopAutoCycle();
imageSlider.addSlider(textSliderView);
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANrslEdcQ-T_y7QeKYDena9qb1R-Ex6Mks5rbWiOgaJpZM4CKZe3>
.
|
Hi Daimajia,
Thank you for your quick response.
Problem has been solved now, I'm storing all image url in Array list and I
passed array list of image url.
Regards,
Akash Kumar
On 13-Feb-2017 10:07 am, "Arunkrishna008" <notifications@github.com> wrote:
try this code
final HashMap<String, String> file_maps = new HashMap<String, String>();
for (int i=0;i<responseBody.length();i++){
file_maps.put(obj.optString("Title"),getActivity().
getResources().getString(R.string.baseurl)+
"images/"+obj.optString("image_url"));
}
for(String name : file_maps.keySet()){
TextSliderView textSliderView = new TextSliderView(getActivity());
// initialize a SliderLayout
textSliderView
.image(file_maps.get(name))
.setOnSliderClickListener(HomeFragment.this);
//add your extra information
textSliderView.bundle(new Bundle());
textSliderView.getBundle()
.putString("extra",name);
imageSlider.addSlider(textSliderView);
}
imageSlider.setPresetTransformer(SliderLayout.Transformer.Accordion);
imageSlider.setPresetIndicator(SliderLayout.PresetIndicators.Center_Bottom);
imageSlider.setCustomAnimation(new DescriptionAnimation());
imageSlider.setDuration(3000);
imageSlider.addOnPageChangeListener(HomeFragment.this);
On Sat, Feb 11, 2017 at 1:21 PM, akashk2512 ***@***.***> wrote:
Hi,
I have 5 Images in array and I want to show all images one by one. But I
am getting same Image in every slider. Please help me....
for (String url : BookingReq.getSelectedBooking().getBikeImagesBefore()) {
Log.d("ImagesLoopGet",url);
textSliderView.description("")
.image(url)
imageSlider.stopAutoCycle();
imageSlider.addSlider(textSliderView);
}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#17#
issuecomment-279128376>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANrslEdcQ-T_
y7QeKYDena9qb1R-Ex6Mks5rbWiOgaJpZM4CKZe3>
.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ANTPk1_jlGd6rXeKf1vLFxtVjxK6IdJJks5rb94FgaJpZM4CKZe3>
.
|
I am loading all images using Picasso into TextSlider. I want to set wallpaper using onSliderClick(BaseSliderView slider) method. But, there is no such method.
I am storing all the URLs in an array. So, i need the current position so that I can pass it in array and save the particular image.
The text was updated successfully, but these errors were encountered: