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"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - +