https://github.com/lupidan/PopoverView
A Popover Controller for Android Tablets. It's an easy solution to simulate an iOS UIPopoverController
https://github.com/lupidan/PopoverView
Last synced: 13 days ago
JSON representation
A Popover Controller for Android Tablets. It's an easy solution to simulate an iOS UIPopoverController
- Host: GitHub
- URL: https://github.com/lupidan/PopoverView
- Owner: lupidan
- License: lgpl-3.0
- Created: 2012-06-20T23:37:14.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-07-18T22:02:51.000Z (over 12 years ago)
- Last Synced: 2025-04-02T02:52:44.336Z (16 days ago)
- Language: Java
- Size: 343 KB
- Stars: 202
- Watchers: 10
- Forks: 64
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-android-ui - https://github.com/lupidan/PopoverView
- awesome-android-ui - https://github.com/lupidan/PopoverView
- awesome - PopoverView - A Popover Controller for Android Tablets. It's an easy solution to simulate an iOS UIPopoverController (etc)
- awesome - PopoverView - A Popover Controller for Android Tablets. It's an easy solution to simulate an iOS UIPopoverController (etc)
README
PopoverView
===========A Popover Controller for Android Tablets. It's an easy solution to simulate an iOS UIPopoverController
Base example 9patch image comes from http://android9patch.blogspot.com.es/ :)Showing a popover controller is as easy as this
//get root layout
RelativeLayout rootView = (RelativeLayout)findViewById(R.id.rootLayout);
PopoverView popoverView = new PopoverView(this, R.layout.popover_showed_view);
popoverView.setContentSizeForViewInPopover(new Point(320, 340));
popoverView.setDelegate(this);
popoverView.showPopoverFromRectInViewGroup(rootView, PopoverView.getFrameForView(v), PopoverView.PopoverArrowDirectionAny, true);
You can set more things as well, such as the drawable arrows or the drawable background of the popover view, as well as the fade time
It also has an interface to notice when the popover appears or dismiss.


