Ramotion/circle-menu-android

error inflating com.ramotion.circlemenuview

merovic opened this issue · 9 comments

error inflating com.ramotion.circlemenuview

Any error messages?

android.view.InflateException: Binary XML file line #10: Binary XML file line #10: Error inflating class com.ramotion.circlemenu.CircleMenuView

Can you please provide part of your xml-layout, where you use CircleMenuView? I can't reproduce your error. Here is my working test layout:

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="#74009dff"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <com.ramotion.circlemenu.CircleMenuView
        android:id="@+id/circle_menu"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_gravity="center"
        app:button_colors="@array/colors"
        app:button_icons="@array/icons"/>

</FrameLayout>

Hello !! I have the same issue, I got ;
[ android.view.InflateException: Binary XML file line #0: Error inflating class com.ramotion.circlemenu.CircleMenuView"]

Any idea which the cause is ? I'm using it inside a full view of camera preview.

@jihedjaouadi can you give error logs and your xml layout?

Hello I have the same issue : [ android.view.InflateException: Binary XML file line #0: Error inflating class com.ramotion.circlemenu.CircleMenuView] any help please??

`

<com.ramotion.circlemenu.CircleMenuView
    android:id="@+id/circle_menu"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    app:button_colors="@array/colors"
    app:button_icons="@array/icons"/>

`

You need to add the buttons.xml file under res. Then assign icons to the items.

@teganburns
buttons.xml is already there in values folder but still same error

Hello, @merovic, @Pinjari, @swivermobile, @jihedjaouadi. We can't reproduce this issue. In order to resolve it, please do the following:

  1. Read the Readme of this lib more carefully and follow the steps, described there.
  2. If this issue still appears, provide us with as much detailed info as possible including source code, layout.xml and buttons.xml.

Until then this issue is considered as closed.