Skip to content

Neno0o/LightTextView

Repository files navigation

LightTextView

Android Arsenal

Easy way to add textview above other views.

Download

Gradle:

compile 'com.neno0o.lighttextview:lib:1.1'

Maven:

<dependency>
  <groupId>com.neno0o.lighttextview</groupId>
  <artifactId>lib</artifactId>
  <version>1.1</version>
  <type>aar</type>
</dependency>

Usage

LightTextView extends RobotoTextView which extends TextView.

LightTextView lightTextView = new LightTextView(this);
lightTextView.setText("HD");
lightTextView.setBackgroundColor(getResources().getColor(R.color.blue));
lightTextView.setCurrentView(button);

setPosition - LEFT_CORNER default

lightTextView.setPosition(LightTextView.Position.RIGHT_CORNER);

Customize textfont using RobotoTextView

Typeface typeface = RobotoTypefaceManager.obtainTypeface(
                getApplicationContext(),
                RobotoTypefaceManager.Typeface.ROBOTO_LIGHT_ITALIC);
RobotoTextViewUtils.setTypeface(lightTextView, typeface);

License

Copyright 2015 Neno0o

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.

About

Easy way to show textview above other views

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages