Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaelaela/OpenGraphView
Rich url link view for Android.
https://github.com/kaelaela/OpenGraphView
android custom-view open-graph
Last synced: 5 days ago
JSON representation
Rich url link view for Android.
- Host: GitHub
- URL: https://github.com/kaelaela/OpenGraphView
- Owner: kaelaela
- License: apache-2.0
- Created: 2016-04-01T04:47:21.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-11T06:06:04.000Z (almost 7 years ago)
- Last Synced: 2024-08-02T18:41:28.005Z (3 months ago)
- Topics: android, custom-view, open-graph
- Language: Java
- Homepage: http://kaelae.la/OpenGraphView/
- Size: 13.4 MB
- Stars: 340
- Watchers: 13
- Forks: 49
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
OpenGraphView
===[![Download](https://api.bintray.com/packages/kaelaela/maven/OpenGraphView/images/download.svg) ](https://bintray.com/kaelaela/maven/OpenGraphView/_latestVersion)
[![License](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)Rich url link view for Android.
![default](art/ogview.gif)![default](art/ogview2.gif)
## Usage
```groovy
compile 'me.kaelaela:OpenGraphView:1.2.0@aar'
``````java
OpenGraphView ogView = new OpenGraphView();
ogView.loadFrom(url);
```## Attributes
```xml
```
| Attribute | Description |
|:---|:---|
| bgColor | Set background color |
| cornerRadius | Set view corner radius |
| imagePlaceHolder | Set image or drawable to image place holder |
| faviconPlaceHolder | Set image or drawable to favicon place holder |
| separateImage | Set image separator visiblity |
| strokeColor | Set stroke color |
| strokeWidth | Set stroke width |
| titleColor | Set og title text color |
| descTextColor | Set og description text color |
| urlTextColor | Set og url text color |
| imagePosition | Set image position to left or right |## Milestone
- [ ] Custom layout
- [x] View color
- [ ] View size
- [x] Text color
- [x] Image position
- [x] Rounded view
- [x] Image cache
- [x] Enable load twitter
- [ ] Load more metadata
- [x] custom parser## Me
Yuichi Maekawa(Kaelaela)
* Twitter [@kaelaela31](https://twitter.com/kaelaela31)
* [email protected]##### Inspired
[szk-atmosphere/URLEmbeddedView](https://github.com/szk-atmosphere/URLEmbeddedView)
License
-------
Copyright (C) 2016 kaelaela
Copyright (C) 2013 The Android Open Source ProjectLicensed 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.