Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7652489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T11:47:01+00:00 2026-05-31T11:47:01+00:00

I have create a segmented button in android , now i am bit confused

  • 0

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

enter image description here

Note: i don’t want to use GreenDroid Library as that unnecessarily bulking up my app

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T11:47:03+00:00Added an answer on May 31, 2026 at 11:47 am

    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 FragmentTabsPager found in http://developer.android.com/resources/samples/Support4Demos/src/com/example/android/supportv4/app/FragmentTabsPager.html and its associated layout file fragment_tabs_pager.xml in http://developer.android.com/resources/samples/Support4Demos/res/layout/fragment_tabs_pager.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have create my own NSOpenGLView class, right now the data that i want
I've read this book section about git branches. I have create a branch called
I'm trying to create a file mapper right now, but stumbling a bit over
I have a UISegmentedControl and whenever I touch a button it should show an
I have created an up/down arrow segmented control button on the right side of
I have create name range on sheet A so I need to use this
i have create a form (so it's PHP and HTML hybrid-code). it has ability
I use TcxGrid I have create fields on execution time because I have a
This is what I currently have: CREATE OR REPLACE TRIGGER MYTRIGGER AFTER INSERT ON
I have to create a dialog based application, instead of old CFormView type of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.