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

Not able to set custom font and inner icon not visible #253

Open
nihar89 opened this issue Mar 23, 2023 · 7 comments
Open

Not able to set custom font and inner icon not visible #253

nihar89 opened this issue Mar 23, 2023 · 7 comments

Comments

@nihar89
Copy link

nihar89 commented Mar 23, 2023

This one is my button in which I am not able to see slider icon. Any suggestion?

<com.ncorti.slidetoact.SlideToActView
android:id="@+id/slideItemCollect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/cancelbuttonradius"
app:area_margin="@dimen/_2sdp"
app:border_radius="@dimen/_10sdp"
app:complete_icon="@drawable/imageorderactivefinish"
app:icon_margin="@dimen/_7sdp"
app:inner_color="@android:color/white"
app:outer_color="@android:color/transparent"
app:rotate_icon="false"
app:slider_height="@dimen/_35sdp"
app:slider_icon="@drawable/doublearrow"
app:slider_locked="false"
app:text="Done"
app:text_appearance="@font/outfitmedium"
app:text_color="@color/white" />

donebutton

@cortinico
Copy link
Owner

What is:

app:slider_icon="@drawable/doublearrow"

Can you share the drawable or a reproducer?

@nihar89
Copy link
Author

nihar89 commented Mar 23, 2023

yes, here it is.
doublearrow

I don't know why the inner icon is still round, where radius is also given.

@cortinico
Copy link
Owner

Can you create a small reproducer by sending a PR with your custom drawable to this repo?

@nihar89
Copy link
Author

nihar89 commented Mar 24, 2023

Is anything wrong in the above code? Is anything missing?

@cortinico
Copy link
Owner

Nope the code above seems correct. I'm more interested in looking into the code of your drawable. Can you share a reproducer?

@nihar89
Copy link
Author

nihar89 commented Mar 27, 2023

Yes sure, Please find necessary files and code:

colorPrimary: #302CA8
colorPrimarylight: #8382AF

2 image files, 1 drawable file and 1 xml file attached:

you can set dp value at your own. that will not affect.
doublearrow
done
cancelbuttonradius-xml.txt
testxml.txt

@cortinico
Copy link
Owner

@nihar89 Can you provide the doublearrow.xml file? Also if you could just create a branch on the sample app would be way easier without me having to manually donwload XML files and copy them over.

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