GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dkmeteor/PathEffectTextView: Path effect for text.

BranchesTags
Open more actions menu

Latest commit

 

History

21 Commits
21 Commits

Folders and files

NameName
Last commit message
Last commit date
.idea
.idea
 
 
Library
Library
 
 
app
app
 
 
gradle/wrapper
gradle/wrapper
 
 
.gitignore
.gitignore
 
 
PathEffectTextView.iml
PathEffectTextView.iml
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
path1.gif
path1.gif
 
 
path2.gif
path2.gif
 
 
path3.gif
path3.gif
 
 
path4.gif
path4.gif
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

Screenshot

Please waiting for loading the gif...

![] (/path4.gif)

How to use

Step 1: add denpendence

compile('com.dk.view.patheffect:Library:0.1.1@aar')

If you are still using Eclipse, you can just copy source code or jar file to you project.

Step 2: add view to your layout:

<com.dk.view.patheffect.PathTextView
    android:id="@+id/path"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"/>

step 3: call init method like this:

PathTextView mPathTextView = (PathTextView) findViewById(R.id.path);
mPathTextView.init("Hello World");

Option settings:

mPathTextView.setPaintType(PathTextView.Type.MULTIPLY);
mPathTextView.setTextColor(color);
mPathTextView.setTextSize(size);
mPathTextView.setTextWeight(weight);
mPathTextView.setDuration(duration);
mPathTextView.setShadow(radius, dx, dy, shadowColor);

NOTE

  • Only Support capital letter, you can check this file for Path Data, the data comes from android-Ultra-Pull-To-Refresh

  • the size unit is px , 72 means 72px*72px.

  • the text weight unit is px.

License

Copyright 2015 Dean Ding

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.

Developed By

Dean [email protected]

Weibo:http://weibo.com/u/2699012760

About

Path effect for text.

Resources

Readme
Activity

Stars

107 stars

Watchers

3 watching

Forks

19 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.