Skip to content

Commit

Permalink
【0.3.0】
Browse files Browse the repository at this point in the history
    add MarqueeView
    add CircleMenu
    add AnimNumberTextView
    add ThreeStateSwitch
    add SwitchIconView
    add DescProgressView
    add WavyLineView
    add CouponView
    add RippleView
  • Loading branch information
师春雷 committed Dec 10, 2017
1 parent 80ee9b8 commit 7851609
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 6 deletions.
58 changes: 55 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

- **LabelView**

角标
角标,一个简单的Android标签控件.

[原始项目地址](https://github.com/H07000223/FlycoLabelView)

Expand Down Expand Up @@ -181,7 +181,7 @@

**Version**

【0.2.2
【0.3.0

# Installation

Expand All @@ -199,9 +199,28 @@ Step 1. Add the JitPack repository to your build file
Step 2. Add the dependency

dependencies {
compile 'com.github.shichunlei:MyLibrary:0.2.2'
compile 'com.github.shichunlei:MyLibrary:0.3.0'
}

或者

Step 1. Add the JitPack repository to your build file

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

Step 2. Add the dependency

<dependency>
<groupId>com.github.shichunlei</groupId>
<artifactId>MyLibrary</artifactId>
<version>0.3.0</version>
</dependency>

# Usage

参见sample示例
Expand Down Expand Up @@ -848,6 +867,27 @@ Java

===========================================================================================

### LabelView 用法

<img src="/screenshot/preview.png">

自定义属性

|name|format|description|
|:---:|:---:|:---:|
| lv_text | string | 设置文字内容
| lv_text_color | color | 设置文字颜色,默认#ffffff
| lv_text_size | dimension | 设置文字大小,默认11sp
| lv_text_bold | boolean | 设置文字是否支持加粗,默认true
| lv_text_all_caps | boolean | 设置文字是否支持全部大写,默认true
| lv_background_color | color | 设置背景颜色,默认"#FF4081"
| lv_min_size | dimension | 设置LabelView所在矩形最小宽高,默认mFillTriangle?35dp:50dp
| lv_padding | dimension | 设置文字上下padding,默认3.5dp,mFillTriangle为true时无效
| lv_gravity | enum | 设置LabelView方向,支持左上或右上或左下或右下,默认左上
| lv_fill_triangle | boolean | 设置是否填充三角区域,默认false

===========================================================================================

### Sample 中使用到的第三方框架包括

- _[Gson](https://github.com/google/gson)_
Expand All @@ -865,6 +905,18 @@ Java

# 更新日志

【0.3.0】

add MarqueeView
add CircleMenu
add AnimNumberTextView
add ThreeStateSwitch
add SwitchIconView
add DescProgressView
add WavyLineView
add CouponView
add RippleView

【0.2.2】

更改刷新为SmartRefresh
Expand Down
4 changes: 2 additions & 2 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 26
versionCode 18
versionName "0.1.9"
versionCode 21
versionName "0.3.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
Expand Down
Binary file added sample/src/main/res/drawable/bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion sample/src/main/res/layout/activity_welcome.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
android:id="@+id/layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/colorAccent"
android:orientation="horizontal">

</LinearLayout>
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:windowAnimationStyle">@style/ActivityAnim</item>
<item name="android:windowBackground">@drawable/bg</item>
</style>

<style name="ActivityAnim" parent="@android:style/Animation.Activity">
Expand Down
Binary file added screenshot/preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7851609

Please sign in to comment.