siyamed / android-satellite-menu

Android Satellite Menu
1.4k stars 644 forks source link

Bottom right icon flickers #5

Open rfsbraz opened 12 years ago

rfsbraz commented 12 years ago

When I open the SatelitteMenu the second icon from the right bottom corner flickers and causes a weird effect, this does not happens if I close and open the menu several times after, but will happen again if I leave my activity and recreate the SatelitteMenu.

Is there any known fix?

guille221191 commented 11 years ago

I have experienced the same issue on my Galaxy Nexus, 4.2.2 (JDQ39). Any ideas? Thanks.

maheshchunkhade commented 11 years ago

I am also facing same problem @siyamed can you fix this problem

djhacktor commented 11 years ago

@maheshchunkhade @guille221191 the problem is with

protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
    super.onMeasure(widthMeasureSpec, heightMeasureSpec);
    recalculateMeasureDiff();

    int totalHeight = imgMain.getHeight() + satelliteDistance + measureDiff;
    int totalWidth = imgMain.getWidth() + satelliteDistance + measureDiff;
    setMeasuredDimension(totalWidth, totalHeight);
}

set the totalHeight fixed rather than changing with 'measureDiff' variable flick will go off