Skip to content

Commit 5e5a000

Browse files
committed
Initial commit
0 parents  commit 5e5a000

File tree

84 files changed

+1079
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1079
-0
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild
10+
/.idea
11+
/build
12+
gradlew
13+
gradlew.bat
14+
/gradle

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# UIWidget
2+
--------------------------
3+
### 一、简介:
4+
5+
一个集成[UIAlertView](https://github.com/AriesHoo/UIAlertView)[UIActionSheetView](https://github.com/AriesHoo/UIActionSheetView)[UIProgressView](https://github.com/AriesHoo/UIProgressView)[RadiusView](https://github.com/AriesHoo/RadiusView)[TitleBarView](https://github.com/AriesHoo/TitleBarView)
6+
等项目常用UI库
7+
8+
[[Sample PC Download]](https://github.com/AriesHoo/UIWidget/blob/master/apk/sample.apk)
9+
10+
[[Sample Mobile Download]](http://fir.im/r84v)
11+
12+
![](https://github.com/AriesHoo/UIWidget/blob/master/apk/qr.png)
13+
14+
**1.1 Gradle集成**
15+
16+
```
17+
allprojects {
18+
repositories {
19+
...
20+
maven { url "https://jitpack.io" }
21+
}
22+
}
23+
```
24+
25+
```
26+
dependencies {
27+
    //compile 'com.github.AriesHoo:UIWidget:1.6.0'
28+
compile 'com.github.AriesHoo:UIWidget:${LATEST_VERSION}'
29+
}
30+
```
31+
### 二、录屏预览
32+
33+
![](https://github.com/AriesHoo/UIWidget/blob/master/screenshot/widget.gif)
34+
35+
[UIAlertView](https://github.com/AriesHoo/UIAlertView)
36+
37+
![](https://github.com/AriesHoo/UIWidget/blob/master/screenshot/alert.gif)
38+
39+
[UIActionSheetView](https://github.com/AriesHoo/UIActionSheetView)
40+
41+
![](https://github.com/AriesHoo/UIWidget/blob/master/screenshot/action.gif)
42+
43+
[UIProgressView](https://github.com/AriesHoo/UIProgressView)
44+
45+
![](https://github.com/AriesHoo/UIWidget/blob/master/screenshot/loading.gif)
46+
47+
[RadiusView](https://github.com/AriesHoo/RadiusView)
48+
49+
![](https://github.com/AriesHoo/UIWidget/blob/master/screenshot/radius.gif)
50+
51+
[TitleBarView](https://github.com/AriesHoo/TitleBarView)
52+
53+
![](https://github.com/AriesHoo/UIWidget/blob/master/screenshot/title.gif)
54+
55+

apk/qr.png

3.46 KB
Loading

apk/sample.apk

1.98 MB
Binary file not shown.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'com.neenbedankt.android-apt'
3+
4+
android {
5+
def ext = rootProject.ext
6+
compileSdkVersion ext.compileSdkVersion
7+
buildToolsVersion ext.buildToolsVersion
8+
defaultConfig {
9+
applicationId "com.aries.library.fast.demo"
10+
minSdkVersion ext.minSdkVersion
11+
targetSdkVersion ext.targetSdkVersion
12+
versionCode 1
13+
versionName "1.0.1"
14+
multiDexEnabled true
15+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
16+
}
17+
buildTypes {
18+
release {
19+
minifyEnabled false
20+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
21+
}
22+
}
23+
}
24+
25+
dependencies {
26+
compile fileTree(dir: 'libs', include: ['*.jar'])
27+
def supportVersion = rootProject.ext.supportVersion
28+
compile 'com.android.support:appcompat-v7:'.concat(supportVersion)
29+
compile 'com.android.support:recyclerview-v7:'.concat(supportVersion)
30+
compile project(':library')
31+
}

app/proguard-rules.pro

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in D:\Android\sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}

app/src/main/AndroidManifest.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.aries.library.fast.demo">
4+
5+
<uses-permission android:name="android.permission.INTERNET"/>
6+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
7+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
8+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
9+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
10+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
11+
12+
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
13+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
14+
15+
<application
16+
android:allowBackup="true"
17+
android:name=".App"
18+
android:icon="@drawable/ic_logo"
19+
android:label="@string/app_name"
20+
android:supportsRtl="true"
21+
android:theme="@style/AppTheme">
22+
<activity android:name=".MainActivity">
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN"/>
25+
26+
<category android:name="android.intent.category.LAUNCHER"/>
27+
</intent-filter>
28+
</activity>
29+
</application>
30+
31+
</manifest>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
package com.aries.library.fast.demo;
2+
3+
import android.content.Context;
4+
5+
import com.aries.library.fast.FastApplication;
6+
7+
/**
8+
* Created: AriesHoo on 2017/6/29 17:00
9+
* Function:
10+
* Desc:
11+
*/
12+
public class App extends FastApplication {
13+
14+
private static Context mContext;
15+
16+
@Override
17+
public void onCreate() {
18+
super.onCreate();
19+
mContext = this;
20+
}
21+
22+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package com.aries.library.fast.demo;
2+
3+
import android.os.Bundle;
4+
import android.support.annotation.Nullable;
5+
import android.support.v7.app.AppCompatActivity;
6+
7+
/**
8+
* Created by Aries Hoo on 2017/8/14.
9+
*/
10+
11+
public class MainActivity extends AppCompatActivity {
12+
@Override
13+
protected void onCreate(@Nullable Bundle savedInstanceState) {
14+
super.onCreate(savedInstanceState);
15+
}
16+
}
Loading
Loading
234 Bytes
Loading
271 Bytes
Loading
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<vector android:height="24dp" android:viewportHeight="1024.0"
2+
android:viewportWidth="1024.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
3+
<path android:fillColor="#393939" android:pathData="M810.7,273.1 L750.9,213.3 512,452.3 273.1,213.3 213.3,273.1 452.3,512 213.3,750.9 273.1,810.7 512,571.7 750.9,810.7 810.7,750.9 571.7,512Z"/>
4+
</vector>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<vector android:height="96dp" android:viewportHeight="1024.0"
2+
android:viewportWidth="1024.0" android:width="96dp" xmlns:android="http://schemas.android.com/apk/res/android">
3+
<path android:fillColor="#fd0d01" android:pathData="M529.1,600.2V1024h423.8V600.2H529.1zM0,1024h423.8V600.2H0V1024zM0,68.3v423.8h423.8V68.3H0zM725.3,0L423.8,298.7l298.7,301.5L1024,298.7 725.3,0z"/>
4+
</vector>
136 Bytes
Loading
135 Bytes
Loading
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<vector android:height="24dp" android:viewportHeight="1024.0"
2+
android:viewportWidth="1024.0" android:width="24dp" xmlns:android="http://schemas.android.com/apk/res/android">
3+
<path android:fillColor="#393939" android:pathData="M841.2,877.7 L115.4,877.7c-29,0 -52.6,-23.5 -52.6,-52.6L62.8,325.9c0,-29 23.5,-52.6 52.6,-52.6l151.1,0c29,0 52.6,23.5 52.6,52.6s-23.5,52.6 -52.6,52.6l-98.5,0 0,394.2 620.8,0L788.7,654.4c0,-29 23.5,-52.6 52.6,-52.6s52.6,23.5 52.6,52.6l0,170.8C893.8,854.2 870.3,877.7 841.2,877.7z"/>
4+
<path android:fillColor="#393939" android:pathData="M243.4,637.9c0,0 15.7,-160.7 146.2,-259.5C535,268.3 685.8,260.1 685.8,260.1L685.8,141.1l273.6,252.6L686,612.4l-0.3,-184.8c0,0 -151.3,12.9 -236.5,51.5C336.3,530.4 266.5,609.4 243.4,637.9z"/>
5+
</vector>
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8"?><!-- 自定义圆形progressbar的颜色和图片 -->
2+
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:fromDegrees="0"
4+
android:pivotX="50%"
5+
android:pivotY="50%"
6+
android:toDegrees="360">
7+
<shape
8+
android:innerRadiusRatio="3"
9+
android:shape="ring"
10+
android:thicknessRatio="8"
11+
android:useLevel="false">
12+
<gradient
13+
android:centerY="0.5"
14+
android:endColor="#ffffff"
15+
android:startColor="#6666ff"
16+
android:type="sweep"
17+
android:useLevel="false">
18+
19+
</gradient>
20+
<corners android:radius="4dp"/>
21+
</shape>
22+
23+
</rotate>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:layout_width="match_parent"
5+
android:layout_height="match_parent"
6+
android:background="@color/colorBackground"
7+
android:orientation="vertical">
8+
9+
</LinearLayout>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<resources>
2+
<!-- Example customization of dimensions originally defined in res/values/dimens.xml
3+
(such as screen margins) for screens with more than 820dp of available width. This
4+
would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). -->
5+
<dimen name="activity_horizontal_margin">64dp</dimen>
6+
</resources>

app/src/main/res/values/colors.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="colorPrimary">#FFFFFF</color>
4+
<color name="colorPrimaryDark">#FFFFFF</color>
5+
<color name="colorAccent">#393939</color>
6+
7+
<color name="colorItems">#524188</color>
8+
<color name="colorBackground">#f8f8f8</color>
9+
<color name="colorTitle">#FFFFFF</color>
10+
<color name="colorTextBlack">#333333</color>
11+
<color name="colorTextBlackLight">#636363</color>
12+
<color name="colorWhite">#ffffff</color>
13+
<color name="colorWhitePressed">#dcdcdc</color>
14+
</resources>

app/src/main/res/values/dimens.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<resources>
2+
<!-- Default screen margins, per the Android Design guidelines. -->
3+
<dimen name="activity_horizontal_margin">16dp</dimen>
4+
<dimen name="activity_vertical_margin">16dp</dimen>
5+
<dimen name="dp_margin">10dp</dimen>
6+
<dimen name="dp_drawer_header">110dp</dimen>
7+
<dimen name="dp_text_size_main">14dp</dimen>
8+
</resources>

app/src/main/res/values/ids.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<item name="tag_adapter_helper" type="id"></item>
4+
</resources>

app/src/main/res/values/strings.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<string name="app_name">FastLib</string>
3+
</resources>

app/src/main/res/values/styles.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<resources>
2+
3+
<!-- Base application theme. -->
4+
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
5+
<!-- Customize your theme here. -->
6+
<item name="colorPrimary">@color/colorPrimary</item>
7+
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
8+
<item name="colorAccent">@color/colorAccent</item>
9+
<item name="android:textAllCaps">false</item>
10+
<item name="android:windowDisablePreview">true</item>
11+
<item name="android:windowNoDisplay">false</item>
12+
</style>
13+
14+
</resources>

build.gradle

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// Top-level build file where you can add configuration options common to all sub-projects/modules.
2+
apply from: 'buildConfig.gradle'
3+
4+
buildscript {
5+
repositories {
6+
jcenter()
7+
}
8+
dependencies {
9+
classpath 'com.android.tools.build:gradle:2.3.3'
10+
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
11+
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
12+
// NOTE: Do not place your application dependencies here; they belong
13+
// in the individual module build.gradle files
14+
}
15+
}
16+
17+
allprojects {
18+
repositories {
19+
jcenter()
20+
maven { url "https://jitpack.io" }
21+
}
22+
}
23+
24+
task clean(type: Delete) {
25+
delete rootProject.buildDir
26+
}

buildConfig.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ext{
2+
compileSdkVersion = 25
3+
buildToolsVersion = "25.0.2"
4+
5+
minSdkVersion = 19
6+
targetSdkVersion = 25
7+
8+
supportVersion = "25.1.1"
9+
}

gradle.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Project-wide Gradle settings.
2+
3+
# IDE (e.g. Android Studio) users:
4+
# Gradle settings configured through the IDE *will override*
5+
# any settings specified in this file.
6+
7+
# For more details on how to configure your build environment visit
8+
# http://www.gradle.org/docs/current/userguide/build_environment.html
9+
10+
# Specifies the JVM arguments used for the daemon process.
11+
# The setting is particularly useful for tweaking memory settings.
12+
org.gradle.jvmargs=-Xmx1536m
13+
14+
# When configured, Gradle will run in incubating parallel mode.
15+
# This option should only be used with decoupled projects. More details, visit
16+
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
17+
# org.gradle.parallel=true

library/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

library/build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
apply plugin: 'com.android.library'
2+
apply plugin: 'com.github.dcendents.android-maven'
3+
4+
android {
5+
compileSdkVersion 25
6+
buildToolsVersion "25.0.2"
7+
8+
defaultConfig {
9+
minSdkVersion 11
10+
targetSdkVersion 25
11+
versionCode 1
12+
versionName "1.0.0"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}

0 commit comments

Comments
 (0)