Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lguipeng/BubbleView
Bubble View
https://github.com/lguipeng/BubbleView
Last synced: 3 months ago
JSON representation
Bubble View
- Host: GitHub
- URL: https://github.com/lguipeng/BubbleView
- Owner: lguipeng
- Created: 2015-04-26T01:09:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T17:53:04.000Z (over 5 years ago)
- Last Synced: 2024-11-06T19:55:12.675Z (4 months ago)
- Language: Java
- Size: 242 KB
- Stars: 874
- Watchers: 25
- Forks: 169
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BubbleView
## Screenshot
## Import to your project
### Gradle
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}dependencies {
compile 'com.github.lguipeng:BubbleView:1.0.1'
}
```
### Or
Copy [`BubbleDrawable.java`](https://github.com/lguipeng/BubbleView/blob/master/library/src/main/java/com/github/library/bubbleview/BubbleDrawable.java) [`BubbleImageView.java`](https://github.com/lguipeng/BubbleView/blob/master/library/src/main/java/com/github/library/bubbleview/BubbleImageView.java) [`BubbleTextView.java`](https://github.com/lguipeng/BubbleView/blob/master/library/src/main/java/com/github/library/bubbleview/BubbleTextView.java) [`BubbleLinearLayout.java`](https://github.com/lguipeng/BubbleView/blob/master/library/src/main/java/com/github/library/bubbleview/BubbleLinearLayout.java) into your project.## Usage
``````
`app:arrowLocation` support `left` `right` `top` `bottom``app:arrowCenter` will make arrow center in the edge
`app:angle` is the radius of bubble view
### You can get more info from [activity_main.xml](https://github.com/lguipeng/BubbleView/blob/master/app/src/main/res/layout/activity_main.xml)
## Notice
### First
> It is recommaned to use like this when you use BubbleImageView,and this will be scaled to fit content```
```
##### Or
``````
##### But should not like this
``````
### Second
> if you want to use more bubble ViewGroup, just extend ViewGroup and realize it like [`BubbleLinearLayout.java`](https://github.com/lguipeng/BubbleView/blob/master/library/src/main/java/com/github/library/bubbleview/BubbleLinearLayout.java).## License
```
Copyright 2015 LiaoguipengLicensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```