Show triangle view.
Switch branches/tags
Nothing to show
Clone or download
Latest commit fb0a1df Sep 16, 2016
Permalink
Failed to load latest commit information.
app update Sep 16, 2016
gradle/wrapper update Sep 16, 2016
img initial commit Mar 19, 2016
library update Sep 16, 2016
.gitignore fix gitignore Sep 16, 2016
README.md Update README.md Sep 16, 2016
build.gradle add maven Sep 16, 2016
gradle.properties initial commit Mar 19, 2016
gradlew initial commit Mar 19, 2016
gradlew.bat initial commit Mar 19, 2016
settings.gradle initial commit Mar 19, 2016

README.md

TriangleLabelView

Show triangle view.

Android Arsenal

How to Use

To see how the TriangleLabelView are added to your xml layouts, check the sample project.

<jp.shts.android.library.TriangleLabelView
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:layout_alignParentLeft="true"
    android:layout_alignParentTop="true"
    app:backgroundColor="@color/yellow_900"
    app:corner="leftTop"
    app:labelBottomPadding="5dp"
    app:labelCenterPadding="0dp"
    app:labelTopPadding="10dp"
    app:primaryText="New"
    app:primaryTextColor="@color/yellow_500"
    app:primaryTextSize="16sp"
    app:secondaryText="01"
    app:secondaryTextColor="@color/yellow_100"
    app:secondaryTextSize="11sp" />

Install

Add it in your root build.gradle at the end of repositories:

allprojects {
		repositories {
			...
			maven { url "https://jitpack.io" }
		}
}

Add the dependency

	dependencies {
	        compile 'com.github.shts:TriangleLabelView:1.1.2'
	}

Credits

I used LabelView library by Corer as a base for development.

License

Copyright (C) 2016 Shota Saito

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.