gshackles / floatlabeledentry Goto Github PK
View Code? Open in Web Editor NEWUITextField subclass with floating labels for Xamarin.iOS
License: MIT License
UITextField subclass with floating labels for Xamarin.iOS
License: MIT License
I can haz plz?
This is not a crucial issue, but if you set FloatingLabelFont
(with a bigger size) after you setted up the Placeholder
the label will be truncated with "...".
Workaroud is to set FloatingLabelFont
before or reset the Placeholder
after updating the font
Do you have a similar component to Android?
Maybe I'm blind, but I read through the code and can't find anything to configure how far the placeholder floats above the label. If I understand the code correctly, the font size should determine this also, but playing with it also gives no visible difference. Any suggestions?
I have added multiple FloatLabeledTextField as arranged view into UIStackView but it's not floating the label while start typing.
When building for actual device I get this warning:
MyApp/iOS/MTOUCH: Warning MT4146: The Name parameter of the Registrar attribute on the class 'FloatLabeledEntry.FloatLabeledTextField' contains an invalid character: ' ' (0x20) (MT4146) (MyApp.iOS)
And build fails with this error:
MyApp/iOS/MTOUCH: Error MT4109: Failed to compile the generated registrar code. Please file a bug report at http://bugzilla.xamarin.com (MT4109) (MyApp.iOS)
It builds and runs fine when targeting simulator.
It appears that changing Register attribute not to use spaces would solve the issue:
[Register ("FloatLabeledTextField"), DesignTimeVisible (true)]
public class FloatLabeledTextField : UITextField
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.