Projetos
Ver no GitHub
kakajika/RelativePopupWindow
Sobre
PopupWindow do Android que pode ser facilmente posicionado em relação à View âncora.
Outros projetosCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalRelativePopupWindow
Android PopupWindow that can be easily located relative to anchor View.

How To Use
Extend RelativePopupWindow class and call showOnAnchor().
popup.showOnAnchor(anchor, VerticalPosition.ABOVE, HorizontalPosition.CENTER);
See detail example in ExampleCardPopup.kt or in Java, ExampleCardPopup.java.
Position Parameters
VerticalPosition
- ABOVE
- ALIGN_BOTTOM
- CENTER
- ALIGN_TOP
- BELOW
HorizontalPosition
- LEFT
- ALIGN_RIGHT
- CENTER
- ALIGN_LEFT
- RIGHT
Fit In Screen
If you want Popup not to fit in screen automatically, add parameter to disable it.
popup.showOnAnchor(anchor, VerticalPosition.ABOVE, HorizontalPosition.CENTER, false);
Install
This library is available in jcenter.
- for AndroidX:
implementation 'com.labo.kaji:relativepopupwindow:0.4.1'
- for legacy Support Library:
implementation 'com.labo.kaji:relativepopupwindow:0.3.1'
License
MIT License.
Explore projetos relacionados
Carregando…