SlantedTextView

SlantedTextViewSlantedTextViewAndroidslantedTextView.中文版PreviewGradlecompile’com.haozhang.libary:android-slanted-textview:1.2

SlantedTextView

Android slanted TextView . 中文版

Preview

Gradle

compile 'com.haozhang.libary:android-slanted-textview:1.2'

XML Layout

<com.haozhang.lib.SlantedTextView    android:layout_width="80dp"    android:layout_height="80dp"    android:gravity="center"    app:slantedBackgroundColor="@color/secondary_text"    app:slantedLength="40dp"    app:slantedMode="left"    app:slantedText="IOS"    app:slantedTextColor="@color/primary"    app:slantedTextSize="16sp"    />

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);

Attributes

SlantedMode

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 at   http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed 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 andlimitations under the License.

今天的文章SlantedTextView分享到此就结束了,感谢您的阅读。

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。
如需转载请保留出处:http://bianchenghao.cn/62701.html

(0)
编程小号编程小号

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注