Git Product home page Git Product logo

outlinetextview's Introduction

OutlineTextView

Android TextView with Outline/Stroke

License

Example

Example 1     
Example 2     

Quick Setup

1. Include library

Using Gradle

OutlineTextView is currently available in on Jitpack so add the following line before every other thing if you have not done that already.

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

Then add the following line

dependencies {
	implementation 'com.github.iamBedant:OutlineTextView:1.0.5'
}

Using Maven

Also add the following lines before adding the maven dependency

<repositories>
	<repository>
		   <id>jitpack.io</id>
		   <url>https://jitpack.io</url>
	</repository>
</repositories>

Then add the dependency

<dependency>
	    <groupId>com.github.iamBedant</groupId>
	    <artifactId>OutlineTextView</artifactId>
	    <version>1.0.4</version>
</dependency>

Example

<com.iambedant.text.OutlineTextView
  android:id="@+id/imageView23"
  android:layout_width="wrap_content"
  android:layout_height="wrap_content"
  android:text="2"
  android:textColor="@android:color/white"
  android:textSize="36sp"
  app:outlineColor="#53D1A1"
  app:outlineWidth="0.7" />

License

OutlineTextView is distributed under the MIT license. See LICENSE for details.

outlinetextview's People

Contributors

iambedant avatar rajsuvariya1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

outlinetextview's Issues

Autosize Not Working

TextViewCompat.setAutoSizeTextTypeUniformWithConfiguration(tv_title, 5, 21, 1, 2); is not working how can I user autosize with this library ?

Font Issue

Im adding a new font android:fontFamily="@font/grandstander_clean" but its not working ... the default font is shown

Unable to set stroke from java code.

I'm trying to dynamically change the stroke color and stroke width but it's not working on most of values it worked on setStrokeWidth(5) but it's not appropriate it filled the whole text.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.