hsiao před 7 roky
rodič
revize
3a952b25ae
51 změnil soubory, kde provedl 0 přidání a 882 odebrání
  1. 0
    9
      .gitignore
  2. 0
    22
      .idea/compiler.xml
  3. 0
    3
      .idea/copyright/profiles_settings.xml
  4. 0
    18
      .idea/gradle.xml
  5. 0
    46
      .idea/misc.xml
  6. 0
    9
      .idea/modules.xml
  7. 0
    12
      .idea/runConfigurations.xml
  8. 0
    6
      .idea/vcs.xml
  9. 0
    1
      app/.gitignore
  10. 0
    30
      app/build.gradle
  11. 0
    25
      app/proguard-rules.pro
  12. 0
    26
      app/src/androidTest/java/io/hsiao/youmap/ExampleInstrumentedTest.java
  13. 0
    24
      app/src/main/AndroidManifest.xml
  14. 0
    91
      app/src/main/java/io/hsiao/youmap/MainActivity.java
  15. 0
    14
      app/src/main/java/io/hsiao/youmap/MessageActivity.java
  16. 0
    13
      app/src/main/java/io/hsiao/youmap/MicroAppsActivity.java
  17. 0
    13
      app/src/main/java/io/hsiao/youmap/UserCenterActivity.java
  18. 0
    6
      app/src/main/res/color/primary_text_material_light.xml
  19. 0
    9
      app/src/main/res/drawable/ic_account_circle_black_24dp.xml
  20. 0
    9
      app/src/main/res/drawable/ic_apps_black_24dp.xml
  21. 0
    9
      app/src/main/res/drawable/ic_contacts_black_24dp.xml
  22. 0
    9
      app/src/main/res/drawable/ic_favorite_black_24dp.xml
  23. 0
    9
      app/src/main/res/drawable/ic_message_black_24dp.xml
  24. 0
    9
      app/src/main/res/drawable/ic_search_black_24dp.xml
  25. 0
    21
      app/src/main/res/layout/activity_main.xml
  26. 0
    12
      app/src/main/res/layout/activity_message.xml
  27. 0
    14
      app/src/main/res/layout/activity_micro_apps.xml
  28. 0
    12
      app/src/main/res/layout/activity_user_center.xml
  29. 0
    41
      app/src/main/res/layout/home_list.xml
  30. 0
    31
      app/src/main/res/menu/menu.xml
  31. binární
      app/src/main/res/mipmap-hdpi/ic_launcher.png
  32. binární
      app/src/main/res/mipmap-hdpi/ic_launcher_round.png
  33. binární
      app/src/main/res/mipmap-mdpi/ic_launcher.png
  34. binární
      app/src/main/res/mipmap-mdpi/ic_launcher_round.png
  35. binární
      app/src/main/res/mipmap-xhdpi/ic_launcher.png
  36. binární
      app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
  37. binární
      app/src/main/res/mipmap-xxhdpi/ic_launcher.png
  38. binární
      app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
  39. binární
      app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
  40. binární
      app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
  41. 0
    5
      app/src/main/res/values/colors.xml
  42. 0
    3
      app/src/main/res/values/strings.xml
  43. 0
    7
      app/src/main/res/values/styles.xml
  44. 0
    17
      app/src/test/java/io/hsiao/youmap/ExampleUnitTest.java
  45. 0
    23
      build.gradle
  46. 0
    17
      gradle.properties
  47. binární
      gradle/wrapper/gradle-wrapper.jar
  48. 0
    6
      gradle/wrapper/gradle-wrapper.properties
  49. 0
    160
      gradlew
  50. 0
    90
      gradlew.bat
  51. 0
    1
      settings.gradle

+ 0
- 9
.gitignore Zobrazit soubor

@@ -1,9 +0,0 @@
1
-*.iml
2
-.gradle
3
-/local.properties
4
-/.idea/workspace.xml
5
-/.idea/libraries
6
-.DS_Store
7
-/build
8
-/captures
9
-.externalNativeBuild

+ 0
- 22
.idea/compiler.xml Zobrazit soubor

@@ -1,22 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="CompilerConfiguration">
4
-    <resourceExtensions />
5
-    <wildcardResourcePatterns>
6
-      <entry name="!?*.java" />
7
-      <entry name="!?*.form" />
8
-      <entry name="!?*.class" />
9
-      <entry name="!?*.groovy" />
10
-      <entry name="!?*.scala" />
11
-      <entry name="!?*.flex" />
12
-      <entry name="!?*.kt" />
13
-      <entry name="!?*.clj" />
14
-      <entry name="!?*.aj" />
15
-    </wildcardResourcePatterns>
16
-    <annotationProcessing>
17
-      <profile default="true" name="Default" enabled="false">
18
-        <processorPath useClasspath="true" />
19
-      </profile>
20
-    </annotationProcessing>
21
-  </component>
22
-</project>

+ 0
- 3
.idea/copyright/profiles_settings.xml Zobrazit soubor

