Skip to content

Commit

Permalink
自定义时间轴
Browse files Browse the repository at this point in the history
  • Loading branch information
qht1003077897 committed Jul 31, 2017
1 parent a4ea959 commit 278ff41
Show file tree
Hide file tree
Showing 22 changed files with 533 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions .idea/dictionaries/QHT.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/inspectionProfiles/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

46 changes: 46 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

99 changes: 99 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
# H-Express Library--------timeline

![Platform](https://img.shields.io/badge/platform-Android-blue.svg)![Release](https://img.shields.io/badge/debug-1.0.0-orange.svg)![Gradle](https://img.shields.io/badge/gradle-2.0.0-blue.svg)[ ![Download](https://api.bintray.com/packages/qht1003077897/maven/timeline/images/download.svg) ](https://bintray.com/qht1003077897/maven/timeline/_latestVersion)

A view that mimics the timeline,you can download it when you need logistics tracking or time to record。

这是母项目 H-Express 中的那个自定义时间轴view,现抽取出来分享给大家。

[timeline APK](https://github.com/qht1003077897/timeline/tree/master/apk/app-debug.apk)

----------
## Screenshots

<a href="art/1.png"><img src="art/1.png" width="50%"/></a>

----------
## Import

```
dependencies {
compile 'com.qht1003077897.timeline:timeline:v0.1'
}
```

----------
## Clone

```
clone https://github.com/qht1003077897/timeline.git
```

----------
## Attributes


| name | format | description |
| -----|:----:| ----:|
| markerSize | dimension | 中心圆大小,单位dp |
| marker | color/reference | 圆点颜色或者图片 |
| beginLine | color/reference | 上面(左边)线段颜色或者图片 |
| endLine | color/reference | 下面(右边)线段颜色或者图片 |
| lineSize | dimension | 线段粗细,单位dp |
| oritation | boolean | 时间轴的方向,ture横向,false竖向 |

<br>

----------
## Usage

```
<com.bt.mylibrary.TimeLineMarkerView
android:id="@+id/time1"
android:layout_width="150dp"
android:layout_height="100dp"
android:paddingTop="20dp"
app:beginLine="@color/blue_sky"
app:endLine="@color/blue_sky"
app:oritation="true"
app:marker="@drawable/timeline_bg_blue"/>
```
----------
## About me

An android developer in XI'AN.

QQ: [1003077897]()
csdn:http://blog.csdn.net/u012534831

## License
-------

MIT License
Copyright (c) 2016-2018 qht1003077897

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.


---



Binary file added apk/app-debug.apk
Binary file not shown.
18 changes: 18 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Project-wide Gradle settings.

# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.

# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html

# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
# Default value: -Xmx10248m -XX:MaxPermSize=256m
# org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8

# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Mon Dec 28 10:00:20 PST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
Loading

0 comments on commit 278ff41

Please sign in to comment.