Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dkmeteor/PathEffectTextView
Path effect for text.
https://github.com/dkmeteor/PathEffectTextView
Last synced: 2 months ago
JSON representation
Path effect for text.
- Host: GitHub
- URL: https://github.com/dkmeteor/PathEffectTextView
- Owner: dkmeteor
- Created: 2015-03-29T19:48:23.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-20T07:31:15.000Z (almost 8 years ago)
- Last Synced: 2023-11-07T20:14:38.491Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 283 KB
- Stars: 107
- Watchers: 3
- Forks: 19
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-android-ui - https://github.com/dkmeteor/PathEffectTextView
README
# Screenshot
Please waiting for loading the gif...
![](/path1.gif)
![](/path2.gif)
![](/path3.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:
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`](https://github.com/dkmeteor/PathEffectTextView/blob/master/Library/src/main/java/com/dk/view/patheffect/MatchPath.java), the data comes from [android-Ultra-Pull-To-Refresh](https://github.com/liaohuqiu/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 athttp://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 ByDean <[email protected]>
Weibo:http://weibo.com/u/2699012760
![](https://avatars0.githubusercontent.com/u/5019523?v=3&s=460)