Skip to content
This repository was archived by the owner on Dec 22, 2021. It is now read-only.

Commit 63c4f6d

Browse files
committed
1.FileTool
2.IntentTool
1 parent d1f0be0 commit 63c4f6d

Some content is hidden

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

50 files changed

+6083
-6493
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
...
3232

33-
##USE
33+
##Use
3434
About Context:
3535
1.Call 'Easy.getDefault().init(this);' on your Application.onCreate();
3636
2.Call DensityTool.dp2px(...) ...

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ android {
55
buildToolsVersion "25.0.2"
66
defaultConfig {
77
applicationId "com.ayvytr.androideasydeveloper"
8-
minSdkVersion 9
8+
minSdkVersion 11
99
targetSdkVersion 25
1010
versionCode 1
1111
versionName "1.0"
@@ -26,5 +26,5 @@ dependencies {
2626
compile fileTree(include: ['*.jar'], dir: 'libs')
2727
compile 'com.android.support:appcompat-v7:25.2.0'
2828
testCompile 'junit:junit:4.12'
29-
compile project(':easydeveloper')
29+
compile project(':easyAndroidLibrary')
3030
}

app/src/androidTest/java/com/ayvytr/androideasydeveloper/ExampleInstrumentedTest.java renamed to app/src/androidTest/java/com/ayvytr/easyandroid/ExampleInstrumentedTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ayvytr.androideasydeveloper;
1+
package com.ayvytr.easyandroid;
22

33
import android.content.Context;
44
import android.support.test.InstrumentationRegistry;

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest package="com.ayvytr.androideasydeveloper"
2+
<manifest package="com.ayvytr.easyandroid"
33
xmlns:android="http://schemas.android.com/apk/res/android">
44

55
<application
@@ -9,7 +9,7 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:supportsRtl="true"
1111
android:theme="@style/AppTheme">
12-
<activity android:name=".MainActivity">
12+
<activity android:name="com.ayvytr.easyandroid.MainActivity">
1313
<intent-filter>
1414
<action android:name="android.intent.action.MAIN"/>
1515

app/src/main/java/com/ayvytr/androideasydeveloper/MainActivity.java renamed to app/src/main/java/com/ayvytr/easyandroid/MainActivity.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
package com.ayvytr.androideasydeveloper;
1+
package com.ayvytr.easyandroid;
22

33
import android.os.Bundle;
44
import android.support.v7.app.AppCompatActivity;
55
import android.view.View;
66

7-
import com.ayvytr.easydeveloper.Easy;
8-
import com.ayvytr.easydeveloper.tools.withcontext.ClipboardTool;
9-
import com.ayvytr.easydeveloper.tools.withcontext.ResTool;
10-
import com.ayvytr.easydeveloper.tools.withcontext.ToastTool;
7+
import com.ayvytr.easyandroid.tools.withcontext.ClipboardTool;
8+
import com.ayvytr.easyandroid.tools.withcontext.ResTool;
9+
import com.ayvytr.easyandroid.tools.withcontext.ToastTool;
1110

1211
public class MainActivity extends AppCompatActivity
1312
{
@@ -16,7 +15,7 @@ public class MainActivity extends AppCompatActivity
1615
protected void onCreate(Bundle savedInstanceState)
1716
{
1817
super.onCreate(savedInstanceState);
19-
setContentView(R.layout.activity_main);
18+
setContentView(com.ayvytr.easyandroidLibrary.R.layout.activity_main);
2019
Easy.getDefault().init(getApplicationContext());
2120
init();
2221
}
@@ -39,7 +38,7 @@ public void onSetClipboard(View view)
3938

4039
public void onGetAppName(View view)
4140
{
42-
String string = ResTool.getString(R.string.app_name);
41+
String string = ResTool.getString(com.ayvytr.easyandroidLibrary.R.string.app_name);
4342
ToastTool.show("获取到Res中APP名称:" + string);
4443
}
4544
}

app/src/main/res/layout/activity_main.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
android:layout_width="match_parent"
1212
android:layout_height="match_parent"
1313
android:orientation="vertical"
14-
tools:context="com.ayvytr.androideasydeveloper.MainActivity">
14+
tools:context="com.ayvytr.easyandroid.MainActivity">
1515

1616
<TextView
1717
style="@style/MatchParent_WrapContent"
@@ -37,17 +37,17 @@
3737
android:layout_height="wrap_content"
3838
android:text="aaa"/>
3939

40-
<com.ayvytr.easydeveloper.view.CenterTextView
40+
<com.ayvytr.easyandroid.view.CenterTextView
4141
android:layout_width="match_parent"
4242
android:layout_height="50dp"
4343
android:text="aaa"/>
4444

45-
<com.ayvytr.easydeveloper.view.LeftCenterTextView
45+
<com.ayvytr.easyandroid.view.LeftCenterTextView
4646
android:layout_width="match_parent"
4747
android:layout_height="@dimen/dp_50"
4848
android:text="aaa"/>
4949

50-
<com.ayvytr.easydeveloper.view.RightCenterTextView
50+
<com.ayvytr.easyandroid.view.RightCenterTextView
5151
android:layout_width="match_parent"
5252
android:layout_height="@dimen/dp_50"
5353
android:text="bbb"/>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<resources>
2-
<string name="app_name">AndroidEasyDeveloper</string>
2+
<string name="app_name">EasyAndroid</string>
33
</resources>

easydeveloper/src/test/java/com/ayvytr/easydeveloper/ExampleUnitTest.java renamed to app/src/test/java/com/ayvytr/easyandroid/ExampleUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.ayvytr.easydeveloper;
1+
package com.ayvytr.easyandroid;
22

33
import org.junit.Test;
44

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ android {
55
buildToolsVersion "25.0.2"
66

77
defaultConfig {
8-
minSdkVersion 9
8+
minSdkVersion 11
99
targetSdkVersion 25
1010
versionCode 1
1111
versionName "1.0"

0 commit comments

Comments
 (0)