Skip to content

ccv_fontFamily attribute added#27

Open
faramarzaf wants to merge 1 commit into
okdroid:masterfrom
faramarzaf:master
Open

ccv_fontFamily attribute added#27
faramarzaf wants to merge 1 commit into
okdroid:masterfrom
faramarzaf:master

Conversation

@faramarzaf
Copy link
Copy Markdown

I added ccv_fontFamily attribute to the project.
You just need place your .ttf fonts in asset folder.
Then xml layout should be like this.

    <com.github.okdroid.checkablechipview.CheckableChipView
        android:id="@+id/chip2"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:ccv_fontFamily="YOUR_FONT.ttf"
        android:color="@color/colorAccent"
        android:text="Sample 2"
        app:ccv_checkedTextColor="?android:textColorPrimaryInverse"
        app:ccv_outlineColor="@color/colorAccent"
        app:ccv_outlineCornerRadius="6dp"
        app:ccv_outlineWidth="2dp" />

Screenshot_20200904-223029_CheckableChipViewDemo 1
Screenshot_20200904-223034_CheckableChipViewDemo 1

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

Successfully merging this pull request may close these issues.

1 participant