@@ -1,3 +0,0 @@
1
-<component name="CopyrightManager">
2
-  <settings default="" />
3
-</component>

+ 0
- 18
.idea/gradle.xml Zobrazit soubor

@@ -1,18 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="GradleSettings">
4
-    <option name="linkedExternalProjectsSettings">
5
-      <GradleProjectSettings>
6
-        <option name="distributionType" value="DEFAULT_WRAPPED" />
7
-        <option name="externalProjectPath" value="$PROJECT_DIR$" />
8
-        <option name="modules">
9
-          <set>
10
-            <option value="$PROJECT_DIR$" />
11
-            <option value="$PROJECT_DIR$/app" />
12
-          </set>
13
-        </option>
14
-        <option name="resolveModulePerSourceSet" value="false" />
15
-      </GradleProjectSettings>
16
-    </option>
17
-  </component>
18
-</project>

+ 0
- 46
.idea/misc.xml Zobrazit soubor

@@ -1,46 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="EntryPointsManager">
4
-    <entry_points version="2.0" />
5
-  </component>
6
-  <component name="NullableNotNullManager">
7
-    <option name="myDefaultNullable" value="android.support.annotation.Nullable" />
8
-    <option name="myDefaultNotNull" value="android.support.annotation.NonNull" />
9
-    <option name="myNullables">
10
-      <value>
11
-        <list size="4">
12
-          <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.Nullable" />
13
-          <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nullable" />
14
-          <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.Nullable" />
15
-          <item index="3" class="java.lang.String" itemvalue="android.support.annotation.Nullable" />
16
-        </list>
17
-      </value>
18
-    </option>
19
-    <option name="myNotNulls">
20
-      <value>
21
-        <list size="4">
22
-          <item index="0" class="java.lang.String" itemvalue="org.jetbrains.annotations.NotNull" />
23
-          <item index="1" class="java.lang.String" itemvalue="javax.annotation.Nonnull" />
24
-          <item index="2" class="java.lang.String" itemvalue="edu.umd.cs.findbugs.annotations.NonNull" />
25
-          <item index="3" class="java.lang.String" itemvalue="android.support.annotation.NonNull" />
26
-        </list>
27
-      </value>
28
-    </option>
29
-  </component>
30
-  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
31
-    <OptionsSetting value="true" id="Add" />
32
-    <OptionsSetting value="true" id="Remove" />
33
-    <OptionsSetting value="true" id="Checkout" />
34
-    <OptionsSetting value="true" id="Update" />
35
-    <OptionsSetting value="true" id="Status" />
36
-    <OptionsSetting value="true" id="Edit" />
37
-    <ConfirmationsSetting value="0" id="Add" />
38
-    <ConfirmationsSetting value="0" id="Remove" />
39
-  </component>
40
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-keyword="true" jdk-15="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
41
-    <output url="file://$PROJECT_DIR$/build/classes" />
42
-  </component>
43
-  <component name="ProjectType">
44
-    <option name="id" value="Android" />
45
-  </component>
46
-</project>

+ 0
- 9
.idea/modules.xml Zobrazit soubor

@@ -1,9 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="ProjectModuleManager">
4
-    <modules>
5
-      <module fileurl="file://$PROJECT_DIR$/YouMap.iml" filepath="$PROJECT_DIR$/YouMap.iml" />
6
-      <module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
7
-    </modules>
8
-  </component>
9
-</project>

+ 0
- 12
.idea/runConfigurations.xml Zobrazit soubor

@@ -1,12 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="RunConfigurationProducerService">
4
-    <option name="ignoredProducers">
5
-      <set>
6
-        <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" />
7
-        <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" />
8
-        <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" />
9
-      </set>
10
-    </option>
11
-  </component>
12
-</project>

+ 0
- 6
.idea/vcs.xml Zobrazit soubor

@@ -1,6 +0,0 @@
1
-<?xml version="1.0" encoding="UTF-8"?>
2
-<project version="4">
3
-  <component name="VcsDirectoryMappings">
4
-    <mapping directory="$PROJECT_DIR$" vcs="Git" />
5
-  </component>
6
-</project>

+ 0
- 1
app/.gitignore Zobrazit soubor

@@ -1 +0,0 @@
1
-/build

+ 0
- 30
app/build.gradle Zobrazit soubor

@@ -1,30 +0,0 @@
1
-apply plugin: 'com.android.application'
2
-
3
-android {
4
-    compileSdkVersion 25
5
-    buildToolsVersion "25.0.2"
6
-    defaultConfig {
7
-        applicationId "io.hsiao.youmap"
8
-        minSdkVersion 19
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
-    compile fileTree(dir: 'libs', include: ['*.jar'])
24
-    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
25
-        exclude group: 'com.android.support', module: 'support-annotations'
26
-    })
27
-    compile 'com.android.support:appcompat-v7:25.3.1'
28
-    compile 'com.android.support.constraint:constraint-layout:1.0.2'
29
-    testCompile 'junit:junit:4.12'
30
-}

+ 0
- 25
app/proguard-rules.pro Zobrazit soubor

