Rich url link view for Android.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
art
gradle/wrapper
library Update sdk and support library version Jan 11, 2018
sample
.gitignore init Apr 1, 2016
LICENSE Add license Sep 25, 2017
README.md Update version Sep 19, 2017
_config.yml Set theme jekyll-theme-minimal Oct 26, 2017
build.gradle Update kotlin version Jan 11, 2018
gradle.properties Vup to 1.2.1 Jan 11, 2018
gradlew init Apr 1, 2016
gradlew.bat init Apr 1, 2016
settings.gradle init Apr 1, 2016

README.md

OpenGraphView

Download License

Rich url link view for Android.

defaultdefault

Usage

compile 'me.kaelaela:OpenGraphView:1.2.0@aar'
OpenGraphView ogView = new OpenGraphView();
ogView.loadFrom(url);

Attributes

<me.kaelaela.opengraphview.OpenGraphView
            android:id="@+id/og_view"
            android:layout_width="match_parent"
            android:layout_height="96dp"
            og:bgColor="@android:color/white"
            og:cornerRadius="4dp"
            og:descTextColor="@color/text_black"
            og:faviconPlaceHolder="@color/light_gray"
            og:imagePlaceHolder="@color/light_gray"
            og:separateImage="true"
            og:strokeColor="@color/light_gray"
            og:titleColor="@color/text_black"
            og:urlTextColor="@color/base_gray"
            og:imagePosition="left|right"
            />
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
  • View color
  • View size
  • Text color
  • Image position
  • Rounded view
  • Image cache
  • Enable load twitter
  • Load more metadata
  • custom parser

Me

Yuichi Maekawa(Kaelaela)

Inspired

szk-atmosphere/URLEmbeddedView

License

Copyright (C) 2016 kaelaela
Copyright (C) 2013 The Android Open Source Project

Licensed 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 at

   http://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.