marvinlabs / android-floatinglabel-widgets Goto Github PK
View Code? Open in Web Editor NEWFloating label input widgets
Home Page: http://marvinlabs.github.io/android-floatinglabel-widgets
License: Apache License 2.0
Floating label input widgets
Home Page: http://marvinlabs.github.io/android-floatinglabel-widgets
License: Apache License 2.0
Shall we use the new widgets (AppCompatTextView, etc.) or not? Give it a try.
If you look at the bottom of the license page (https://github.com/marvinlabs/android-floatinglabel-widgets/blob/master/LICENSE) you'll notice some fields that should be replaced
Has anyone found a way to make this widget compatible with the Sarippar Android validation library?
https://github.com/ragunathjawahar/android-saripaar
floating labels widgets looks really nice but it does not seem to be compatible with EditText which is what it is replacing.
I was just wandering if anyone has had this issue before. As I would like to keep using floating labels library. But sadly the convenience of saripaar outweighs the looks of Floating label
We can have custom layouts for the widgets. The demo should demonstrate this.
When using this library with AppCompat there is a null pointer exception which occurs
when running on API 21+. The FloatingLabelAutoCompleteTextView's AutoCompleteTextView input is
injected as an AppCompatAutoCompleteTextView by the app compat library. When
inputWidget.setDropDownBackgroundResource(popupBackground)
is called, AppCompatAutoCompleteTextView tries to get the drawable from it's internal TintManager. The TintManager is not initialized when running on 21+ because of the TintManager.SHOULD_BE_USED
is false on 21+. (See TintManager.java) (I haven't found the source for AppCompatAutoCompleteTextView online anywhere to link.)
My workaround for now is to change
inputWidget.setDropDownBackgroundResource(popupBackground); //FloatingLabelAutoCompleteTextView.java:90
to
inputWidget.setDropDownBackgroundDrawable(getContext().getDrawable(popupBackground)); //FloatingLabelAutoCompleteTextView.java:90
I want to verify that this is an AppCompat issue and not a FloatingLabelWidget issue and see if anyone has a better workaround.
I am trying to run my app using the library.
My project's min-sdk is API 15.
I dont see the label in any of the widgets. Instead see this error in the logcat
E/ResourceType Style contains key with bad entry: 0x01010479
I beleive this has something to do with the AppTheme. My theme is Theme.AppCompat.Light.DarkActionBar
Currently it is not possible to set the size of the text hint when the textview already contains text. It shrinks to a predetermined size, but the size of this text should also be customizable.
when trying to use the widget with hebrew string in app:flw_labelText, the hint is positioned with an offset to the right
(causing the text to be trunced)
also, when the widget is in focus, the label position is also with offset
layout file in this example:
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<FloatingLabelEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawablePadding="10dp"
app:flw_labelText="טקסט בעברית" />
<FloatingLabelEditText
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:flw_labelText="טקסט פשוט שאמור להיות מימין" />
</LinearLayout>
I added version 1.5.0 of the library to an application project which defines minSdkVersion 9
. When I compile the project the following error occurs:
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : uses-sdk:minSdkVersion 9 cannot be smaller than version 15 declared in library /home/user/projects/MyApp/app/build/intermediates/exploded-aar/com.marvinlabs/android-floatinglabel-widgets/1.5.0/AndroidManifest.xml
What is the reason you declared minSdkVersion 15
?
Can you backport the library?
Further, can you please explicitly state the minSdkVersion in the README.md
so people do not spent time trying to integrate it when they target a lower SDK version?
First click "Multiple item picker" select all items, then click ok.
second click "Multiple item picker" and unselect all items, then click ok.
the Multiple item picker position is uncorrect, so i want to fix it. thank you for the library again.
See pull request #1
I added the following line to the build.gradle of my app module:
compile 'com.marvinlabs:android-floatinglabel-widgets:1.5.0'
When I sync the project with Gradle the following error is shown:
Module version com.marvinlabs:android-floatinglabel-widgets:1.5.0 depends on libraries but is not a library itself
Is it possible to programmatically disable drawableLeft for pickers? This is because there is no possibility to adjust heights of Fl...EditText and FL..Picker which are placed in one row (horizontal Linearlayout) because of drawableRight...
Error:The modules 'android-floatinglabel-widgets-master', 'android-floatinglabel-widgets' point to same directory in the file system.
Each module has to have a unique path.
Error:(15, 0) No service of type Factory available in ProjectScopeServices.
Open File
can you help me ?
Integration with the Better Pickers library is very simple. The demo could show how to do that too.
I'm looking to integrate your floating label library (which looks great btw) into an app for a client and was wondering if you'd be willing to put your source under the Apache 2.0 license. Since the source is unlicensed I'm not able to use it in its current state. Here's a link to the license: http://www.apache.org/licenses/LICENSE-2.0.html
If you don't want to license it I understand, but this is pretty much the standard license for open source Android projects anyway. Thanks!
Hi,
I'm using floating labels for picking a date. But I'm trying to get rid of fragments by using flow and mortar libraries so I'm using my own dialog. Today I got next error: org.threeten.bp.DateTimeException: Invalid value for MonthOfYear (valid values 1 - 12): -1
date is (2'nd Jenuary 2015).
Looks really strange that January is -1.
Error:Failed to find: com.marvinlabs:android-floatinglabel-widgets:1.0.+
Getting this error after Sync.
It would be great if you could add the Library easily by adding the following line to the build.gradle file:
compile 'com.marvinlabs:android-floatinglabel-widgets:1.5.0+'
Currently it's throwing an error:
Error:Module version com.marvinlabs:android-floatinglabel-widgets:1.5.0 depends on libraries but is not a library itself
Bug appeared after merging of #29
@luisfernandezbr Have a look at the ItemPicker demo, you'll see that the labels are always floating. This is because getParentVisibility never returns 'VISIBLE'.
Could you have a look at it please?
Hello! Is it possible to cpecify different date format or should I write new subclass of JavaDateInstant? Thanks!
I'd like to see the option to have autocorrect active on the text widgets. Not sure how possible that is.
It seems that the text in not positionned identically vertically in the various floating label widgets :
EditText vs Pickers for example
It would be great to have setError() on the new FloatingLabelText http://goo.gl/n9LS64 , it's very useful in a form UI !
I have two ItemPickers on my layout, and I need insert items in picker2 after the user select a item in picker1. When the picker1 was not selected yet, I'd like to disable picker2.
I've tried myPicker2.setEnabled(false)
, myPicker2.setActived(false)
and myPicker2.setClickable(false)
but nothing works. The problem is, when picker2 is empty and is clicked, the app crash:
java.lang.RuntimeException: StringPickerDialogFragment needs some items to pick from
I wouldn't like to insert a empty item on picker2. Is there a way to disable ItemPickers instead?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.