@@ -1,25 +0,0 @@
1
-# Add project specific ProGuard rules here.
2
-# By default, the flags in this file are appended to flags specified
3
-# in E:\tools\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

+ 0
- 26
app/src/androidTest/java/io/hsiao/youmap/ExampleInstrumentedTest.java Zobrazit soubor

@@ -1,26 +0,0 @@
1
-package io.hsiao.youmap;
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
-    @Test
20
-    public void useAppContext() throws Exception {
21
-        // Context of the app under test.
22
-        Context appContext = InstrumentationRegistry.getTargetContext();
23
-
24
-        assertEquals("io.hsiao.youmap", appContext.getPackageName());
25
-    }
26
-}

+ 0
- 24
app/src/main/AndroidManifest.xml Zobrazit soubor

@@ -1,24 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3
-    package="io.hsiao.youmap">
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
-        <activity android:name=".MessageActivity" />
20
-        <activity android:name=".UserCenterActivity" />
21
-        <activity android:name=".MicroAppsActivity"></activity>
22
-    </application>
23
-
24
-</manifest>

+ 0
- 91
app/src/main/java/io/hsiao/youmap/MainActivity.java Zobrazit soubor

@@ -1,91 +0,0 @@
1
-package io.hsiao.youmap;
2
-
3
-import android.content.Intent;
4
-import android.os.Bundle;
5
-import android.support.v7.app.AppCompatActivity;
6
-import android.support.v7.widget.Toolbar;
7
-import android.util.Log;
8
-import android.view.Menu;
9
-import android.view.MenuItem;
10
-import android.widget.ArrayAdapter;
11
-import android.widget.ListView;
12
-import android.widget.SimpleAdapter;
13
-import android.widget.Toast;
14
-
15
-import java.text.SimpleDateFormat;
16
-import java.util.ArrayList;
17
-import java.util.Date;
18
-import java.util.HashMap;
19
-import java.util.List;
20
-import java.util.Map;
21
-import java.util.Objects;
22
-
23
-public class MainActivity extends AppCompatActivity {
24
-
25
-    private SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss");
26
-    private ListView listView;
27
-
28
-    @Override
29
-    protected void onCreate(Bundle savedInstanceState) {
30
-        super.onCreate(savedInstanceState);
31
-        setContentView(R.layout.activity_main);
32
-        Toolbar toolBar = (Toolbar) findViewById(R.id.toolbar);
33
-        setSupportActionBar(toolBar);
34
-        Log.i("youmap", "MainActivity创建完成");
35
-
36
-        this.createListView();
37
-    }
38
-
39
-    private void createListView() {
40
-        this.listView = (ListView) findViewById(R.id.main_listview);
41
-        this.listView.setAdapter(new SimpleAdapter(this, getData(), R.layout.home_list, new String[]{"title", "thumbnail", "date"}, new int[]{R.id.home_list_title, R.id.home_list_date, R.id.home_list_desc}));
42
-    }
43
-
44
-    private List<HashMap<String, Object>> getData() {
45
-        ArrayList list = new ArrayList();
46
-        for(int i=0;i<100;i++){
47
-            HashMap<String,String> map = new HashMap<>();
48
-            map.put("title","标题 "+i);
49
-            map.put("thumbnail","图片 "+i);
50
-            map.put("date", sdf.format(new Date()));
51
-
52
-            list.add(map);
53
-        }
54
-        return list;
55
-    }
56
-
57
-    @Override
58
-    public boolean onCreateOptionsMenu(Menu menu) {
59
-        getMenuInflater().inflate(R.menu.menu, menu);
60
-        return true;
61
-    }
62
-
63
-    @Override
64
-    public boolean onOptionsItemSelected(MenuItem item) {
65
-        Toast.makeText(this.getApplicationContext(), item.getTitle() + " " + item.getItemId(), Toast.LENGTH_LONG).show();
66
-        Intent intent = null;
67
-        switch (item.getItemId()) {
68
-            case R.id.menu_item_about:
69
-                intent = new Intent(this, MessageActivity.class);
70
-                break;
71
-            case R.id.menu_item_account:
72
-                intent = new Intent(this, UserCenterActivity.class);
73
-                break;
74
-            case R.id.menu_item_contacts:
75
-                intent = new Intent(this, MessageActivity.class);
76
-                break;
77
-            case R.id.menu_item_mapps:
78
-                intent = new Intent(this, MicroAppsActivity.class);
79
-                break;
80
-            case R.id.menu_item_message:
81
-                intent = new Intent(this, MessageActivity.class);
82
-                break;
83
-            case R.id.menu_item_search:
84
-                intent = new Intent(this, MessageActivity.class);
85
-                break;
86
-        }
87
-        startActivity(intent);
88
-
89
-        return true;
90
-    }
91
-}

+ 0
- 14
app/src/main/java/io/hsiao/youmap/MessageActivity.java Zobrazit soubor

