Skip to content

Commit

Permalink
Add float LayoutParams in SimpleFloatViewManager
Browse files Browse the repository at this point in the history
  • Loading branch information
bauerca committed Dec 14, 2012
1 parent 64441c0 commit 89a79f1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import android.widget.ListView;
import android.widget.ImageView;
import android.view.View;
import android.view.ViewGroup;
import android.util.Log;

/**
Expand Down Expand Up @@ -59,6 +60,7 @@ public View onCreateFloatView(int position) {
mImageView.setBackgroundColor(mFloatBGColor);
mImageView.setPadding(0, 0, 0, 0);
mImageView.setImageBitmap(mFloatBitmap);
mImageView.setLayoutParams(new ViewGroup.LayoutParams(v.getWidth(), v.getHeight()));

return mImageView;
}
Expand Down

0 comments on commit 89a79f1

Please sign in to comment.