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

Commit afc2d9f

Browse files
committed
1.创建工程
0 parents  commit afc2d9f

File tree

44 files changed

+1082
-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.

44 files changed

+1082
-0
lines changed

.gitignore

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/workspace.xml
5+
/.idea/libraries
6+
.DS_Store
7+
/build
8+
/captures
9+
.externalNativeBuild
10+
### Android template
11+
# Built application files
12+
*.apk
13+
*.ap_
14+
15+
# Files for the ART/Dalvik VM
16+
*.dex
17+
18+
# Java class files
19+
*.class
20+
21+
# Generated files
22+
bin/
23+
gen/
24+
out/
25+
26+
# Gradle files
27+
.gradle/
28+
build/
29+
30+
# Local configuration file (sdk path, etc)
31+
local.properties
32+
33+
# Proguard folder generated by Eclipse
34+
proguard/
35+
36+
# Log Files
37+
*.log
38+
39+
# Android Studio Navigation editor temp files
40+
.navigation/
41+
42+
# Android Studio captures folder
43+
captures/
44+
45+
# Intellij
46+
.idea
47+
48+
# Keystore files
49+
*.jks
50+
51+
# External native build folder generated in Android Studio 2.2 and later
52+
.externalNativeBuild
53+
54+
# Google Services (e.g. APIs or Firebase)
55+
google-services.json
56+
57+
# Freeline
58+
freeline.py
59+
freeline/
60+
freeline_project_description.json
61+

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#AndroidEasyDeveloper
2+
Contains
3+
dp and sp from 0 to 100
4+
Styles for some Views
5+
CenterTextView
6+
LeftCenterTextView
7+
RightCenterTextView

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+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.2"
6+
defaultConfig {
7+
applicationId "com.ayvytr.androideasydeveloper"
8+
minSdkVersion 9
9+
targetSdkVersion 25
10+
versionCode 1
11+
versionName "1.0"
12+
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
24+
exclude group: 'com.android.support', module: 'support-annotations'
25+
})
26+
compile fileTree(include: ['*.jar'], dir: 'libs')
27+
compile 'com.android.support:appcompat-v7:25.2.0'
28+
compile 'com.android.support.constraint:constraint-layout:1.0.1'
29+
testCompile 'junit:junit:4.12'
30+
compile project(':easydeveloper')
31+
}

app/proguard-rules.pro

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in C:\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+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source file name.
25+
#-renamesourcefileattribute SourceFile
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
package com.ayvytr.androideasydeveloper;
2+
3+
import android.content.Context;
4+
import android.support.test.InstrumentationRegistry;
5+
import android.support.test.runner.AndroidJUnit4;
6+
7+
import org.junit.Test;
8+
import org.junit.runner.RunWith;
9+
10+
import static org.junit.Assert.*;
11+
12+
/**
13+
* Instrumentation test, which will execute on an Android device.
14+
*
15+
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
16+
*/
17+
@RunWith(AndroidJUnit4.class)
18+
public class ExampleInstrumentedTest
19+
{
20+
@Test
21+
public void useAppContext() throws Exception
22+
{
23+
// Context of the app under test.
24+
Context appContext = InstrumentationRegistry.getTargetContext();
25+
26+
assertEquals("com.ayvytr.androideasydeveloper", appContext.getPackageName());
27+
}
28+
}

app/src/main/AndroidManifest.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest package="com.ayvytr.androideasydeveloper"
3+
xmlns:android="http://schemas.android.com/apk/res/android">
4+
5+
<application
6+
android:allowBackup="true"
7+
android:icon="@mipmap/ic_launcher"
8+
android:label="@string/app_name"
9+
android:roundIcon="@mipmap/ic_launcher_round"
10+
android:supportsRtl="true"
11+
android:theme="@style/AppTheme">
12+
<activity android:name=".MainActivity">
13+
<intent-filter>
14+
<action android:name="android.intent.action.MAIN"/>
15+
16+
<category android:name="android.intent.category.LAUNCHER"/>
17+
</intent-filter>
18+
</activity>
19+
</application>
20+
21+
</manifest>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package com.ayvytr.androideasydeveloper;
2+
3+
import android.support.v7.app.AppCompatActivity;
4+
import android.os.Bundle;
5+
6+
public class MainActivity extends AppCompatActivity
7+
{
8+
9+
@Override
10+
protected void onCreate(Bundle savedInstanceState)
11+
{
12+
super.onCreate(savedInstanceState);
13+
setContentView(R.layout.activity_main);
14+
}
15+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:layout_width="match_parent"
6+
android:layout_height="match_parent"
7+
android:orientation="vertical"
8+
android:padding="@dimen/dp_16"
9+
android:weightSum="1"
10+
tools:context="com.ayvytr.androideasydeveloper.MainActivity">
11+
12+
<TextView
13+
style="@style/MatchParent_WrapContent"
14+
android:text="aaaa"/>
15+
16+
<RadioGroup
17+
style="@style/RadioGroup_Vertical">
18+
19+
<RadioButton
20+
style="@style/RadioButton_CustomButton"
21+
android:layout_width="match_parent"
22+
android:layout_height="@dimen/dp_50"/>
23+
24+
<RadioButton
25+
style="@style/RadioButton_CustomButton"
26+
android:layout_width="match_parent"
27+
android:layout_height="@dimen/dp_50"/>
28+
29+
</RadioGroup>
30+
31+
<CheckBox
32+
android:layout_width="wrap_content"
33+
android:layout_height="wrap_content"
34+
android:text="aaa"/>
35+
36+
<com.ayvytr.easydeveloper.CenterTextView
37+
android:layout_width="match_parent"
38+
android:layout_height="50dp"
39+
android:text="aaa"/>
40+
41+
<com.ayvytr.easydeveloper.LeftCenterTextView
42+
android:layout_width="match_parent"
43+
android:layout_height="@dimen/dp_50"
44+
android:text="aaa"/>
45+
46+
<com.ayvytr.easydeveloper.RightCenterTextView
47+
android:text="bbb"
48+
android:layout_width="match_parent"
49+
android:layout_height="@dimen/dp_50"/>
50+
51+
</LinearLayout>
3.34 KB
Loading

0 commit comments

Comments
 (0)