@@ -1,14 +0,0 @@
1
-package io.hsiao.youmap;
2
-
3
-import android.app.Activity;
4
-import android.support.v7.app.AppCompatActivity;
5
-import android.os.Bundle;
6
-
7
-public class MessageActivity extends Activity {
8
-
9
-    @Override
10
-    protected void onCreate(Bundle savedInstanceState) {
11
-        super.onCreate(savedInstanceState);
12
-        setContentView(R.layout.activity_message);
13
-    }
14
-}

+ 0
- 13
app/src/main/java/io/hsiao/youmap/MicroAppsActivity.java Zobrazit soubor

@@ -1,13 +0,0 @@
1
-package io.hsiao.youmap;
2
-
3
-import android.app.Activity;
4
-import android.os.Bundle;
5
-
6
-public class MicroAppsActivity extends Activity {
7
-
8
-    @Override
9
-    protected void onCreate(Bundle savedInstanceState) {
10
-        super.onCreate(savedInstanceState);
11
-        setContentView(R.layout.activity_micro_apps);
12
-    }
13
-}

+ 0
- 13
app/src/main/java/io/hsiao/youmap/UserCenterActivity.java Zobrazit soubor

@@ -1,13 +0,0 @@
1
-package io.hsiao.youmap;
2
-
3
-import android.app.Activity;
4
-import android.os.Bundle;
5
-
6
-public class UserCenterActivity extends Activity {
7
-
8
-    @Override
9
-    protected void onCreate(Bundle savedInstanceState) {
10
-        super.onCreate(savedInstanceState);
11
-        setContentView(R.layout.activity_user_center);
12
-    }
13
-}

+ 0
- 6
app/src/main/res/color/primary_text_material_light.xml Zobrazit soubor

@@ -1,6 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-<selector xmlns:android="http://schemas.android.com/apk/res/android">
3
-
4
-    <item android:state_enabled="false" android:alpha="0.03" android:color="@color/primary_text_default_material_light" />
5
-    <item android:color="@color/primary_text_default_material_light" />
6
-</selector>

+ 0
- 9
app/src/main/res/drawable/ic_account_circle_black_24dp.xml Zobrazit soubor

@@ -1,9 +0,0 @@
1
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
2
-        android:width="24dp"
3
-        android:height="24dp"
4
-        android:viewportWidth="24.0"
5
-        android:viewportHeight="24.0">
6
-    <path
7
-        android:fillColor="#FF000000"
8
-        android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM12,5c1.66,0 3,1.34 3,3s-1.34,3 -3,3 -3,-1.34 -3,-3 1.34,-3 3,-3zM12,19.2c-2.5,0 -4.71,-1.28 -6,-3.22 0.03,-1.99 4,-3.08 6,-3.08 1.99,0 5.97,1.09 6,3.08 -1.29,1.94 -3.5,3.22 -6,3.22z"/>
9
-</vector>

+ 0
- 9
app/src/main/res/drawable/ic_apps_black_24dp.xml Zobrazit soubor

@@ -1,9 +0,0 @@
1
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
2
-        android:width="24dp"
3
-        android:height="24dp"
4
-        android:viewportWidth="24.0"
5
-        android:viewportHeight="24.0">
6
-    <path
7
-        android:fillColor="#FF000000"
8
-        android:pathData="M4,8h4L8,4L4,4v4zM10,20h4v-4h-4v4zM4,20h4v-4L4,16v4zM4,14h4v-4L4,10v4zM10,14h4v-4h-4v4zM16,4v4h4L20,4h-4zM10,8h4L14,4h-4v4zM16,14h4v-4h-4v4zM16,20h4v-4h-4v4z"/>
9
-</vector>

+ 0
- 9
app/src/main/res/drawable/ic_contacts_black_24dp.xml Zobrazit soubor

@@ -1,9 +0,0 @@
1
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
2
-        android:width="24dp"
3
-        android:height="24dp"
4
-        android:viewportWidth="24.0"
5
-        android:viewportHeight="24.0">
6
-    <path
7
-        android:fillColor="#FF000000"
8
-        android:pathData="M20,0L4,0v2h16L20,0zM4,24h16v-2L4,22v2zM20,4L4,4c-1.1,0 -2,0.9 -2,2v12c0,1.1 0.9,2 2,2h16c1.1,0 2,-0.9 2,-2L22,6c0,-1.1 -0.9,-2 -2,-2zM12,6.75c1.24,0 2.25,1.01 2.25,2.25s-1.01,2.25 -2.25,2.25S9.75,10.24 9.75,9 10.76,6.75 12,6.75zM17,17L7,17v-1.5c0,-1.67 3.33,-2.5 5,-2.5s5,0.83 5,2.5L17,17z"/>
9
-</vector>

+ 0
- 9
app/src/main/res/drawable/ic_favorite_black_24dp.xml Zobrazit soubor

