change frame popoverView
mustafaerturk opened this issue · comments
is that possible change the frame of popoverView ?
You can set the popover size to stretch or to a certain size:
For example, to put the size 320x340 points:
popoverView.setContentSizeForViewInPopover(new Point(320, 340));
popoverView.showPopoverFromRectInViewGroup(rootView, PopoverView.getFrameForView(v), PopoverView.PopoverArrowDirectionAny, true);
You just need to correctly edit the black borders in your 9 patch image for the box. The left and top border describe what area is resized. The right and bottom borders describe where the content is placed. Please take a reading to this article explaining how the 9patch images work in Android.