Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text become ... #2

Closed
thedamfr opened this issue Dec 26, 2013 · 2 comments
Closed

Text become ... #2

thedamfr opened this issue Dec 26, 2013 · 2 comments

Comments

@thedamfr
Copy link

Hi !

I'm a big fan of the typeface attribute. Make me win a lot of time.

On a specific TextView I've some kind of side effect.

Printed text is "..." while text attribute is set to a word (in this case, "Category")

See XML :

<com.neopixl.pixlui.components.textview.TextView
                        android:id="@+id/categorie"

                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"

                        android:paddingBottom="3dp"
                        android:paddingTop="3dp"
                        android:paddingLeft="25dp"

                        android:background="@color/grey_dark"

                        android:text="Category"
                        android:textStyle="bold"
                        android:textColor="@color/white"


                        pixlui:typeface="archivoblackregular.ttf"
                        android:textAllCaps="true"
                        />

When typeface is removed, the bug doesn't appear. It might be due to onMeasure not being properly implemented.

What do you think about that ?

@odemolliens
Copy link
Contributor

Bonjour Damien ;)

I have decide to fix the ellipsizing on Android because it's really crappy. It's why we truncated by word and no by part of the word. A workaround could be to have a bigger area for your textfield.

If not, I can add a new mode with offer the choice to disable our ellipsizing mode :)

@thedamfr
Copy link
Author

Actually the text field is matching parent. There is the full screen to
print the world.
I found a workaround. Using an ellipzising textview I don't have the
problem and the world is fully printed.
Le 27 déc. 2013 13:06, "odemolliens" notifications@github.com a écrit :

Bonjour Damien ;)

I have decide to fix the ellipsizing on Android because it's really crappy.
It's why we truncated by word and no by part of the word. A workaround
could be to have a bigger area for your textfield.

If not, I can add a new mode with offer the choice to disable our
ellipsizing mode :)


Reply to this email directly or view it on
GitHubhttps://github.com//issues/2#issuecomment-31258133
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants