Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HeZaiJin/SlantedTextView
Android slanted TextView.
https://github.com/HeZaiJin/SlantedTextView
android slanted slantedtextview textview
Last synced: about 1 month ago
JSON representation
Android slanted TextView.
- Host: GitHub
- URL: https://github.com/HeZaiJin/SlantedTextView
- Owner: HeZaiJin
- Created: 2016-06-30T01:41:30.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-19T02:51:35.000Z (almost 2 years ago)
- Last Synced: 2024-09-01T03:21:48.547Z (3 months ago)
- Topics: android, slanted, slantedtextview, textview
- Language: Java
- Homepage: https://github.com/HeZaiJin/SlantedTextView
- Size: 745 KB
- Stars: 2,269
- Watchers: 49
- Forks: 330
- Open Issues: 2
-
Metadata Files:
- Readme: README-cn.md
Awesome Lists containing this project
- awesome-github-android-ui - SlantedTextView - 倾斜的TextView (TextView)
README
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-SlantedTextView-green.svg?style=true)](https://android-arsenal.com/details/1/3816)
# SlantedTextView
一个倾斜的TextView,适用于标签效果。## 预览
![预览](https://github.com/HeZaiJin/SlantedTextView/blob/master/screen_shot/screenshot.png)## Gradle
```java
compile 'com.haozhang.libary:android-slanted-textview:1.2'
```## Layout文件
```java```
## Java
代码中可以动态设置属性
```java
SlantedTextView stv = (SlantedTextView) findViewById(R.id.test);stv.setText("PHP")
.setTextColor(Color.WHITE)
.setSlantedBackgroundColor(Color.BLACK)
.setTextSize(18)
.setSlantedLength(50)
.setMode(SlantedTextView.MODE_LEFT);
```
## 属性
![注意](https://github.com/HeZaiJin/SlantedTextView/blob/master/screen_shot/note.png)
## SlantedMode
![SlantedMode](https://github.com/HeZaiJin/SlantedTextView/blob/master/screen_shot/slanted_mode.png)
# License
```
Copyright 2016 Hand HaoZhangLicensed 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.
```