diff --git a/MemoSystem/.gitignore b/MemoSystem/.gitignore new file mode 100644 index 0000000..aa724b7 --- /dev/null +++ b/MemoSystem/.gitignore @@ -0,0 +1,15 @@ +*.iml +.gradle +/local.properties +/.idea/caches +/.idea/libraries +/.idea/modules.xml +/.idea/workspace.xml +/.idea/navEditor.xml +/.idea/assetWizardSettings.xml +.DS_Store +/build +/captures +.externalNativeBuild +.cxx +local.properties diff --git a/MemoSystem/.idea/.gitignore b/MemoSystem/.idea/.gitignore new file mode 100644 index 0000000..26d3352 --- /dev/null +++ b/MemoSystem/.idea/.gitignore @@ -0,0 +1,3 @@ +# Default ignored files +/shelf/ +/workspace.xml diff --git a/MemoSystem/.idea/compiler.xml b/MemoSystem/.idea/compiler.xml new file mode 100644 index 0000000..b589d56 --- /dev/null +++ b/MemoSystem/.idea/compiler.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/MemoSystem/.idea/deploymentTargetDropDown.xml b/MemoSystem/.idea/deploymentTargetDropDown.xml new file mode 100644 index 0000000..0c0c338 --- /dev/null +++ b/MemoSystem/.idea/deploymentTargetDropDown.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/.idea/gradle.xml b/MemoSystem/.idea/gradle.xml new file mode 100644 index 0000000..32522c1 --- /dev/null +++ b/MemoSystem/.idea/gradle.xml @@ -0,0 +1,18 @@ + + + + + + \ No newline at end of file diff --git a/MemoSystem/.idea/migrations.xml b/MemoSystem/.idea/migrations.xml new file mode 100644 index 0000000..f8051a6 --- /dev/null +++ b/MemoSystem/.idea/migrations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/MemoSystem/.idea/misc.xml b/MemoSystem/.idea/misc.xml new file mode 100644 index 0000000..0ad17cb --- /dev/null +++ b/MemoSystem/.idea/misc.xml @@ -0,0 +1,10 @@ + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/.gitignore b/MemoSystem/app/.gitignore new file mode 100644 index 0000000..42afabf --- /dev/null +++ b/MemoSystem/app/.gitignore @@ -0,0 +1 @@ +/build \ No newline at end of file diff --git a/MemoSystem/app/build.gradle.kts b/MemoSystem/app/build.gradle.kts new file mode 100644 index 0000000..2f149d9 --- /dev/null +++ b/MemoSystem/app/build.gradle.kts @@ -0,0 +1,39 @@ +plugins { + id("com.android.application") +} + +android { + namespace = "com.example.memosystem" + compileSdk = 33 + + defaultConfig { + applicationId = "com.example.memosystem" + minSdk = 31 + targetSdk = 33 + versionCode = 1 + versionName = "1.0" + + testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" + } + + buildTypes { + release { + isMinifyEnabled = false + proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") + } + } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 + } +} + +dependencies { + + implementation("androidx.appcompat:appcompat:1.6.1") + implementation("com.google.android.material:material:1.8.0") + implementation("androidx.constraintlayout:constraintlayout:2.1.4") + testImplementation("junit:junit:4.13.2") + androidTestImplementation("androidx.test.ext:junit:1.1.5") + androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") +} \ No newline at end of file diff --git a/MemoSystem/app/proguard-rules.pro b/MemoSystem/app/proguard-rules.pro new file mode 100644 index 0000000..481bb43 --- /dev/null +++ b/MemoSystem/app/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile \ No newline at end of file diff --git a/MemoSystem/app/src/androidTest/java/com/example/memosystem/ExampleInstrumentedTest.java b/MemoSystem/app/src/androidTest/java/com/example/memosystem/ExampleInstrumentedTest.java new file mode 100644 index 0000000..a6566c6 --- /dev/null +++ b/MemoSystem/app/src/androidTest/java/com/example/memosystem/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.example.memosystem; + +import android.content.Context; + +import androidx.test.platform.app.InstrumentationRegistry; +import androidx.test.ext.junit.runners.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumented test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); + assertEquals("com.example.memosystem", appContext.getPackageName()); + } +} \ No newline at end of file diff --git a/MemoSystem/app/src/main/AndroidManifest.xml b/MemoSystem/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..c6c7b9c --- /dev/null +++ b/MemoSystem/app/src/main/AndroidManifest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/ic_launcher-playstore.png b/MemoSystem/app/src/main/ic_launcher-playstore.png new file mode 100644 index 0000000..cf6ab88 Binary files /dev/null and b/MemoSystem/app/src/main/ic_launcher-playstore.png differ diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/MainActivity.java b/MemoSystem/app/src/main/java/com/example/memosystem/MainActivity.java new file mode 100644 index 0000000..9b2821f --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/MainActivity.java @@ -0,0 +1,88 @@ +package com.example.memosystem; + +import android.content.Intent; +import android.database.sqlite.SQLiteDatabase; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.Toast; + +import androidx.appcompat.app.AppCompatActivity; + +import com.example.memosystem.activity.AddActivity; +import com.example.memosystem.activity.ChangePwdActivity; +import com.example.memosystem.activity.ManageActivity; +import com.example.memosystem.activity.MesActivity; +import com.example.memosystem.activity.RegisterActivity; +import com.example.memosystem.dao.AdminDao; +import com.example.memosystem.util.DBUtil; + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + + + //这段代码是连接数据库的 + DBUtil dbUtil=new DBUtil(MainActivity.this); + SQLiteDatabase db=dbUtil.getWritableDatabase(); + DBUtil.db=db; + //------------------------ + + + //去注册界面 + Button to_reg=findViewById(R.id.register_button); + to_reg.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Toast.makeText(MainActivity.this, "注册界面", Toast.LENGTH_SHORT).show(); + Intent intent=new Intent(MainActivity.this, RegisterActivity.class); + startActivity(intent); + } + }); + //登录按钮 + EditText ac=findViewById(R.id.login_account); + EditText pwd=findViewById(R.id.login_pwd); + + + Button bu=findViewById(R.id.login_button); + bu.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + + String acT=ac.getText().toString().trim(); + String pwdT=pwd.getText().toString().trim(); + if(acT.isEmpty()){ + Toast.makeText(MainActivity.this, "请输入账号!", Toast.LENGTH_SHORT).show(); + }else if(pwdT.isEmpty()) { + Toast.makeText(MainActivity.this, "请输入密码!", Toast.LENGTH_SHORT).show(); + }else{ + + AdminDao adminDao=new AdminDao(); + int a=adminDao.loginAdmin(acT,pwdT); + if(a==0){ + Toast.makeText(MainActivity.this, "账号不存在或者密码错误!", Toast.LENGTH_SHORT).show(); + + }else{ + Intent intent=new Intent(MainActivity.this, ManageActivity.class); + intent.putExtra("account",acT); + startActivity(intent); + Toast.makeText(MainActivity.this, "登录成功!", Toast.LENGTH_SHORT).show(); + } + + + } + + + } + }); + + + + + + } +} \ No newline at end of file diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/activity/AddActivity.java b/MemoSystem/app/src/main/java/com/example/memosystem/activity/AddActivity.java new file mode 100644 index 0000000..80da90b --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/activity/AddActivity.java @@ -0,0 +1,168 @@ +package com.example.memosystem.activity; + +import androidx.annotation.NonNull; +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; + +import android.content.Intent; +import android.os.Bundle; +import android.text.Editable; +import android.text.TextWatcher; +import android.view.Menu; +import android.view.MenuItem; +import android.view.View; +import android.widget.EditText; +import android.widget.TextView; +import android.widget.Toast; + +import com.example.memosystem.MainActivity; +import com.example.memosystem.R; +import com.example.memosystem.activity.listen.ChangeListen; +import com.example.memosystem.dao.AdminDao; + +import java.text.SimpleDateFormat; +import java.util.Calendar; +import java.util.UUID; + +public class AddActivity extends AppCompatActivity { + String uuid=null; + String account=null; + + EditText res=null; + EditText title=null; + + TextView textView=null; + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_add); + + //加载菜单条 + Toolbar toolbar = findViewById(R.id.toolbar_add); + setSupportActionBar(toolbar); + + //获取账号 + Intent intent=getIntent(); + + + + textView= findViewById(R.id.add_time); + //获取当前月份和时间 + Calendar calendar=Calendar.getInstance(); + SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy年MM月dd日 a HH:mm"); + String curTime=dateFormat.format(calendar.getTime()); + + curTime=curTime+" | "; + + + + curTime=curTime+"0字"; + textView.setText(curTime); + + + //是根据下面输入下面文本框的操作时间来定的 + res=findViewById(R.id.add_con);//输入内容的 + title=findViewById(R.id.add_title);//输入内容的 + + + //判断是添加界面还是更改界面 + account=intent.getStringExtra("account");//获取当前账号 + String a=intent.getStringExtra("sta"); + if(a==null){//是添加界面 + uuid = UUID.randomUUID().toString();//随机产生的一个UUID + }else{ + intent.putExtra("sta","1"); + + uuid=intent.getStringExtra("id"); + res.setText( intent.getStringExtra("con")); + title.setText( intent.getStringExtra("title")); + textView.setText(intent.getStringExtra("time")); + + } + + toolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent1=new Intent(AddActivity.this,ManageActivity.class); + intent1.putExtra("account",account); + startActivity(intent1); + } + }); + + + + + res.addTextChangedListener(new TextWatcher() { + @Override + public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { + + } + + @Override + public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { + + } + + @Override + public void afterTextChanged(Editable editable) { + //获取当前月份和时间 + Calendar calendar=Calendar.getInstance(); + SimpleDateFormat dateFormat=new SimpleDateFormat("yyyy年MM月dd日 a HH:mm"); + String curTime=dateFormat.format(calendar.getTime()); + + curTime=curTime+" | "; + + String text= String.valueOf(res.getText()); + String zi=String.valueOf(text.length()); + curTime=curTime+zi+"字"; + textView.setText(curTime); + //每次输入一个字符,他都自动保存一下 + String titles=title.getText().toString().trim(); + String rest=res.getText().toString().trim(); + int a=new AdminDao().saveRecord(uuid, titles,rest,account,curTime); + + } + }); + + + + + + } + + //构造菜单 + + + @Override + public boolean onCreateOptionsMenu(Menu menu) { + getMenuInflater().inflate(R.menu.add_menu,menu); + return true; + } + + @Override + public boolean onOptionsItemSelected(@NonNull MenuItem item) { + + int itemID=item.getItemId(); + if(itemID==R.id.add_men_save){//保存 + + String curTime=textView.getText().toString().trim(); + String titles=title.getText().toString().trim(); + String rest=res.getText().toString().trim(); + int a=new AdminDao().saveRecord(uuid, titles,rest,account,curTime); + if(a==1){ + Toast.makeText(AddActivity.this, "保存成功!", Toast.LENGTH_SHORT).show(); + }else{ + Toast.makeText(AddActivity.this, "保存失败!", Toast.LENGTH_SHORT).show(); + } + + }else + if(itemID==R.id.add_men_del){//删除 + + int a=new AdminDao().delRecord(uuid,account); + Intent intent=new Intent(AddActivity.this,ManageActivity.class); + intent.putExtra("account",account); + startActivity(intent); + } + return super.onOptionsItemSelected(item); + } +} \ No newline at end of file diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/activity/ChangePwdActivity.java b/MemoSystem/app/src/main/java/com/example/memosystem/activity/ChangePwdActivity.java new file mode 100644 index 0000000..6e133d1 --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/activity/ChangePwdActivity.java @@ -0,0 +1,106 @@ +package com.example.memosystem.activity; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.AbsListView; +import android.widget.Button; +import android.widget.EditText; +import android.widget.Toast; + + + +import com.example.memosystem.MainActivity; +import com.example.memosystem.R; +import com.example.memosystem.activity.listen.ChangeListen; +import com.example.memosystem.activity.listen.TouchListen; +import com.example.memosystem.dao.AdminDao; + + +public class ChangePwdActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_change_pwd); + + Intent intent=getIntent(); + String account=intent.getStringExtra("account"); + + Toolbar toolbar= findViewById(R.id.toolbar_pwd); + this.setSupportActionBar(toolbar); + //返回功能 + toolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent1=new Intent(ChangePwdActivity.this,ManageActivity.class); + intent1.putExtra("account",account); + startActivity(intent1); + } + }); + + + + + + EditText one=findViewById(R.id.change_pwd_one); + one.addTextChangedListener(new ChangeListen(one)); + EditText two=findViewById(R.id.change_pwd_two); + two.addTextChangedListener(new ChangeListen(two)); + + + one.setOnTouchListener(new TouchListen(one)); + two.setOnTouchListener(new TouchListen(two)); + + //初始X的状态 + one.setCompoundDrawablesRelativeWithIntrinsicBounds(0,0,0,0); + two.setCompoundDrawablesRelativeWithIntrinsicBounds(0,0,0,0); + + + + Button but=findViewById(R.id.change_pwd_button); + but.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + + String ontT=one.getText().toString().trim(); + String twoT=two.getText().toString().trim(); + if(ontT.isEmpty()){ + Toast.makeText(ChangePwdActivity.this, "请输入密码!", Toast.LENGTH_SHORT).show(); + }else if(twoT.isEmpty()){ + Toast.makeText(ChangePwdActivity.this, "请输入确认密码!", Toast.LENGTH_SHORT).show(); + }else if(!ontT.equals(twoT)){ + Toast.makeText(ChangePwdActivity.this, "两次密码输入不一致!", Toast.LENGTH_SHORT).show(); + }else{ + + AdminDao adminDao=new AdminDao(); + int a=adminDao.changePassword(account,ontT); + if(a==0){ + Toast.makeText(ChangePwdActivity.this, "更改失败!", Toast.LENGTH_SHORT).show(); + }else + if(a>=1){ + Toast.makeText(ChangePwdActivity.this, "修改密码成功", Toast.LENGTH_SHORT).show(); + }else{ + Toast.makeText(ChangePwdActivity.this, "未知错误", Toast.LENGTH_SHORT).show(); + } + + } + } + }); + + + + //写返回功能 + + + + } + + + + +} + diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/activity/ManageActivity.java b/MemoSystem/app/src/main/java/com/example/memosystem/activity/ManageActivity.java new file mode 100644 index 0000000..c6a7cc9 --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/activity/ManageActivity.java @@ -0,0 +1,133 @@ +package com.example.memosystem.activity; + +import androidx.annotation.NonNull; +import androidx.appcompat.app.ActionBarDrawerToggle; +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; +import androidx.core.view.GravityCompat; +import androidx.drawerlayout.widget.DrawerLayout; + +import android.content.Intent; +import android.os.Bundle; +import android.view.MenuItem; +import android.view.View; +import android.view.animation.Animation; +import android.view.animation.AnimationUtils; +import android.widget.ListView; + +import com.example.memosystem.MainActivity; +import com.example.memosystem.R; +import com.example.memosystem.adapter.RecordAdapter; +import com.example.memosystem.bean.Record; +import com.example.memosystem.dao.AdminDao; +import com.google.android.material.floatingactionbutton.FloatingActionButton; +import com.google.android.material.navigation.NavigationView; + +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.List; + +public class ManageActivity extends AppCompatActivity { + + + //侧边栏的内容部分 + + private ListView listView; + + List originalItems; + + RecordAdapter adapter; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_manage); + + Intent intent=getIntent(); + String account=intent.getStringExtra("account"); + + + //退出的功能 + NavigationView navigationView=findViewById(R.id.navigation_view);//引入侧边栏 + navigationView.setNavigationItemSelectedListener(new NavigationView.OnNavigationItemSelectedListener() { + @Override + public boolean onNavigationItemSelected(@NonNull MenuItem item) { + int id=item.getItemId(); + if(id==R.id.menu_to_exit){ + finishAffinity();//退出功能 + } + if(id==R.id.menu_to_login){ + Intent intent=new Intent(ManageActivity.this, MainActivity.class); + startActivity(intent); + + } + + if(id==R.id.menu_up_pwd){ + Intent intent=new Intent(ManageActivity.this, ChangePwdActivity.class); + intent.putExtra("account",account); + startActivity(intent); + } + + if(id==R.id.menu_mes){ + Intent intent=new Intent(ManageActivity.this, MesActivity.class); + intent.putExtra("account",account); + startActivity(intent); + } + + return true; + } + }); + + + + //添加事件的点击按钮 + + + + FloatingActionButton floatingActionButton=findViewById(R.id.fab); + floatingActionButton.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent=new Intent(ManageActivity.this, AddActivity.class); + intent.putExtra("account",account); + startActivity(intent); + } + }); + + + //现在开发加载列表 + listView= findViewById(R.id.manage_list); + //这个列表要从哪里读取数据 + originalItems=new ArrayList<>(); + //读取数据 + originalItems= new AdminDao().showRecord(account); + if(originalItems.size()==0){ + listView.setAdapter(null);//让界面啥都不显示 + }else{ + + adapter = new RecordAdapter(this, originalItems); + listView.setAdapter(adapter); + } + + Toolbar toolbar= findViewById(R.id.toolbar_man); + this.setSupportActionBar(toolbar); + //返回功能 + DrawerLayout drawerLayout =findViewById(R.id.drawer); + toolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + drawerLayout.openDrawer(GravityCompat.START); + } + }); + + + + + + + + //originalItems=new ArrayList<>(); + + } +} \ No newline at end of file diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/activity/MesActivity.java b/MemoSystem/app/src/main/java/com/example/memosystem/activity/MesActivity.java new file mode 100644 index 0000000..e536b40 --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/activity/MesActivity.java @@ -0,0 +1,134 @@ +package com.example.memosystem.activity; + +import androidx.appcompat.app.AppCompatActivity; +import androidx.appcompat.widget.Toolbar; + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.RadioButton; +import android.widget.Toast; + +import com.example.memosystem.MainActivity; +import com.example.memosystem.R; +import com.example.memosystem.activity.listen.ChangeListen; +import com.example.memosystem.activity.listen.TouchListen; +import com.example.memosystem.dao.AdminDao; + +import java.util.Map; + +public class MesActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_mes); + + + Intent intent=getIntent(); + String account=intent.getStringExtra("account"); + //需要查看个人信息 + + Map result = new AdminDao().showAccountMes(account); + + + + + + + + Toolbar toolbar= findViewById(R.id.toolbar_mes); + this.setSupportActionBar(toolbar); + //返回功能 + toolbar.setNavigationOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent1=new Intent(MesActivity.this,ManageActivity.class); + intent1.putExtra("account",account); + startActivity(intent1); + } + }); + + + + + //姓名 + EditText name=findViewById(R.id.change_name);//姓名 + name.setText(result.get("name")); + + + + RadioButton man=findViewById(R.id.change_man);//男 + RadioButton woman=findViewById(R.id.change_woman);//女 + if(result.get("sex").equals("男")){ + man.setChecked(true); + }else{ + woman.setChecked(true); + } + + + EditText age=findViewById(R.id.change_age);//男 + age.setText(result.get("age")); + + EditText phone=findViewById(R.id.change_phone);//男 + phone.setText(result.get("phone")); + + + clearText(name); + clearText(age); + clearText(phone); + + + + Button change_pwd_button = findViewById(R.id.change_pwd_button); + change_pwd_button.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + + String nameT=name.getText().toString().trim(); + String ageT=age.getText().toString().trim(); + String phoneT=phone.getText().toString().trim(); + + if(nameT.isEmpty()){ + Toast.makeText(MesActivity.this, "请输入姓名!", Toast.LENGTH_SHORT).show(); + }else if(phoneT.isEmpty()){ + Toast.makeText(MesActivity.this, "请输入联系方式!", Toast.LENGTH_SHORT).show(); + }else if(ageT.isEmpty()){ + Toast.makeText(MesActivity.this, "请输入年纪!", Toast.LENGTH_SHORT).show(); + }else{ + + String sex="女"; + if(man.isChecked()){ + sex="男"; + } + + int a=new AdminDao().changeMes(account,nameT,sex,phoneT,ageT); + if(a>=1){ + Toast.makeText(MesActivity.this, "更改个人信息成功!", Toast.LENGTH_SHORT).show(); + } + if(a==0){ + Toast.makeText(MesActivity.this, "更改失败!", Toast.LENGTH_SHORT).show(); + } + if(a==-1){ + Toast.makeText(MesActivity.this, "未知错误!", Toast.LENGTH_SHORT).show(); + } + + } + + } + }); + } + + private void clearText(EditText text){ + + + + text.addTextChangedListener(new ChangeListen(text)); + text.setOnTouchListener(new TouchListen( text)); + //初始X的状态 + text.setCompoundDrawablesRelativeWithIntrinsicBounds(0,0,0,0); + + } +} \ No newline at end of file diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/activity/RegisterActivity.java b/MemoSystem/app/src/main/java/com/example/memosystem/activity/RegisterActivity.java new file mode 100644 index 0000000..663d591 --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/activity/RegisterActivity.java @@ -0,0 +1,98 @@ +package com.example.memosystem.activity; +/** + * + * 这是一个注册界面 + */ + +import android.content.Intent; +import android.os.Bundle; +import android.view.View; +import android.widget.Button; +import android.widget.EditText; +import android.widget.RadioButton; +import android.widget.Toast; + +import androidx.appcompat.app.AppCompatActivity; + +import com.example.memosystem.MainActivity; +import com.example.memosystem.R; +import com.example.memosystem.dao.AdminDao; + +public class RegisterActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_register); + + + EditText account = findViewById(R.id.register_account);//账号 + EditText pwd = findViewById(R.id.register_pwd);//密码 + EditText name = findViewById(R.id.register_name);//姓名 + RadioButton woman = findViewById(R.id.register_woman);//女 + RadioButton man = findViewById(R.id.register_man);//男 + man.setChecked(true); + + EditText phone = findViewById(R.id.register_phone);//手机号 + EditText age = findViewById(R.id.register_age); + + Button button = findViewById(R.id.register_button);//点击注册按钮 + button.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + String accountT=account.getText().toString().trim(); + String pwdT=pwd.getText().toString().trim(); + String nameT=name.getText().toString().trim(); + String phoneT=phone.getText().toString().trim(); + String ageT=age.getText().toString().trim(); + + + if(accountT.isEmpty()){ + Toast.makeText(RegisterActivity.this, "请输入账号!", Toast.LENGTH_SHORT).show(); + }else if(pwdT.isEmpty()){ + Toast.makeText(RegisterActivity.this, "请输入密码!", Toast.LENGTH_SHORT).show(); + }else if(nameT.isEmpty()){ + Toast.makeText(RegisterActivity.this, "请输入姓名!", Toast.LENGTH_SHORT).show(); + }else if(phoneT.isEmpty()){ + Toast.makeText(RegisterActivity.this, "请输入联系方式!", Toast.LENGTH_SHORT).show(); + }else if(ageT.isEmpty()){ + Toast.makeText(RegisterActivity.this, "请输入年纪!", Toast.LENGTH_SHORT).show(); + }else{ + + String sex="女"; + if(man.isChecked()){ + sex="男"; + } + AdminDao adminDao=new AdminDao(); + int a= adminDao.registerAdmin(accountT,pwdT,nameT,sex,phoneT,ageT); + if(a==1){ + Toast.makeText(RegisterActivity.this, "注册成功!", Toast.LENGTH_SHORT).show(); + }else{ + Toast.makeText(RegisterActivity.this, "注册失败,账号冲突!", Toast.LENGTH_SHORT).show(); + } + + + } + + + + + + } + }); + + + Button Login = findViewById(R.id.register_to_login_button);//点击注册按钮 实现返回按钮 + Login.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Toast.makeText(RegisterActivity.this, "登录界面", Toast.LENGTH_SHORT).show(); + Intent intent=new Intent(RegisterActivity.this, MainActivity.class); + startActivity(intent); + } + }); + + + + } +} \ No newline at end of file diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/activity/listen/ChangeListen.java b/MemoSystem/app/src/main/java/com/example/memosystem/activity/listen/ChangeListen.java new file mode 100644 index 0000000..7db167b --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/activity/listen/ChangeListen.java @@ -0,0 +1,38 @@ +package com.example.memosystem.activity.listen; + +import android.text.Editable; +import android.text.TextWatcher; +import android.widget.EditText; + +import com.example.memosystem.R; + +public class ChangeListen implements TextWatcher { + + private EditText ed=null; + + public ChangeListen(EditText ed){ + this.ed=ed; + } + + + @Override + public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) { + + } + + @Override + public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) { + + } + + @Override + public void afterTextChanged(Editable editable) { + + if(editable.length()>0){ + + ed.setCompoundDrawablesRelativeWithIntrinsicBounds(0,0,R.drawable.x,0); + }else{ + ed.setCompoundDrawablesRelativeWithIntrinsicBounds(0,0,0,0); + } + } +} diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/activity/listen/TouchListen.java b/MemoSystem/app/src/main/java/com/example/memosystem/activity/listen/TouchListen.java new file mode 100644 index 0000000..ae7fd3a --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/activity/listen/TouchListen.java @@ -0,0 +1,39 @@ +package com.example.memosystem.activity.listen; + +import android.view.MotionEvent; +import android.view.View; +import android.widget.EditText; + +public class TouchListen implements View.OnTouchListener{ + + + private EditText ed=null; + + public TouchListen(EditText ed){ + this.ed=ed; + } + + @Override + public boolean onTouch(View view, MotionEvent motionEvent) { + + + // + int start=ed.getWidth()-ed.getPaddingEnd()-ed.getPaddingRight(); + int end=ed.getWidth();//整个文本的宽带 + + float x = motionEvent.getX(); + + + boolean isButtonClicked=x>start&&x { + + + private List items; + public RecordAdapter( Context context, List items) { + super(context, R.layout.manage_list,items); + this.items=items; + } + + + + @Override + public View getView(int position,View convertView,ViewGroup parent) { + + if( convertView==null){ + + LayoutInflater inflater=LayoutInflater.from(getContext()); + convertView=inflater.inflate(R.layout.manage_list,parent,false); + } + + + TextView title=convertView.findViewById(R.id.title); + TextView con=convertView.findViewById(R.id.con); + TextView time=convertView.findViewById(R.id.time); + + + + + + + Record res = items.get(position); + title.setText(res.getTitle()); + con.setText(res.getCon()); + time.setText(res.getTim()); + + convertView.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Intent intent =new Intent(getContext(), AddActivity.class);//目标i界面 + intent.putExtra("sta","1"); + intent.putExtra("account",res.getUid());//账号 + intent.putExtra("id",res.getId()); + intent.putExtra("title",res.getTitle()); + intent.putExtra("con",res.getCon()); + intent.putExtra("time",res.getTim()); + getContext().startActivity(intent);//打开目标界面 + } + }); + return convertView; + } +} diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/bean/Record.java b/MemoSystem/app/src/main/java/com/example/memosystem/bean/Record.java new file mode 100644 index 0000000..9f1e762 --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/bean/Record.java @@ -0,0 +1,73 @@ +package com.example.memosystem.bean; + +public class Record { + + private String id; + private String title; + private String con; + private String uid; + private String tim; + //alt install + + @Override + public String toString() { + return "Record{" + + "id='" + id + '\'' + + ", title='" + title + '\'' + + ", con='" + con + '\'' + + ", uid='" + uid + '\'' + + ", tim='" + tim + '\'' + + '}'; + } + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public String getCon() { + return con; + } + + public void setCon(String con) { + this.con = con; + } + + public String getUid() { + return uid; + } + + public void setUid(String uid) { + this.uid = uid; + } + + public String getTim() { + return tim; + } + + public void setTim(String tim) { + this.tim = tim; + } + + public Record() { + } + + public Record(String id, String title, String con, String uid, String tim) { + this.id = id; + this.title = title; + this.con = con; + this.uid = uid; + this.tim = tim; + } +} diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/dao/AdminDao.java b/MemoSystem/app/src/main/java/com/example/memosystem/dao/AdminDao.java new file mode 100644 index 0000000..50c6cb2 --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/dao/AdminDao.java @@ -0,0 +1,154 @@ +package com.example.memosystem.dao; + +import android.content.ContentValues; +import android.database.Cursor; +import android.database.sqlite.SQLiteDatabase; + +import com.example.memosystem.bean.Record; +import com.example.memosystem.dao.impl.AdminDaoImpl; +import com.example.memosystem.util.DBUtil; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class AdminDao implements AdminDaoImpl { + + SQLiteDatabase db= DBUtil.db; + @Override + public int registerAdmin(String ...da) { + try { + db.execSQL("INSERT INTO d_admin VALUES(?,?,?,?,?,?)",da); + return 1; + }catch (Exception e){ + return -1; + } + + } + + @Override + public int loginAdmin(String... da) { + + int a=0; + Cursor res = db.rawQuery("select * from d_admin where s_id=? and s_pwd=?", da); + if(res.moveToNext()){ + a++; + } + return a; + + + + + } + + /** + * 修改密码 账号 密码 + * @param da + * @return + */ + @Override + public int changePassword(String... da) { + + ContentValues values=new ContentValues(); + values.put("s_pwd", da[1]); + + String das[]={da[0]}; + try{ + return db.update("d_admin",values,"s_id=?",das); + }catch (Exception e){ + return -1; + } + + + } + + public int changeMes(String ...da){ + ContentValues values=new ContentValues(); + values.put("s_name", da[1]); + values.put("s_sex", da[2]); + values.put("s_phone", da[3]); + values.put("s_age", da[4]); + String das[]={da[0]}; + try{ + return db.update("d_admin",values,"s_id=?",das); + }catch (Exception e){ + return -1; + } + } + + + public Map showAccountMes(String account){ + + Map map=new HashMap<>(); + String da[]={account}; + Cursor result = db.rawQuery("select s_name,s_sex,s_phone,s_age from d_admin where s_id=?", da); + while(result.moveToNext()){ + //姓名 + + //姓名 + //手机号 + //年纪 + String name = result.getString(0); + String sex= result.getString(1); + String phone= result.getString(2); + String age= result.getString(3); + + + map.put("name",name); + map.put("sex",sex); + map.put("phone",phone); + map.put("age",age); + } + return map; + } + + /** + * 删除信息 + * @param da + * @return + */ + @Override + public int delRecord(String... da) { + try { + db.execSQL("delete from d_record where s_id=? and s_uid=?",da); + return 1; + }catch (Exception e){ + return -1; + } + + + } + + + public int saveRecord(String ...da){//id 标题 内容 用户ID 时间 + try { + db.execSQL("INSERT INTO d_record VALUES(?,?,?,?,?)",da); + return 1; + }catch (Exception e){ + + String daa[]={da[1],da[2],da[4],da[0],da[3]}; + try { + db.execSQL("update d_record set s_title=? ,s_con=?,s_time=? where s_id=? and s_uid=?",daa); + return 1; + }catch (Exception ee){ + e.printStackTrace(); + ee.printStackTrace(); + return -1; + } + } + } + + public List showRecord(String id){ + String da[]={id}; + List re=new ArrayList<>();//存储所有备忘录的 + Cursor res = db.rawQuery("select * from d_record where s_uid=?",da); + while(res.moveToNext()){ + Record record=new Record(res.getString(0),res.getString(1),res.getString(2),res.getString(3),res.getString(4)); + re.add(record); + } + + return re; + + } +} diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/dao/impl/AdminDaoImpl.java b/MemoSystem/app/src/main/java/com/example/memosystem/dao/impl/AdminDaoImpl.java new file mode 100644 index 0000000..499dd60 --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/dao/impl/AdminDaoImpl.java @@ -0,0 +1,39 @@ +package com.example.memosystem.dao.impl; + +import com.example.memosystem.bean.Record; + +import java.util.List; +import java.util.Map; + +/** + * 这个是接口用于限制操作 + */ +public interface AdminDaoImpl { + + /** + * 登录的方法 + */ + public int registerAdmin(String ...da); + + /** + * 登录的方法 + * @param da + * @return + */ + + public int loginAdmin(String ...da); + + + public int changePassword(String ...da); + + + public int changeMes(String ...da); + + public Map showAccountMes(String account); + + + public int delRecord(String ...da); + public int saveRecord(String ...da); + + public List showRecord(String id); +} diff --git a/MemoSystem/app/src/main/java/com/example/memosystem/util/DBUtil.java b/MemoSystem/app/src/main/java/com/example/memosystem/util/DBUtil.java new file mode 100644 index 0000000..adceba9 --- /dev/null +++ b/MemoSystem/app/src/main/java/com/example/memosystem/util/DBUtil.java @@ -0,0 +1,56 @@ +package com.example.memosystem.util; + +import android.content.Context; +import android.database.sqlite.SQLiteDatabase; +import android.database.sqlite.SQLiteOpenHelper; + +//alt +回车 +public class DBUtil extends SQLiteOpenHelper { + + + private static final String DATABASE_NAME="db_memo.db";//数据库名字 + + public static SQLiteDatabase db=null;//用他来操作数据库 + + + private static final int DATABASE_VERSION=3;//每一次对数据库脚本的更新都需要将这个数字进行加1 + + + + public DBUtil(Context context) { + super(context, DATABASE_NAME, null, DATABASE_VERSION,null); + } + + + @Override + public void onCreate(SQLiteDatabase db) {//数据库初始化加载的代码 + + db.execSQL("PRAGMA foreign_keys = false"); + db.execSQL("drop table if exists d_admin");//如果这个表存在则删除 + db.execSQL("CREATE TABLE d_admin (s_id varchar(20) primary key," + + " s_pwd varchar(20)," + + " s_name varchar(20)," + + " s_sex varchar(20)," + + " s_phone varchar(20)," + + " s_age varchar(20) )"); + db.execSQL("INSERT INTO d_admin VALUES('root','123456','小铭','男','5696331','18')"); + //-------------管理员 表 + //编号 标题 内容 时间 + db.execSQL("drop table if exists d_record");//如果这个表存在则删除 + db.execSQL("CREATE TABLE d_record (s_id varchar(50) primary key," + + " s_title varchar(20)," + + " s_con text," + + " s_uid varchar(20)," +//用户ID + " s_time varchar(20) )"); + db.execSQL("INSERT INTO d_record VALUES('1','记录一下今天的生活','今天吃了好多零食,看了很多电视剧.','root','2023年9月10日 上午 12:56')"); + // db.execSQL("PRAGMA foreign_keys = true"); + + + } + + @Override + public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {//数据库变动则执行 + onCreate(sqLiteDatabase); + + } +} diff --git a/MemoSystem/app/src/main/res/drawable/add.png b/MemoSystem/app/src/main/res/drawable/add.png new file mode 100644 index 0000000..f3029c3 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/add.png differ diff --git a/MemoSystem/app/src/main/res/drawable/back.png b/MemoSystem/app/src/main/res/drawable/back.png new file mode 100644 index 0000000..c75e6a7 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/back.png differ diff --git a/MemoSystem/app/src/main/res/drawable/bg.jpg b/MemoSystem/app/src/main/res/drawable/bg.jpg new file mode 100644 index 0000000..7670ce5 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/bg.jpg differ diff --git a/MemoSystem/app/src/main/res/drawable/bgfa.jpg b/MemoSystem/app/src/main/res/drawable/bgfa.jpg new file mode 100644 index 0000000..1f98634 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/bgfa.jpg differ diff --git a/MemoSystem/app/src/main/res/drawable/bghua.png b/MemoSystem/app/src/main/res/drawable/bghua.png new file mode 100644 index 0000000..fe51109 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/bghua.png differ diff --git a/MemoSystem/app/src/main/res/drawable/bglv.jpg b/MemoSystem/app/src/main/res/drawable/bglv.jpg new file mode 100644 index 0000000..9649a56 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/bglv.jpg differ diff --git a/MemoSystem/app/src/main/res/drawable/button_style.xml b/MemoSystem/app/src/main/res/drawable/button_style.xml new file mode 100644 index 0000000..6cea55f --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/button_style.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/res/drawable/change_mes_edit_style.xml b/MemoSystem/app/src/main/res/drawable/change_mes_edit_style.xml new file mode 100644 index 0000000..3b25c60 --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/change_mes_edit_style.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/res/drawable/change_mes_manage_style.xml b/MemoSystem/app/src/main/res/drawable/change_mes_manage_style.xml new file mode 100644 index 0000000..e8e4da3 --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/change_mes_manage_style.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/res/drawable/change_pwd.png b/MemoSystem/app/src/main/res/drawable/change_pwd.png new file mode 100644 index 0000000..56b579b Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/change_pwd.png differ diff --git a/MemoSystem/app/src/main/res/drawable/change_pwd_button_style.xml b/MemoSystem/app/src/main/res/drawable/change_pwd_button_style.xml new file mode 100644 index 0000000..68cb1d9 --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/change_pwd_button_style.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/res/drawable/change_pwd_edit_style.xml b/MemoSystem/app/src/main/res/drawable/change_pwd_edit_style.xml new file mode 100644 index 0000000..a9c1f8f --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/change_pwd_edit_style.xml @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/res/drawable/change_style.xml b/MemoSystem/app/src/main/res/drawable/change_style.xml new file mode 100644 index 0000000..3444057 --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/change_style.xml @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/res/drawable/dui.png b/MemoSystem/app/src/main/res/drawable/dui.png new file mode 100644 index 0000000..f427fe0 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/dui.png differ diff --git a/MemoSystem/app/src/main/res/drawable/exit.png b/MemoSystem/app/src/main/res/drawable/exit.png new file mode 100644 index 0000000..4ea3fe1 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/exit.png differ diff --git a/MemoSystem/app/src/main/res/drawable/grzy.png b/MemoSystem/app/src/main/res/drawable/grzy.png new file mode 100644 index 0000000..33f789b Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/grzy.png differ diff --git a/MemoSystem/app/src/main/res/drawable/ic_launcher_background.xml b/MemoSystem/app/src/main/res/drawable/ic_launcher_background.xml new file mode 100644 index 0000000..07d5da9 --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/ic_launcher_background.xml @@ -0,0 +1,170 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MemoSystem/app/src/main/res/drawable/ic_launcher_foreground.xml b/MemoSystem/app/src/main/res/drawable/ic_launcher_foreground.xml new file mode 100644 index 0000000..2b068d1 --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/ic_launcher_foreground.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/res/drawable/icon.png b/MemoSystem/app/src/main/res/drawable/icon.png new file mode 100644 index 0000000..3409681 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/icon.png differ diff --git a/MemoSystem/app/src/main/res/drawable/key.png b/MemoSystem/app/src/main/res/drawable/key.png new file mode 100644 index 0000000..50d0e16 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/key.png differ diff --git a/MemoSystem/app/src/main/res/drawable/line.png b/MemoSystem/app/src/main/res/drawable/line.png new file mode 100644 index 0000000..189f5f6 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/line.png differ diff --git a/MemoSystem/app/src/main/res/drawable/ljt.png b/MemoSystem/app/src/main/res/drawable/ljt.png new file mode 100644 index 0000000..d3cc12c Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/ljt.png differ diff --git a/MemoSystem/app/src/main/res/drawable/mbg.jpg b/MemoSystem/app/src/main/res/drawable/mbg.jpg new file mode 100644 index 0000000..29963cc Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/mbg.jpg differ diff --git a/MemoSystem/app/src/main/res/drawable/mbgfa.png b/MemoSystem/app/src/main/res/drawable/mbgfa.png new file mode 100644 index 0000000..2da1e75 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/mbgfa.png differ diff --git a/MemoSystem/app/src/main/res/drawable/mbghua.png b/MemoSystem/app/src/main/res/drawable/mbghua.png new file mode 100644 index 0000000..c3932c9 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/mbghua.png differ diff --git a/MemoSystem/app/src/main/res/drawable/mbglv.png b/MemoSystem/app/src/main/res/drawable/mbglv.png new file mode 100644 index 0000000..42d0b62 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/mbglv.png differ diff --git a/MemoSystem/app/src/main/res/drawable/mes.png b/MemoSystem/app/src/main/res/drawable/mes.png new file mode 100644 index 0000000..e83b044 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/mes.png differ diff --git a/MemoSystem/app/src/main/res/drawable/radio_style.xml b/MemoSystem/app/src/main/res/drawable/radio_style.xml new file mode 100644 index 0000000..480a67d --- /dev/null +++ b/MemoSystem/app/src/main/res/drawable/radio_style.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/MemoSystem/app/src/main/res/drawable/to.png b/MemoSystem/app/src/main/res/drawable/to.png new file mode 100644 index 0000000..65798d7 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/to.png differ diff --git a/MemoSystem/app/src/main/res/drawable/tx.png b/MemoSystem/app/src/main/res/drawable/tx.png new file mode 100644 index 0000000..842fefa Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/tx.png differ diff --git a/MemoSystem/app/src/main/res/drawable/x.png b/MemoSystem/app/src/main/res/drawable/x.png new file mode 100644 index 0000000..51f4742 Binary files /dev/null and b/MemoSystem/app/src/main/res/drawable/x.png differ diff --git a/MemoSystem/app/src/main/res/layout/activity_add.xml b/MemoSystem/app/src/main/res/layout/activity_add.xml new file mode 100644 index 0000000..79c4b0a --- /dev/null +++ b/MemoSystem/app/src/main/res/layout/activity_add.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/MemoSystem/app/src/main/res/layout/activity_change_pwd.xml b/MemoSystem/app/src/main/res/layout/activity_change_pwd.xml new file mode 100644 index 0000000..c2e6d5b --- /dev/null +++ b/MemoSystem/app/src/main/res/layout/activity_change_pwd.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + +