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

Clipped text when height is small and API >= Lollipop #80

Open
den3000 opened this issue Jan 28, 2017 · 1 comment
Open

Clipped text when height is small and API >= Lollipop #80

den3000 opened this issue Jan 28, 2017 · 1 comment

Comments

@den3000
Copy link

den3000 commented Jan 28, 2017

When I am creating a button like this:

<mehdi.sakout.fancybuttons.FancyButton
	android:id="@+id/btComments"
	android:layout_width="64dp"
	android:layout_height="28dp"
	android:minHeight="0dp"
	android:layout_below="@id/vDevider"
	android:layout_alignParentEnd="true"
	android:layout_alignParentRight="true"
	android:layout_marginTop="-2dp"
	android:padding="0dp"
	android:minLines="1"
	android:lines="1"
	android:maxLines="1"
	android:text="@string/bt_comments"
	fancy:fb_borderWidth="1dp"
	fancy:fb_borderColor="#FF4D3121"
	fancy:fb_radius="@dimen/fb_radius"
	fancy:fb_defaultColor="@color/transp"
	fancy:fb_focusColor="#FFFE9C01"
	fancy:fb_disabledColor="@color/transp"
	fancy:fb_textColor="#FF4D3121"
	fancy:fb_disabledTextColor="@color/colorFbAccentText"
	fancy:fb_textSize="14sp"
	fancy:fb_textFont="@string/fb_text_font" />

Everything is OK on pre-lollipop devices. But on lollipop and higher I see that text of button is clipped at the button, looks like some kind of inner padding or something like that.

It could be fixed in code:
btComments.setPadding(0, 0, 0, 0);

I believe that this is a bug.

@pishguy
Copy link
Collaborator

pishguy commented Aug 9, 2017

@DaxH i send pull request for resolve this problem

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