sherifelkhatib / widgywidgets Goto Github PK
View Code? Open in Web Editor NEWNothing imp
License: Apache License 2.0
Nothing imp
License: Apache License 2.0
Hello, I am having a problem with the orientation on the DialogFragment objects when using the library with the EditTextWithCustomError to set an error.
This is the xml I am inflating :
<Button
android:id="@+id/Button_Filtrar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/editText1"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginTop="20dp"
android:gravity="center"
android:text="Test error"
android:textColor="#FFF"
android:textSize="16sp" />
<mobi.sherif.widgywidgets.EditTextWithCustomError
android:id="@+id/editText1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:ems="2"
app:ErrorDefaultBackground="@android:drawable/alert_light_frame"
app:ErrorDefaultBackgroundAbove="@android:drawable/alert_dark_frame"
app:ErrorDefaultIcon="@android:drawable/presence_busy"
app:ErrorTextColor="#f00" />
The Dialog is just doing this:
view = dialogoBusquedaOperacion.inflate(R.layout.prueba_busqueda, null);
final EditTextWithCustomError et_diaDesde = (EditTextWithCustomError)view.findViewById(R.id.editText1);
et_diaDesde.setError("This is the error I am gonna show to see the distance");
And this is what is showing the error:
As you can see, instead of showing the message on horizontal orientation, it is showing it on vertical orientation.
Do you know why there is such a problem with the orientation??
BTW, thanks a lot!! Your library is really amazing!!
I used the custom edittext,show the error, but it's not dismiss when I input someting. Is it a bug?
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.