@@ -1,9 +0,0 @@
1
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
2
-        android:width="24dp"
3
-        android:height="24dp"
4
-        android:viewportWidth="24.0"
5
-        android:viewportHeight="24.0">
6
-    <path
7
-        android:fillColor="#FF000000"
8
-        android:pathData="M12,21.35l-1.45,-1.32C5.4,15.36 2,12.28 2,8.5 2,5.42 4.42,3 7.5,3c1.74,0 3.41,0.81 4.5,2.09C13.09,3.81 14.76,3 16.5,3 19.58,3 22,5.42 22,8.5c0,3.78 -3.4,6.86 -8.55,11.54L12,21.35z"/>
9
-</vector>

+ 0
- 9
app/src/main/res/drawable/ic_message_black_24dp.xml Zobrazit soubor

@@ -1,9 +0,0 @@
1
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
2
-        android:width="24dp"
3
-        android:height="24dp"
4
-        android:viewportWidth="24.0"
5
-        android:viewportHeight="24.0">
6
-    <path
7
-        android:fillColor="#FF000000"
8
-        android:pathData="M20,2L4,2c-1.1,0 -1.99,0.9 -1.99,2L2,22l4,-4h14c1.1,0 2,-0.9 2,-2L22,4c0,-1.1 -0.9,-2 -2,-2zM18,14L6,14v-2h12v2zM18,11L6,11L6,9h12v2zM18,8L6,8L6,6h12v2z"/>
9
-</vector>

+ 0
- 9
app/src/main/res/drawable/ic_search_black_24dp.xml Zobrazit soubor

@@ -1,9 +0,0 @@
1
-<vector xmlns:android="http://schemas.android.com/apk/res/android"
2
-        android:width="24dp"
3
-        android:height="24dp"
4
-        android:viewportWidth="24.0"
5
-        android:viewportHeight="24.0">
6
-    <path
7
-        android:fillColor="#FF000000"
8
-        android:pathData="M15.5,14h-0.79l-0.28,-0.27C15.41,12.59 16,11.11 16,9.5 16,5.91 13.09,3 9.5,3S3,5.91 3,9.5 5.91,16 9.5,16c1.61,0 3.09,-0.59 4.23,-1.57l0.27,0.28v0.79l5,4.99L20.49,19l-4.99,-5zM9.5,14C7.01,14 5,11.99 5,9.5S7.01,5 9.5,5 14,7.01 14,9.5 11.99,14 9.5,14z"/>
9
-</vector>

+ 0
- 21
app/src/main/res/layout/activity_main.xml Zobrazit soubor

@@ -1,21 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
-    android:layout_width="match_parent"
4
-    android:layout_height="match_parent"
5
-    android:orientation="vertical">
6
-
7
-    <android.support.v7.widget.Toolbar
8
-        android:id="@+id/toolbar"
9
-        android:layout_width="match_parent"
10
-        android:layout_height="wrap_content"
11
-        android:background="?attr/colorPrimary"
12
-        android:elevation="0dp"
13
-        android:minHeight="?attr/actionBarSize"
14
-        android:theme="?attr/actionBarTheme" />
15
-
16
-    <ListView
17
-        android:id="@+id/main_listview"
18
-        android:layout_width="match_parent"
19
-        android:layout_height="match_parent" />
20
-
21
-</LinearLayout>

+ 0
- 12
app/src/main/res/layout/activity_message.xml Zobrazit soubor

@@ -1,12 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
-    android:layout_width="match_parent"
4
-    android:layout_height="match_parent">
5
-
6
-    <TextView
7
-        android:id="@+id/textView3"
8
-        android:layout_width="wrap_content"
9
-        android:layout_height="wrap_content"
10
-        android:layout_weight="1"
11
-        android:text="消息" />
12
-</LinearLayout>

+ 0
- 14
app/src/main/res/layout/activity_micro_apps.xml Zobrazit soubor

@@ -1,14 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
-    xmlns:app="http://schemas.android.com/apk/res-auto"
4
-    xmlns:tools="http://schemas.android.com/tools"
5
-    android:layout_width="match_parent"
6
-    android:layout_height="match_parent"
7
-    tools:context="io.hsiao.youmap.MicroAppsActivity">
8
-
9
-    <TextView
10
-        android:id="@+id/textView5"
11
-        android:layout_width="wrap_content"
12
-        android:layout_height="wrap_content"
13
-        android:text="微应用" />
14
-</android.support.constraint.ConstraintLayout>

+ 0
- 12
app/src/main/res/layout/activity_user_center.xml Zobrazit soubor

@@ -1,12 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
-    android:layout_width="match_parent"
4
-    android:layout_height="match_parent">
5
-
6
-    <TextView
7
-        android:id="@+id/textView4"
8
-        android:layout_width="wrap_content"
9
-        android:layout_height="wrap_content"
10
-        android:layout_weight="1"
11
-        android:text="TextView" />
12
-</LinearLayout>

+ 0
- 41
app/src/main/res/layout/home_list.xml Zobrazit soubor

