Giter VIP home page Giter VIP logo

Comments (3)

intrications avatar intrications commented on August 22, 2024

The look of switch changed to this rectangular look in JB.

However, if you want to use the slanted look in all versions of Android then delete the res/drawable-*-v16 folders.

from android-switch-backport.

naddaf avatar naddaf commented on August 22, 2024

Many thanks.
Ali

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

Hi!

Actually this is the wanted behavior.
They changed the resources of the thumb in JB to be rectangular. You can
verify that for instance in the system settings app. So this library will
use the 'old' resources for < 4.1 and the 'new' ones (rectangular) for >=
4.1.

BoD
On Sep 14, 2012 10:59 PM, "naddaf" [email protected] wrote:

Hi.

My project should run on 2.3.3+ devices, all the way up to and including
JB. I have added your library to get the nice looking Switch control and it
works nicely. The only issue I have is that on my JB device, the look of
the Switch is not quite right; the "thumb" is a rectangle instead of having
slanted sides; it is perfectly functional but on 2.3.3, it looks like the
standard ICS Switch but on post ICS, it doesn't.

How should I do the theme so that it works nicely on pre and post ICS?

Thanks for writing this library,
Ali.


Reply to this email directly or view it on GitHubhttps://github.com//issues/5.

from android-switch-backport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.