I want to create single activity having swipable image slider and swipable tabs. But i dont have an idea how to create this. I tried ViewPager is used for full screen swipe to get next full screen. Can any body tell me how to do that.
See image which demonstrates my need. Thanks in advance :)
I'm not sure I understand the question exactly, but I think there is an official Android sample that does exactly that:
https://github.com/googlesamples/android-SlidingTabsColors/
This is at least a reasonable starting point..
Related
I would like to ask about the tinder-like swipeable card stack for my application. The point of it is that users will be able to see photos and swipe when they want to see another one. I'm already sending and receiving images to and from webservice and I have been trying some libraries that could manage to do this (googled 'swipedeck' and 'swipecard') but non of them either offered enough flexibility to customize actions fully, or were not working with ImageViews, only TextView.
Now I'm new at this, but I figured that there has to be some kind of RecyclerView, TabLayout or some other implementation that would make it possible to do this and would include also transitions/sliding effects between pictures. I just need someone to point me in the right direction.
Could you please help me by posting your ideas? It would help a lot, and I do not need any specific code parts, I will do my research later on based on your ideas. Thank you a lot!
This is the official guide on creating sliding screens using Viewpager. This should help you get started : Using Viewpager for Screen Slides
There is a project in github that does exactly that - it's called "TinderStack", and you can find it at https://github.com/lawloretienne/TinderStack
I am working on Android. I kept images in GridView. Now when I click on any image that image should display in seperate screen and from there the remaining images should also open while swiping. How can I achieve that task? Please help me in this regard.
Use a ViewPager.
The official tutorial is here: Using ViewPager for Screen Slides
Since you didn't actually explained so there can be no specific answer and here is a links you might use
1-using PageAdapter
or you can use GestureDetector witch you can search in here
hope it would be helpful .
Does any one know how to create horizontal tabs with all the tabs being loaded in the same page, i.e. when each tab is select it should be loaded in the same page without cal several activities can it be done in within a single activity use & the horizontal tabs list should not be disturbed in any case when any of the tabs are selected, friends i am need your help in this part if anybody has a code please do share,thanks in advance.
I'm not really sure if I understand you right,but here is a link to TabWidget demo which you can use to create horizontal tabs.And about the other part of your question you can use ActivityManager for this purpose.Hope it helps.
If this answer don't quit to your question, please provide some more details or examples.
I want to create a UI similar to the images shown in the links given below.
http://www.4shared.com/photo/EU1KsEPC/device1.html
http://www.4shared.com/photo/tcQMx75T/device2.html
The requirement is, when I swipe to the right, it should go to the 2nd, 3rd pages and so on. And swiping to the left should go to the previous page.
How can I create such a UI? What layout should I use?
Any help in this regard would be well appreciated with points.
Best Regards,
Rony
I think you should look into a GridView.
http://developer.android.com/guide/tutorials/views/hello-gridview.html
http://developer.android.com/resources/tutorials/views/index.html
Perhaps your looking for this answer?
Implementing Swipe action on ViewFlipper with multiple GridViews
Is it possible to change the size of the tabs displayed in a TabActivity? I'm currently only putting text in my tabs and I'd really like to minimize the size as much as possible.
Also, is there a way to use icons for my activity that aren't 48x48? I'd like to do something more rectangular as opposed to square. I just want to use my screen real-estate the best I can :)
How is the YouTube app doing this? (See screenshot, and yes I know that the YouTube app isn't open source)
It seems that they're also making it possible to scroll left and right for more tabs. Any ideas on how they're doing this?
Yest you can do all that by creating your own custom view for tab widget, it is quite simple to do. this tutorial will do the trick
http://joshclemm.com/blog/?p=136