0

I am using a bubble picker library for bubble animation and a material drawer library for navigation bar .

I am facing a issue where the bubble picker view is getting overlap with the navigation drawer.What might be the issue and how can i resolve it .

here is a bubble picker code in my layout

<com.igalata.bubblepicker.rendering.BubblePicker
    android:id="@+id/Bubblepick"
    android:layout_width="300dp"
    android:layout_height="match_parent"
    android:layout_marginLeft="50dp"
    app:backgroundColor="#f1ff78"/>

ScreenShot

Ravi Parmar
  • 968
  • 11
  • 28

2 Answers2

4

Set setZOrderOnTop(false) to bubble picker

picker = findViewById(R.id.picker);
picker.setZOrderOnTop(false);
Mahesh Babariya
  • 4,560
  • 6
  • 39
  • 54
  • 1
    Hi @i_m_mahii above given solution made my the bubbles invisible, they are thr but invisible , can you help? – akaMahesh Mar 02 '19 at 14:49
0

My first thought is that the bubble picker is being rendered on top of the drawer. What does your layout look like that includes the drawer? If the library always renders on top of everything, then you will probably need to toggle the visibility while the drawer is open using bubblePickerView.setVisibility(View.INVISIBLE)

dazza5000
  • 7,075
  • 9
  • 44
  • 89
  • My layout in drawer is very standard have some icons in the navigation bar with textview . Setting a view to Invisible is not a good option ,will make ui look strange. Any option's to make the bubble picker view below the navigation drawer? – Ravi Parmar Feb 10 '18 at 20:55
  • Post your entire layout xml – dazza5000 Feb 10 '18 at 22:10