@@ -1,41 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-
3
-
4
-<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
5
-    xmlns:app="http://schemas.android.com/apk/res-auto"
6
-    xmlns:tools="http://schemas.android.com/tools"
7
-    android:layout_width="match_parent"
8
-    android:layout_height="match_parent">
9
-
10
-
11
-    <TextView
12
-        android:id="@+id/home_list_title"
13
-        android:layout_width="wrap_content"
14
-        android:layout_height="wrap_content"
15
-        android:layout_weight="1"
16
-        android:text="@android:string/dialog_alert_title"
17
-        tools:layout_editor_absoluteY="0dp"
18
-        android:layout_marginLeft="0dp"
19
-        app:layout_constraintLeft_toLeftOf="parent" />
20
-
21
-    <TextView
22
-        android:id="@+id/home_list_date"
23
-        android:layout_width="wrap_content"
24
-        android:layout_height="wrap_content"
25
-        android:layout_weight="1"
26
-        android:text="date"
27
-        android:textAlignment="viewEnd"
28
-        app:layout_constraintRight_toRightOf="parent"
29
-        tools:layout_editor_absoluteY="0dp" />
30
-
31
-    <TextView
32
-        android:id="@+id/home_list_desc"
33
-        android:layout_width="wrap_content"
34
-        android:layout_height="wrap_content"
35
-        android:layout_marginTop="16dp"
36
-        android:layout_weight="1"
37
-        android:text="TextView"
38
-        app:layout_constraintTop_toBottomOf="@+id/home_list_title"
39
-        tools:layout_editor_absoluteX="0dp" />
40
-
41
-</android.support.constraint.ConstraintLayout>

+ 0
- 31
app/src/main/res/menu/menu.xml Zobrazit soubor

@@ -1,31 +0,0 @@
1
-<menu xmlns:android="http://schemas.android.com/apk/res/android"
2
-    xmlns:app="http://schemas.android.com/apk/res-auto">
3
-
4
-    <item
5
-        android:id="@+id/menu_item_message"
6
-        android:icon="@drawable/ic_message_black_24dp"
7
-        android:title="消息"
8
-        app:showAsAction="always" />
9
-    <item
10
-        android:id="@+id/menu_item_mapps"
11
-        android:icon="@drawable/ic_apps_black_24dp"
12
-        android:title="微应用"
13
-        app:showAsAction="always" />
14
-    <item
15
-        android:id="@+id/menu_item_about"
16
-        android:title="关于友图" />
17
-    <item
18
-        android:id="@+id/menu_item_account"
19
-        android:icon="@drawable/ic_account_circle_black_24dp"
20
-        android:title="账户中心" />
21
-    <item
22
-        android:id="@+id/menu_item_contacts"
23
-        android:icon="@drawable/ic_contacts_black_24dp"
24
-        android:title="通讯录" />
25
-    <item
26
-        android:id="@+id/menu_item_search"
27
-        android:actionViewClass="android.widget.SearchView"
28
-        android:icon="@drawable/ic_search_black_24dp"
29
-        android:title="搜索"
30
-        app:showAsAction="always" />
31
-</menu>

binární
app/src/main/res/mipmap-hdpi/ic_launcher.png Zobrazit soubor


binární
app/src/main/res/mipmap-hdpi/ic_launcher_round.png Zobrazit soubor


binární
app/src/main/res/mipmap-mdpi/ic_launcher.png Zobrazit soubor


binární
app/src/main/res/mipmap-mdpi/ic_launcher_round.png Zobrazit soubor


binární
app/src/main/res/mipmap-xhdpi/ic_launcher.png Zobrazit soubor


binární
app/src/main/res/mipmap-xhdpi/ic_launcher_round.png Zobrazit soubor


binární
app/src/main/res/mipmap-xxhdpi/ic_launcher.png Zobrazit soubor


binární
app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png Zobrazit soubor


binární
app/src/main/res/mipmap-xxxhdpi/ic_launcher.png Zobrazit soubor


binární
app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png Zobrazit soubor


+ 0
- 5
app/src/main/res/values/colors.xml Zobrazit soubor

@@ -1,5 +0,0 @@
1
-<?xml version="1.0" encoding="utf-8"?>
2
-<resources>
3
-    <color name="foreground_material_light">#ffffff</color>
4
-    <color name="primary_text_default_material_light">#deffffff</color>
5
-</resources>

+ 0
- 3
app/src/main/res/values/strings.xml Zobrazit soubor

@@ -1,3 +0,0 @@
1
-<resources>
2
-    <string name="app_name">友图</string>
3
-</resources>

+ 0
- 7
app/src/main/res/values/styles.xml Zobrazit soubor

@@ -1,7 +0,0 @@
1
-<resources>
2
-    <style name="appTheme" parent="Theme.AppCompat.Light.NoActionBar">
3
-        <item name="colorAccent">@android:color/holo_orange_light</item>
4
-        <item name="colorPrimaryDark">@android:color/holo_orange_dark</item>
5
-        <item name="colorPrimary">@android:color/holo_orange_dark</item>
6
-    </style>
7
-</resources>

+ 0
- 17
app/src/test/java/io/hsiao/youmap/ExampleUnitTest.java Zobrazit soubor

