Giter VIP home page Giter VIP logo

Comments (2)

timroes avatar timroes commented on May 24, 2024

Yeah and it would be wrong names. Because that is exactly what these settings DON'T do, because it would be horrible for i18n. The settings lock the swiping to swiping from the text start to the text end (same as all the other Android settings for start and end values do, like paddingStart, drawableStart).
So the above names are true for left-to-right languages, but for right-to-left languages its exactly the opposite (start is on the right side and end on the left).
So naming the variables RightToLeft would be very confusing, since you cannot be sure, if I just coded crap and the settings totally ignore i18n and always lock to left-to-right no matter if you are in a LTR or RTL language, or if I just am LTR centric, and switch to start-from-end and just named the variables wrong. With the start and end values, this confusing is solved and naming style is the same as used everywhere else in the Android framework.

from enhancedlistview.

akohout avatar akohout commented on May 24, 2024

Ok, sounds plausible for me :-) Thanks for your detailed answer on this topic.

from enhancedlistview.

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.