Giter VIP home page Giter VIP logo

datetimepicker's Introduction

其人

搬砖工

datetimepicker's People

Contributors

lany192 avatar vladimirfx avatar vmilaha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

datetimepicker's Issues

Incorrect centering of text after update.

After upgrading from 1.0.6 to 1.0.9, the text in the pickers is not centered. Attached a screen with before and after. The first screenshot after the update, the second before the update
after
before

Fatal Exception: android.view.InflateException: Binary XML file line #2: Error inflating class com.lany.picker.DatePicker

It is known problem of platform for some locale/vendor combination. As workaround you may catch exception when call DateFormat.getDateFormatOrder and choose some default order.

Relevant part of stack trace:
Caused by java.lang.IllegalArgumentException: Bad pattern character 'E' in E, d MMM yyyy at libcore.icu.ICU.getDateFormatOrder(ICU.java:314) at android.text.format.DateFormat.getDateFormatOrder(DateFormat.java:389) at com.lany.picker.DatePicker.reorderNPickers(DatePicker.java:399) at com.lany.picker.DatePicker.<init>(DatePicker.java:202) at com.lany.picker.DatePicker.<init>(DatePicker.java:74) at java.lang.reflect.Constructor.newInstance(Constructor.java) at java.lang.reflect.Constructor.newInstance(Constructor.java:288) at android.view.LayoutInflater.createView(LayoutInflater.java:607) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743) at android.view.LayoutInflater.inflate(LayoutInflater.java:482) at android.view.LayoutInflater.inflate(LayoutInflater.java:414) at com.astroid.yodha.customer.ProfileFragment$onViewCreated$dateClicker$1.onClick(ProfileFragment.java:173) at com.astroid.yodha.ViewExtKt$onClickWithDebounce$1.onClick(ViewExtKt.java:52) at android.view.View.performClick(View.java:4807) at android.view.View$PerformClick.run(View.java:20106) at android.os.Handler.handleCallback(Handler.java:815) at android.os.Handler.dispatchMessage(Handler.java:104) at android.os.Looper.loop(Looper.java:194) at android.app.ActivityThread.main(ActivityThread.java:5576) at java.lang.reflect.Method.invoke(Method.java) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:955) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:750)

How to set number picker text color dynamically

Hi @lany192 , thanks for provider such convenient lib, but I can not find a way to change text color by code, such as setTextColor(int color) in NumberPicker in android-29.

Would you please upgrade lib to allow user to change text color?

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.