From 9c5dd97542a1a75fec0423ee4340f36ea50d1d32 Mon Sep 17 00:00:00 2001 From: dushilian <409352196@qq.com> Date: Fri, 11 Jan 2019 23:30:52 +0800 Subject: [PATCH] first commit --- 前端/test/.idea/encodings.xml | 6 + 前端/test/.idea/misc.xml | 2 +- 前端/test/app/src/main/AndroidManifest.xml | 5 +- .../administrator/test/AboutappActivity.java | 17 + .../administrator/test/FunctionActivity.java | 17 +- .../administrator/test/IndexActivity.java | 13 +- .../administrator/test/MemoActivity.java | 11 + .../src/main/res/layout/activity_index.xml | 353 ++++++++++++++---- .../app/src/main/res/layout/help_aboutapp.xml | 67 ++++ .../app/src/main/res/layout/help_function.xml | 29 +- .../app/src/main/res/layout/index_memo.xml | 108 ++++-- .../test/app/src/main/res/layout/index_my.xml | 78 ++-- .../test/app/src/main/res/menu/memomenu.xml | 10 + .../src/main/res/mipmap-xxhdpi/myaccount.png | Bin 0 -> 23981 bytes .../app/src/main/res/mipmap-xxhdpi/mydata.png | Bin 0 -> 63515 bytes .../app/src/main/res/mipmap-xxhdpi/myhelp.png | Bin 0 -> 25363 bytes .../src/main/res/mipmap-xxhdpi/mypassword.png | Bin 0 -> 28571 bytes .../test/app/src/main/res/values/mystring.xml | 49 +++ .../test/app/src/main/res/values/strings.xml | 23 +- 19 files changed, 602 insertions(+), 186 deletions(-) create mode 100644 前端/test/.idea/encodings.xml create mode 100644 前端/test/app/src/main/java/com/example/administrator/test/AboutappActivity.java create mode 100644 前端/test/app/src/main/java/com/example/administrator/test/MemoActivity.java create mode 100644 前端/test/app/src/main/res/layout/help_aboutapp.xml create mode 100644 前端/test/app/src/main/res/menu/memomenu.xml create mode 100644 前端/test/app/src/main/res/mipmap-xxhdpi/myaccount.png create mode 100644 前端/test/app/src/main/res/mipmap-xxhdpi/mydata.png create mode 100644 前端/test/app/src/main/res/mipmap-xxhdpi/myhelp.png create mode 100644 前端/test/app/src/main/res/mipmap-xxhdpi/mypassword.png create mode 100644 前端/test/app/src/main/res/values/mystring.xml diff --git a/前端/test/.idea/encodings.xml b/前端/test/.idea/encodings.xml new file mode 100644 index 0000000..2964eec --- /dev/null +++ b/前端/test/.idea/encodings.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/前端/test/.idea/misc.xml b/前端/test/.idea/misc.xml index b0c7b20..e0d5b93 100644 --- a/前端/test/.idea/misc.xml +++ b/前端/test/.idea/misc.xml @@ -29,7 +29,7 @@ - + diff --git a/前端/test/app/src/main/AndroidManifest.xml b/前端/test/app/src/main/AndroidManifest.xml index e5655a2..2fe1059 100644 --- a/前端/test/app/src/main/AndroidManifest.xml +++ b/前端/test/app/src/main/AndroidManifest.xml @@ -9,14 +9,15 @@ android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> - + - + + \ No newline at end of file diff --git a/前端/test/app/src/main/java/com/example/administrator/test/AboutappActivity.java b/前端/test/app/src/main/java/com/example/administrator/test/AboutappActivity.java new file mode 100644 index 0000000..c101486 --- /dev/null +++ b/前端/test/app/src/main/java/com/example/administrator/test/AboutappActivity.java @@ -0,0 +1,17 @@ +package com.example.administrator.test; + +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; +import android.text.method.ScrollingMovementMethod; +import android.widget.TextView; + +public class AboutappActivity extends AppCompatActivity { + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.help_aboutapp); + TextView tv; + tv = (TextView) findViewById(R.id.abouttext); +// 设置当前textView内容过多的时候可以滚动 + tv.setMovementMethod(ScrollingMovementMethod.getInstance()); + } +} diff --git a/前端/test/app/src/main/java/com/example/administrator/test/FunctionActivity.java b/前端/test/app/src/main/java/com/example/administrator/test/FunctionActivity.java index f216bf9..4846d9d 100644 --- a/前端/test/app/src/main/java/com/example/administrator/test/FunctionActivity.java +++ b/前端/test/app/src/main/java/com/example/administrator/test/FunctionActivity.java @@ -2,24 +2,23 @@ package com.example.administrator.test; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; +import android.text.method.ScrollingMovementMethod; import android.widget.ArrayAdapter; import android.widget.ListView; +import android.widget.TextView; + +import java.util.Collections; import static com.example.administrator.test.R.*; public class FunctionActivity extends AppCompatActivity { - private String function1="1.备忘录:用于快速记录语音消息和文字备注。主界面可以浏览已有的备忘录消息列表,点击右上角的加号新建一条备忘录记录,点击下方按钮对录音进行操作。"; - private String function2="2.日记:提供文字,图片和语音合并记录的形式。主界面可以浏览已有的日记消息列表,点击右下角的悬浮钮新建一条日记记录,选择模板进入编辑模式。"; - private String function3="3.共享时刻:支持实时在线阅读共享语音消息的平台。用户可以将语音,文字和图片任意组合并发表,与他人共享精彩时光。主界面可以阅读关注人发表的消息,也可以切换消息界面或个人发表语音记录,点击右上角的加号新建一条语音圈消息。"; - private String function4="4.我的:进入用户个人信息管理界面,可以切换账号,更改密码,查看帮助,进行问题反馈等。"; - private String function5="本app还在开发中,欢迎用户体验并反馈意见,帮助我们进一步完善功能。"; - private String[] functionIntro={function1,function2,function3,function4,function5}; protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(layout.help_function); - ArrayAdapter adapter=new ArrayAdapter(FunctionActivity.this,android.R.layout.simple_list_item_1,functionIntro); - ListView listView=(ListView) findViewById(id.functiontext); - listView.setAdapter(adapter); + TextView tv; + tv = (TextView) findViewById(id.functiontext); +// 设置当前textView内容过多的时候可以滚动 + tv.setMovementMethod(ScrollingMovementMethod.getInstance()); } } diff --git a/前端/test/app/src/main/java/com/example/administrator/test/IndexActivity.java b/前端/test/app/src/main/java/com/example/administrator/test/IndexActivity.java index 922886b..8a3f317 100644 --- a/前端/test/app/src/main/java/com/example/administrator/test/IndexActivity.java +++ b/前端/test/app/src/main/java/com/example/administrator/test/IndexActivity.java @@ -2,12 +2,19 @@ package com.example.administrator.test; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; +import android.widget.AbsListView; +import android.widget.TextView; -public class IndexActivity extends AppCompatActivity { +import java.io.IOException; +import java.io.InputStream; +import java.io.UnsupportedEncodingException; +import java.util.Observable; + +public class IndexActivity extends AppCompatActivity{ - @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); - setContentView(R.layout.index_my); + setContentView(R.layout.activity_index); + } } diff --git a/前端/test/app/src/main/java/com/example/administrator/test/MemoActivity.java b/前端/test/app/src/main/java/com/example/administrator/test/MemoActivity.java new file mode 100644 index 0000000..ea053b1 --- /dev/null +++ b/前端/test/app/src/main/java/com/example/administrator/test/MemoActivity.java @@ -0,0 +1,11 @@ +package com.example.administrator.test; + +import android.os.Bundle; +import android.support.v7.app.AppCompatActivity; + +public class MemoActivity extends AppCompatActivity { + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.index_memo); + } +} diff --git a/前端/test/app/src/main/res/layout/activity_index.xml b/前端/test/app/src/main/res/layout/activity_index.xml index 689a4db..715631d 100644 --- a/前端/test/app/src/main/res/layout/activity_index.xml +++ b/前端/test/app/src/main/res/layout/activity_index.xml @@ -1,99 +1,314 @@ - - + - + android:layout_height="match_parent"> - + android:layout_height="match_parent" + android:orientation="vertical"> - + android:orientation="vertical" + android:layout_weight="1"> + + + + + + + + + + + + + + + + + + + + + + android:orientation="horizontal" + android:background="#abe9fcbb"> + + + + android:layout_weight="1.5" /> + + - - + + + + + + + + + + + + + + + android:orientation="horizontal"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +