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

  • SEARCH
  • Home
  • 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 9301001
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:54:55+00:00 2026-06-18T22:54:55+00:00

I have a UI where I have added a Switch widget (introduced in API

  • 0

I have a UI where I have added a Switch widget (introduced in API 14).
The XML looks like this:

<Switch
    android:id="@+id/togglebutton"
    android:layout_margin="10dp"
    android:layout_gravity="center"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:textOff="No"
    android:textOn="Yes" />

You can see that I have specified textOn and textOff. So I expect this text on the switch widget.

However, what I get is:
enter image description here
enter image description here

Have checked everything in debugging … still don’t understand why my custom text does not appear !!

Also, the custom text appears on the Galaxy S2 (Android 4.0.4) but does not appear on 10″ Galaxy Tab also on Android 4.0.4 !!

Please help.

  • 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-06-18T22:54:56+00:00Added an answer on June 18, 2026 at 10:54 pm

    I solved it …

    The issue was that for the Galaxy tab the default theme is something else … its not Holo.Light for example !

    Once I force the theme (in my app) to inherit from the Holo.Light I got the desired result …

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

Sidebar

Related Questions

I have added an extra field Specification in Catalog->Product->Data tab. This text is stored
I have added the sdk files like dropbox website says, but I can't figure
I am working on a PHP website where I have just added a switch
I am (slowly) making the switch to vim. I have added some settings to
I have a UITabBarConroller that I use to switch between 3 different views. This
I have to do the drag navigation in Android. I have added a code
I have added some buttons with the following lines: for (int i=0; i<XML.size(); i++)
I have added stopPropagation, however, I still get two popups in a row. This
I have a gridview in my layout. I have added three imageviews to this
I have added a navigation controller inside a viewcontroller thats inside another navigation controller...

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.