@@ -1,17 +0,0 @@
1
-package io.hsiao.youmap;
2
-
3
-import org.junit.Test;
4
-
5
-import static org.junit.Assert.*;
6
-
7
-/**
8
- * Example local unit test, which will execute on the development machine (host).
9
- *
10
- * @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
11
- */
12
-public class ExampleUnitTest {
13
-    @Test
14
-    public void addition_isCorrect() throws Exception {
15
-        assertEquals(4, 2 + 2);
16
-    }
17
-}

+ 0
- 23
build.gradle Zobrazit soubor

@@ -1,23 +0,0 @@
1
-// Top-level build file where you can add configuration options common to all sub-projects/modules.
2
-
3
-buildscript {
4
-    repositories {
5
-        jcenter()
6
-    }
7
-    dependencies {
8
-        classpath 'com.android.tools.build:gradle:2.3.3'
9
-
10
-        // NOTE: Do not place your application dependencies here; they belong
11
-        // in the individual module build.gradle files
12
-    }
13
-}
14
-
15
-allprojects {
16
-    repositories {
17
-        jcenter()
18
-    }
19
-}
20
-
21
-task clean(type: Delete) {
22
-    delete rootProject.buildDir
23
-}

+ 0
- 17
gradle.properties Zobrazit soubor

@@ -1,17 +0,0 @@
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

binární
gradle/wrapper/gradle-wrapper.jar Zobrazit soubor


+ 0
- 6
gradle/wrapper/gradle-wrapper.properties Zobrazit soubor

@@ -1,6 +0,0 @@
1
-#Tue Jan 16 15:49:17 CST 2018
2
-distributionBase=GRADLE_USER_HOME
3
-distributionPath=wrapper/dists
4
-zipStoreBase=GRADLE_USER_HOME
5
-zipStorePath=wrapper/dists
6
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip

+ 0
- 160
gradlew Zobrazit soubor

