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

Doesn't work for longer inputs #1

Open
jbits opened this issue Aug 21, 2016 · 2 comments
Open

Doesn't work for longer inputs #1

jbits opened this issue Aug 21, 2016 · 2 comments

Comments

@jbits
Copy link

jbits commented Aug 21, 2016

How about You show the beginning followed by ellipses in case of a long string? Is this doable?

@chinloong
Copy link
Owner

chinloong commented Aug 26, 2016

Hello...Yes it is doable. I have updated the code to truncate the strings longer than 10 characters with "..." at the end. This is configurable by changing android:maxEms value in prefwidget_edittext.xml below
<TextView
android:id="@+id/value_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:layout_gravity="center_vertical"
android:maxEms="10"
android:singleLine="true" />

@jbits
Copy link
Author

jbits commented Aug 29, 2016

This is really cool

On Thu, Aug 25, 2016 at 10:53 PM, chinloong notifications@github.com
wrote:

Hello...Yes it is doable. I have updated the code to truncate the strings
longer than 10 characters with "..." at the end. This is configurable by
changing android:maxEms value in prefwidget_edittext.xml below
android:id="@+id/value_textview"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:layout_gravity="center_vertical"
android:maxEms="10"
android:singleLine="true" />


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#1 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ9vT_qC1u33zgkaAJNmVAxgkyuAh4sjks5qjlUwgaJpZM4JpTvA
.

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