lupidan / PopoverView

A Popover Controller for Android Tablets. It's an easy solution to simulate an iOS UIPopoverController

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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);

Sorry , I ask wrong question .I need to change the border of popOver. You can see the iPad version on the below.

I have to make this
aramasonuc

but ı got this
screenshot_2013-10-08-21-42-52

How can i make something like this.

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.

http://radleymarx.com/blog/simple-guide-to-9-patch/