All Projects → smuyyh → Bubblepopupwindow

smuyyh / Bubblepopupwindow

Licence: apache-2.0
Android 实现各个方向的气泡弹窗,可控制气泡尖角偏移量。

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Bubblepopupwindow

Bubble Picker
An easy-to-use animation which can be used for content picking for Android
Stars: ✭ 1,316 (+307.43%)
Mutual labels:  bubble
bubbly.nvim
Bubbly statusline for neovim
Stars: ✭ 185 (-42.72%)
Mutual labels:  bubble
freetron
Open-source scantron software implementation
Stars: ✭ 14 (-95.67%)
Mutual labels:  bubble
Leader Line
Draw a leader line in your web page.
Stars: ✭ 1,872 (+479.57%)
Mutual labels:  bubble
Beerprogressview
A library that lets you create a beer styled progress view with bubbles and all! (hic) 🍺
Stars: ✭ 230 (-28.79%)
Mutual labels:  bubble
bubble-layout
An Android ViewGroup that displays avatar bubbles... similar to the chat bubbles on Facebook Messenger.
Stars: ✭ 46 (-85.76%)
Mutual labels:  bubble
React Native Bubble Select
An easy-to-use customizable bubble animation picker, similar to the Apple Music genre selection
Stars: ✭ 78 (-75.85%)
Mutual labels:  bubble
Bubbleshowcase Android
BubbleShowCase is a framework that let you to use informative bubbles to help your users pointing out different App features.
Stars: ✭ 313 (-3.1%)
Mutual labels:  bubble
react-native-speech-bubble
💬 A speech bubble dialog component for React Native.
Stars: ✭ 50 (-84.52%)
Mutual labels:  bubble
BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (-90.09%)
Mutual labels:  bubble
React Native Listener
A utility component to allow easy access to browser native events
Stars: ✭ 136 (-57.89%)
Mutual labels:  bubble
Bubbleactions
An open source implementation of the long press actions in the Pinterest app.
Stars: ✭ 217 (-32.82%)
Mutual labels:  bubble
android-tutorial-bubbles
A little ui framework that displays a styled tutorial bubble, which positions and scales itself based on a given anchor view.
Stars: ✭ 20 (-93.81%)
Mutual labels:  bubble
Extract.autodesk.io
A sample showing how to extract viewables from the Autodesk OSS storage to your local machine
Stars: ✭ 97 (-69.97%)
Mutual labels:  bubble
BubbleH
⚪ Soap film implementation in Sidefx Houdini
Stars: ✭ 50 (-84.52%)
Mutual labels:  bubble
Magnetic
SpriteKit Floating Bubble Picker (inspired by Apple Music) 🧲
Stars: ✭ 1,252 (+287.62%)
Mutual labels:  bubble
iMessageBubble
A sub class of UITableViewCell to create exactly the same kind of bubbles that iMessage uses in iOS 8. Very easy to use and highly customizable.
Stars: ✭ 34 (-89.47%)
Mutual labels:  bubble
Falconmessenger
🌟🌟🌟🌟🌟 Falcon Messenger is a Fast and Beautiful cloud-based messaging app. With iOS and IPadOS Support. Available on the App Store.
Stars: ✭ 310 (-4.02%)
Mutual labels:  bubble
Popuplist
The edit menu in Android, like the UIMenuController in iOS
Stars: ✭ 296 (-8.36%)
Mutual labels:  bubble
AppleMusicAnimation
No description or website provided.
Stars: ✭ 25 (-92.26%)
Mutual labels:  bubble

BubblePopupWindow

Android 实现各个方向的气泡弹窗,可控制气泡尖角偏移量。

截图

依赖

dependencies {
    compile 'com.yuyh.bubble:library:1.0.0'
}

使用

  • 默认弹窗
BubblePopupWindow leftTopWindow = new BubblePopupWindow(MainActivity.this);
View bubbleView = inflater.inflate(R.layout.layout_popup_view, null);
TextView tvContent = (TextView) bubbleView.findViewById(R.id.tvContent);
tvContent.setText("HelloWorld");
leftTopWindow.setBubbleView(bubbleView); // 设置气泡内容
leftTopWindow.show(view, Gravity.BOTTOM, 0); // 显示弹窗
/**
 * 显示弹窗
 *
 * @param parent
 * @param gravity
 * @param bubbleOffset 气泡尖角位置偏移量。默认位于中间
 */
public void show(View parent, int gravity, float bubbleOffset) {
    // ...
}
  • 自定义弹窗 使用气泡布局
<?xml version="1.0" encoding="utf-8"?>
<com.yuyh.library.BubbleRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/brlBackground"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@android:color/transparent"
    app:cornerRadius="10"
    app:halfBaseOfLeg="18dp"
    app:padding="18dp"
    app:shadowColor="#64000000"
    app:strokeWidth="5">
    
    <!-- add view  -->

</com.yuyh.library.BubbleRelativeLayout>

然后通过PopupWindow显示气泡弹窗,当然,也可直接显示气泡布局。

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].