alokverma / circle-menu Goto Github PK
View Code? Open in Web Editor NEWThis is a view group in which you can pass list of menu items and those items will be drawn under circular path.
License: MIT License
This is a view group in which you can pass list of menu items and those items will be drawn under circular path.
License: MIT License
Hi, In the overridden function I am trying to replace the icon (replace the icon on click).
override fun onMenuItemClicked(id: Int) {
when (id) {
R.drawable.ic_baseline_delete_forever_24 -> showToast("Delete Button clicked")
R.drawable.ic_baseline_person_search_24 -> showToast("Person Button clicked")
R.drawable.ic_baseline_settings_24 -> showToast("Setting Button clicked")
R.drawable.ic_baseline_edit_location_24 -> {
showToast("Location Button clicked")
var res = findViewById(id)
res.setBackgroundResource(R.drawable.ic_baseline_settings_24)
}
}
}
I am getting the following error
FloatingActionButton: Setting a custom background is not supported.
Can you please suggest?
Thanks,
Avijit
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.possdkprodemo/com.example..}: android.view.InflateException: Binary XML file line #110: Binary XML file line #110: Error inflating class com.akki.circlemenu.CircleMenu
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2946)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3081)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1831)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:201)
at android.app.ActivityThread.main(ActivityThread.java:6810)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)
Caused by: android.view.InflateException: Binary XML file line #110: Binary XML file line #110: Error inflating class com.akki.circlemenu.CircleMenu
Caused by: android.view.InflateException: Binary XML file line #110: Error inflating class com.akki.circlemenu.CircleMenu
Caused by: java.lang.reflect.InvocationTargetException
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.