@@ -1,160 +0,0 @@
1
-#!/usr/bin/env bash
2
-
3
-##############################################################################
4
-##
5
-##  Gradle start up script for UN*X
6
-##
7
-##############################################################################
8
-
9
-# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
10
-DEFAULT_JVM_OPTS=""
11
-
12
-APP_NAME="Gradle"
13
-APP_BASE_NAME=`basename "$0"`
14
-
15
-# Use the maximum available, or set MAX_FD != -1 to use that value.
16
-MAX_FD="maximum"
17
-
18
-warn ( ) {
19
-    echo "$*"
20
-}
21
-
22
-die ( ) {
23
-    echo
24
-    echo "$*"
25
-    echo
26
-    exit 1
27
-}
28
-
29
-# OS specific support (must be 'true' or 'false').
30
-cygwin=false
31
-msys=false
32
-darwin=false
33
-case "`uname`" in
34
-  CYGWIN* )
35
-    cygwin=true
36
-    ;;
37
-  Darwin* )
38
-    darwin=true
39
-    ;;
40
-  MINGW* )
41
-    msys=true
42
-    ;;
43
-esac
44
-
45
-# Attempt to set APP_HOME
46
-# Resolve links: $0 may be a link
47
-PRG="$0"
48
-# Need this for relative symlinks.
49
-while [ -h "$PRG" ] ; do
50
-    ls=`ls -ld "$PRG"`
51
-    link=`expr "$ls" : '.*-> \(.*\)$'`
52
-    if expr "$link" : '/.*' > /dev/null; then
53
-        PRG="$link"
54
-    else
55
-        PRG=`dirname "$PRG"`"/$link"
56
-    fi
57
-done
58
-SAVED="`pwd`"
59
-cd "`dirname \"$PRG\"`/" >/dev/null
60
-APP_HOME="`pwd -P`"
61
-cd "$SAVED" >/dev/null
62
-
63
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
64
-
65
-# Determine the Java command to use to start the JVM.
66
-if [ -n "$JAVA_HOME" ] ; then
67
-    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
68
-        # IBM's JDK on AIX uses strange locations for the executables
69
-        JAVACMD="$JAVA_HOME/jre/sh/java"
70
-    else
71
-        JAVACMD="$JAVA_HOME/bin/java"
72
-    fi
73
-    if [ ! -x "$JAVACMD" ] ; then
74
-        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
75
-
76
-Please set the JAVA_HOME variable in your environment to match the
77
-location of your Java installation."
78
-    fi
79
-else
80
-    JAVACMD="java"
81
-    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
82
-
83
-Please set the JAVA_HOME variable in your environment to match the
84
-location of your Java installation."
85
-fi
86
-
87
-# Increase the maximum file descriptors if we can.
88
-if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
89
-    MAX_FD_LIMIT=`ulimit -H -n`
90
-    if [ $? -eq 0 ] ; then
91
-        if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
92
-            MAX_FD="$MAX_FD_LIMIT"
93
-        fi
94
-        ulimit -n $MAX_FD
95
-        if [ $? -ne 0 ] ; then
96
-            warn "Could not set maximum file descriptor limit: $MAX_FD"
97
-        fi
98
-    else
99
-        warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
100
-    fi
101
-fi
102
-
103
-# For Darwin, add options to specify how the application appears in the dock
104
-if $darwin; then
105
-    GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
106
-fi
107
-
108
-# For Cygwin, switch paths to Windows format before running java
109
-if $cygwin ; then
110
-    APP_HOME=`cygpath --path --mixed "$APP_HOME"`
111
-    CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
112
-    JAVACMD=`cygpath --unix "$JAVACMD"`
113
-
114
-    # We build the pattern for arguments to be converted via cygpath
115
-    ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
116
-    SEP=""
117
-    for dir in $ROOTDIRSRAW ; do
118
-        ROOTDIRS="$ROOTDIRS$SEP$dir"
119
-        SEP="|"
120
-    done
121
-    OURCYGPATTERN="(^($ROOTDIRS))"
122
-    # Add a user-defined pattern to the cygpath arguments
123
-    if [ "$GRADLE_CYGPATTERN" != "" ] ; then
124
-        OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
125
-    fi
126
-    # Now convert the arguments - kludge to limit ourselves to /bin/sh
127
-    i=0
128
-    for arg in "$@" ; do
129
-        CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
130
-        CHECK2=`echo "$arg"|egrep -c "^-"`                                 ### Determine if an option
131
-
132
-        if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then                    ### Added a condition
133
-            eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
134
-        else
135
-            eval `echo args$i`="\"$arg\""
136
-        fi
137
-        i=$((i+1))
138
-    done
139
-    case $i in
140
-        (0) set -- ;;
141
-        (1) set -- "$args0" ;;
142
-        (2) set -- "$args0" "$args1" ;;
143
-        (3) set -- "$args0" "$args1" "$args2" ;;
144
-        (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
145
-        (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
146
-        (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
147
-        (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
148
-        (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
149
-        (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
150
-    esac
151
-fi
152
-
153
-# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
154
-function splitJvmOpts() {
155
-    JVM_OPTS=("$@")
156
-}
157
-eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
158
-JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
159
-
160
-exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

+ 0
- 90
gradlew.bat Zobrazit soubor

@@ -1,90 +0,0 @@
1
-@if "%DEBUG%" == "" @echo off
2
-@rem ##########################################################################
3
-@rem
4
-@rem  Gradle startup script for Windows
5
-@rem
6
-@rem ##########################################################################
7
-
8
-@rem Set local scope for the variables with windows NT shell
9
-if "%OS%"=="Windows_NT" setlocal
10
-
11
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
12
-set DEFAULT_JVM_OPTS=
13
-
14
-set DIRNAME=%~dp0
15
-if "%DIRNAME%" == "" set DIRNAME=.
16
-set APP_BASE_NAME=%~n0
17
-set APP_HOME=%DIRNAME%
18
-
19
-@rem Find java.exe
20
-if defined JAVA_HOME goto findJavaFromJavaHome
21
-
22
-set JAVA_EXE=java.exe
23
-%JAVA_EXE% -version >NUL 2>&1
24
-if "%ERRORLEVEL%" == "0" goto init
25
-
26
-echo.
27
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28
-echo.
29
-echo Please set the JAVA_HOME variable in your environment to match the
30
-echo location of your Java installation.
31
-
32
-goto fail
33
-
34
-:findJavaFromJavaHome
35
-set JAVA_HOME=%JAVA_HOME:"=%
36
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37
-
38
-if exist "%JAVA_EXE%" goto init
39
-
40
-echo.
41
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42
-echo.
43
-echo Please set the JAVA_HOME variable in your environment to match the
44
-echo location of your Java installation.
45
-
46
-goto fail
47
-
48
-:init
49
-@rem Get command-line arguments, handling Windowz variants
50
-
51
-if not "%OS%" == "Windows_NT" goto win9xME_args
52
-if "%@eval[2+2]" == "4" goto 4NT_args
53
-
54
-:win9xME_args
55
-@rem Slurp the command line arguments.
56
-set CMD_LINE_ARGS=
57
-set _SKIP=2
58
-
59
-:win9xME_args_slurp
60
-if "x%~1" == "x" goto execute
61
-
62
-set CMD_LINE_ARGS=%*
63
-goto execute
64
-
65
-:4NT_args
66
-@rem Get arguments from the 4NT Shell from JP Software
67
-set CMD_LINE_ARGS=%$
68
-
69
-:execute
70
-@rem Setup the command line
71
-
72
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
73
-
74
-@rem Execute Gradle
75
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
76
-
77
-:end
78
-@rem End local scope for the variables with windows NT shell
79
-if "%ERRORLEVEL%"=="0" goto mainEnd
80
-
81
-:fail
82
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
83
-rem the _cmd.exe /c_ return code!
84
-if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
85
-exit /b 1
86
-
87
-:mainEnd
88
-if "%OS%"=="Windows_NT" endlocal
89
-
90
-:omega

+ 0
- 1
settings.gradle Zobrazit soubor

@@ -1 +0,0 @@
1
-include ':app'

Loading…
Zrušit
Uložit