I want to implement image slider in android similar to this . But I need to do this without any third party dependencies . Is there any sample for implementing the same using View pager , or anything else. I need the exact slider style , with dot indicator
Follow the steps below to implement the same.
Step1:
create two circle images, one for on and other for off.
Step2:
Create three blank fragments for displaying the image. you can create as many as you want.
Step3:
Create a footer.xml to place the circle indicator.
Step4:
Create a fragment_main.xml to place the viewpager.
Step5:
Create an adapter class.
Please check this http://javaant.com/viewpager-with-circle-indicator-in-android/#.Vx3_gJN96Ht
to download the complete code
Related
I want to create a vertical slider like as shown in image
slider image
Since you have an example do this:
get the .apk for that application
decompile it
try to understand how they've done it from the source code
I would like to create a android application with the following page.
I would like to create a tab UI as it is in the image. Can anyone please help me how I can replicate the same design using the tab widget and tab host.
In Short I would like to design the BUY and SELL tabs as same as it is in the Image.
Create a fragment_buy and another fragment_sell in your layout folder. Then create a Java class for each of them. Both of these fragments should run on top of your main activity
I am following below link to implement sliding menu in android.
Tutorial make your own Sliding Menu in Android
and for downloading source code i have used below link.
https://github.com/onmyway133/SlidingMenu
So i am successfully able to implement with the basic sliding menu. But my question is how can i add image with each option.
So basically i want to add image with each option like Main, Button, Checkbox etc... So how can i add image with this.
I tried with some method but not get success. Please help me.
Thank you in advance.
Use your own adaptater to the list view with custom xml for each row ,like this :
Listview tutorial
I want to create some tabs on android but I do not know if this kind of tabs is possible to create on android. If they are possible can someone give me some link to a similar tutorial or example so I can take a look how to create such tabs in android.
Here is what I'm looking for:
I need to have 2 tabs left and right, and a logo in the center that is not clickable.
You can use my library on Github it allows you to create a custom tab layout and use it. So you can create a layout which contains both image and text, and then you can modify tab according to position.
Can anyone let me know how to implement this feature specified at
http://vimeo.com/24475654
Specially i am interested to know how to give dots below images which get changed when we swipe the images. Is there inbuilt function or any open source to implement this ??
Another way to do it is by using ViewPager from android support package. Here is a tutorial on how to use it: Android User Interface Design: Horizontal View Paging
As for the 'dots' below you can refer to this custom library for a ViewPager indicator: JakeWharton / Android-ViewPagerIndicator
You can use the native Gallery to do this and extend it to look like the one you want.
It has on selected item listeners so you can simply select the dots that correspond to the selected items.
Here is a Gallery tutorial: http://developer.android.com/resources/tutorials/views/hello-gallery.html