I have create a segmented button in android , now i am bit confused about few things when a button loads. I am using android 2.2
I have 3 segmented button , and whenever a button is clicked i want to load and activity into it , 3 different activity for 3 different segmented button.
so i don;t know
1) how to handle or load activity with segmented button , or i need to switch to Tabbar for the same ?
2) Is it possible to slide the activity when the button is clicked ?
Here is the button that i have create

Note: i don’t want to use GreenDroid Library as that unnecessarily bulking up my app
Your custom button / “segmented control” looks a lot like the Holo-themed tabs. I think you want a ViewPager as introduced in http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html
Instead of 3 activities, you’ll create 3 fragments, created using a
FragmentPagerAdapter. It will handle sliding for you when button is clicked (or if user swipes left/right.)You’ll want to pay particular attention to
FragmentTabsPagerfound in http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.html and its associated layout filefragment_tabs_pager.xmlin http://developer.android.com/resources/samples/Support4Demos/res/layout/fragment_tabs_pager.html