Skip to content

Commit 89a79f1

Browse files
committed
Add float LayoutParams in SimpleFloatViewManager
1 parent 64441c0 commit 89a79f1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/com/mobeta/android/dslv/SimpleFloatViewManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import android.widget.ListView;
77
import android.widget.ImageView;
88
import android.view.View;
9+
import android.view.ViewGroup;
910
import android.util.Log;
1011

1112
/**
@@ -59,6 +60,7 @@ public View onCreateFloatView(int position) {
5960
mImageView.setBackgroundColor(mFloatBGColor);
6061
mImageView.setPadding(0, 0, 0, 0);
6162
mImageView.setImageBitmap(mFloatBitmap);
63+
mImageView.setLayoutParams(new ViewGroup.LayoutParams(v.getWidth(), v.getHeight()));
6264

6365
return mImageView;
6466
}

0 commit comments

Comments
 (0)