CRED-CLUB / synth-android

Synth is CRED's inbuilt library for using Neumorphic components in your app.
https://blog.cred.club/team-cred/design/world-meet-neumorphism-open-sourcing-our-ui-framework/
Apache License 2.0
1.01k stars 106 forks source link

How to use pitview? i want the image inside pit view #9

Closed safiyaAkhtar06 closed 3 years ago

safiyaAkhtar06 commented 3 years ago

i have no idea how to use pitview, how to set it in the background of any view

nikhilpanju commented 3 years ago

Hey Safiya, you can take a look at the example here from the sample app: https://github.com/CRED-CLUB/synth-android/blob/master/sample/src/main/res/layout/fragment_main.xml

You can also use imageView.background = PitDrawable() to set it manually from code