diff --git a/App12-second-ttt/.gitignore b/.gitignore similarity index 100% rename from App12-second-ttt/.gitignore rename to .gitignore diff --git a/App12-second-ttt/.idea/.gitignore b/.idea/.gitignore similarity index 100% rename from App12-second-ttt/.idea/.gitignore rename to .idea/.gitignore diff --git a/App12-second-ttt/.idea/.name b/.idea/.name similarity index 100% rename from App12-second-ttt/.idea/.name rename to .idea/.name diff --git a/App12-second-ttt/.idea/compiler.xml b/.idea/compiler.xml similarity index 100% rename from App12-second-ttt/.idea/compiler.xml rename to .idea/compiler.xml diff --git a/App126/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml similarity index 100% rename from App126/.idea/deploymentTargetDropDown.xml rename to .idea/deploymentTargetDropDown.xml diff --git a/App12-second-ttt/.idea/gradle.xml b/.idea/gradle.xml similarity index 100% rename from App12-second-ttt/.idea/gradle.xml rename to .idea/gradle.xml diff --git a/App12-second-ttt/.idea/migrations.xml b/.idea/migrations.xml similarity index 100% rename from App12-second-ttt/.idea/migrations.xml rename to .idea/migrations.xml diff --git a/App12/.idea/misc.xml b/.idea/misc.xml similarity index 92% rename from App12/.idea/misc.xml rename to .idea/misc.xml index 412f4ec..1bd4ac0 100644 --- a/App12/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..6c0b863 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/App12-second-ttt/.idea/deploymentTargetDropDown.xml b/App12-second-ttt/.idea/deploymentTargetDropDown.xml deleted file mode 100644 index 5bef849..0000000 --- a/App12-second-ttt/.idea/deploymentTargetDropDown.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second-ttt/.idea/misc.xml b/App12-second-ttt/.idea/misc.xml deleted file mode 100644 index 412f4ec..0000000 --- a/App12-second-ttt/.idea/misc.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second-ttt/app/src/main/java/com/example/app1/MainActivity3.java b/App12-second-ttt/app/src/main/java/com/example/app1/MainActivity3.java deleted file mode 100644 index 8438cbc..0000000 --- a/App12-second-ttt/app/src/main/java/com/example/app1/MainActivity3.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.example.app1; - -import android.app.DatePickerDialog; -import android.content.DialogInterface; -import android.content.Intent; -import android.os.Bundle; -import android.view.View; -import android.widget.CheckBox; -import android.widget.CompoundButton; -import android.widget.RadioButton; -import android.widget.RadioGroup; -import android.widget.TextView; -import android.widget.Toast; - -import androidx.activity.EdgeToEdge; -import androidx.annotation.IdRes; -import androidx.appcompat.app.AlertDialog; -import androidx.appcompat.app.AppCompatActivity; -import androidx.core.graphics.Insets; -import androidx.core.view.ViewCompat; -import androidx.core.view.WindowInsetsCompat; - -public class MainActivity3 extends AppCompatActivity implements View.OnClickListener{ - private TextView reg_username; - private TextView reg_password; - private TextView reg_sure_password; - private RadioGroup radiogroup; - private CheckBox ah1,ah2,ah3,ah4; - private String sex="男"; - private String aihao1="",aihao2="",aihao3="",aihao4=""; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - //这个是获取布局文件的,这里是你下一个页面的布局文件//注意这个是跳转界面的不能设置错,应该是第一个 - setContentView(R.layout.user_register); - //组件初始化 - reg_username = findViewById(R.id.reg_username); - reg_password = findViewById(R.id.reg_password); - reg_sure_password = findViewById(R.id.reg_sure_password); - - findViewById(R.id.reg_register).setOnClickListener((View.OnClickListener) this); - radiogroup=findViewById(R.id.rp); - radiogroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { - @Override - public void onCheckedChanged(RadioGroup group, int checkedId) { - if(checkedId==R.id.man) - {sex="男";} - if(checkedId==R.id.woman) - {sex="女";} - } - }); - - ah1=findViewById(R.id.chang); - ah2=findViewById(R.id.tiao); - ah3=findViewById(R.id.rap); - ah4=findViewById(R.id.basketball); - CompoundButton.OnCheckedChangeListener occl=new CompoundButton.OnCheckedChangeListener() { - @Override - public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { - if(buttonView.getId()==R.id.chang){ - if(isChecked){aihao1="唱";} - else{aihao1="";} - } - else if(buttonView.getId()==R.id.tiao){ - if(isChecked){aihao2="跳";} - else{aihao2="";} - } - else if(buttonView.getId()==R.id.rap){ - if(isChecked){aihao3="rap";} - else{aihao3="";} - } - else if(buttonView.getId()==R.id.basketball){ - if(isChecked){aihao4="篮球";} - else{aihao4="";} - } - } - }; - ah1.setOnCheckedChangeListener(occl); - ah2.setOnCheckedChangeListener(occl); - ah3.setOnCheckedChangeListener(occl); - ah4.setOnCheckedChangeListener(occl); - } - - @Override - public void onClick(View view){ - String password = reg_password.getText().toString(); - String surepassword = reg_sure_password.getText().toString(); - if(password.equals(surepassword)){ - Intent intent1 = new Intent(this, shuju.class); - Bundle bundle = new Bundle(); - bundle.putString("username",reg_username.getText().toString()); - bundle.putString("paswd",reg_password.getText().toString()); - bundle.putString("sex",sex); - bundle.putString("ah1",aihao1); - bundle.putString("ah2",aihao2); - bundle.putString("ah3",aihao3); - bundle.putString("ah4",aihao4); - - intent1.putExtras(bundle); - startActivity(intent1); - }else{ - Toast.makeText(MainActivity3.this,"两次输入密码错不一致!",Toast.LENGTH_SHORT).show(); - } - - - } - - - - public void fanhui(View view) { - Intent intent5 = new Intent(MainActivity3.this,MainActivity2.class); - this.startActivity(intent5); - } - -} \ No newline at end of file diff --git a/App12-second/.gitignore b/App12-second/.gitignore deleted file mode 100644 index aa724b7..0000000 --- a/App12-second/.gitignore +++ /dev/null @@ -1,15 +0,0 @@ -*.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/App12-second/.idea/.gitignore b/App12-second/.idea/.gitignore deleted file mode 100644 index 26d3352..0000000 --- a/App12-second/.idea/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# Default ignored files -/shelf/ -/workspace.xml diff --git a/App12-second/.idea/.name b/App12-second/.idea/.name deleted file mode 100644 index 9e13355..0000000 --- a/App12-second/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -App1 \ No newline at end of file diff --git a/App12-second/.idea/compiler.xml b/App12-second/.idea/compiler.xml deleted file mode 100644 index b589d56..0000000 --- a/App12-second/.idea/compiler.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/App12-second/.idea/deploymentTargetDropDown.xml b/App12-second/.idea/deploymentTargetDropDown.xml deleted file mode 100644 index 5bef849..0000000 --- a/App12-second/.idea/deploymentTargetDropDown.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second/.idea/gradle.xml b/App12-second/.idea/gradle.xml deleted file mode 100644 index 0897082..0000000 --- a/App12-second/.idea/gradle.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/App12-second/.idea/migrations.xml b/App12-second/.idea/migrations.xml deleted file mode 100644 index f8051a6..0000000 --- a/App12-second/.idea/migrations.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/App12-second/.idea/misc.xml b/App12-second/.idea/misc.xml deleted file mode 100644 index aca0aec..0000000 --- a/App12-second/.idea/misc.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/.gitignore b/App12-second/app/.gitignore deleted file mode 100644 index 42afabf..0000000 --- a/App12-second/app/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/build \ No newline at end of file diff --git a/App12-second/app/build.gradle b/App12-second/app/build.gradle deleted file mode 100644 index 3788724..0000000 --- a/App12-second/app/build.gradle +++ /dev/null @@ -1,40 +0,0 @@ -plugins { - alias(libs.plugins.androidApplication) -} - -android { - namespace 'com.example.app1' - compileSdk 34 - - defaultConfig { - applicationId "com.example.app1" - minSdk 21 - targetSdk 34 - versionCode 1 - versionName "1.0" - - testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" - } - - buildTypes { - release { - minifyEnabled false - proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' - } - } - compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 - } -} - -dependencies { - - implementation libs.appcompat - implementation libs.material - implementation libs.activity - implementation libs.constraintlayout - testImplementation libs.junit - androidTestImplementation libs.ext.junit - androidTestImplementation libs.espresso.core -} \ No newline at end of file diff --git a/App12-second/app/proguard-rules.pro b/App12-second/app/proguard-rules.pro deleted file mode 100644 index 481bb43..0000000 --- a/App12-second/app/proguard-rules.pro +++ /dev/null @@ -1,21 +0,0 @@ -# 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/App12-second/app/src/androidTest/java/com/example/app1/ExampleInstrumentedTest.java b/App12-second/app/src/androidTest/java/com/example/app1/ExampleInstrumentedTest.java deleted file mode 100644 index ab2b7db..0000000 --- a/App12-second/app/src/androidTest/java/com/example/app1/ExampleInstrumentedTest.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.example.app1; - -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.app1", appContext.getPackageName()); - } -} \ No newline at end of file diff --git a/App12-second/app/src/main/AndroidManifest.xml b/App12-second/app/src/main/AndroidManifest.xml deleted file mode 100644 index 045e0b0..0000000 --- a/App12-second/app/src/main/AndroidManifest.xml +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/java/com/example/app1/IndexActivity.java b/App12-second/app/src/main/java/com/example/app1/IndexActivity.java deleted file mode 100644 index b3f9c9c..0000000 --- a/App12-second/app/src/main/java/com/example/app1/IndexActivity.java +++ /dev/null @@ -1,53 +0,0 @@ -package com.example.app1; - -import android.app.FragmentTransaction; -import android.content.Intent; -import android.os.Bundle; -import android.view.View; -import android.widget.Button; -import android.widget.LinearLayout; - -import androidx.annotation.Nullable; -import androidx.appcompat.app.AppCompatActivity; -import androidx.fragment.app.Fragment; - -import com.google.android.material.bottomnavigation.BottomNavigationView; - -public class IndexActivity extends AppCompatActivity implements View.OnClickListener{ - private LinearLayout musicLine,findLine,liveLine,personLine; - - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.index_daohan); - init(); - switchFragment(new musicFragment()); - } - private void init(){ - musicLine = findViewById(R.id.gaohan1); - musicLine.setOnClickListener(this); - findLine = findViewById(R.id.gaohan2); - findLine.setOnClickListener(this); - liveLine = findViewById(R.id.gaohan3); - liveLine.setOnClickListener(this); - personLine = findViewById(R.id.gaohan4); - personLine.setOnClickListener(this); - } - @Override - public void onClick(View view){ - if (view.getId() == R.id.gaohan1) { - switchFragment(new musicFragment()); - } else if (view.getId() == R.id.gaohan2) { - switchFragment(new findFragment()); - } else if (view.getId() == R.id.gaohan3) { - switchFragment(new liveFragment()); - } else if (view.getId() == R.id.gaohan4) { - switchFragment(new personFragment()); - } - } - - private void switchFragment(Fragment fragment) { - getSupportFragmentManager().beginTransaction().replace(R.id.gaohan, fragment).commit(); - } -} diff --git a/App12-second/app/src/main/java/com/example/app1/MainActivity.java b/App12-second/app/src/main/java/com/example/app1/MainActivity.java deleted file mode 100644 index 38ba6cc..0000000 --- a/App12-second/app/src/main/java/com/example/app1/MainActivity.java +++ /dev/null @@ -1,38 +0,0 @@ -package com.example.app1; - -import android.content.Intent; -import android.os.Bundle; -import android.view.View; -import android.widget.Button; - -import androidx.activity.EdgeToEdge; -import androidx.appcompat.app.AppCompatActivity; -import androidx.core.graphics.Insets; -import androidx.core.view.ViewCompat; -import androidx.core.view.WindowInsetsCompat; - -public class MainActivity extends AppCompatActivity { - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.activity_main); - - //获取按钮 - Button button = (Button) findViewById(R.id.button); - - //按钮进行监听 - button.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - //监听按钮,如果点击,就跳转 - Intent intent = new Intent(); - //前一个(MainActivity.this)是目前页面,后面一个是要跳转的下一个页面 - - intent.setClass(MainActivity.this,MainActivity2.class); - startActivity(intent); - } - }); - - } -} diff --git a/App12-second/app/src/main/java/com/example/app1/MainActivity2.java b/App12-second/app/src/main/java/com/example/app1/MainActivity2.java deleted file mode 100644 index 4e416e2..0000000 --- a/App12-second/app/src/main/java/com/example/app1/MainActivity2.java +++ /dev/null @@ -1,63 +0,0 @@ -package com.example.app1; - -import android.annotation.SuppressLint; -import android.content.Intent; -import android.content.SharedPreferences; -import android.os.Bundle; -import android.util.Log; -import android.view.View; -import android.widget.Button; -import android.widget.EditText; -import android.widget.Toast; - -import androidx.activity.EdgeToEdge; -import androidx.appcompat.app.AppCompatActivity; -import androidx.core.graphics.Insets; -import androidx.core.view.ViewCompat; -import androidx.core.view.WindowInsetsCompat; - - -public class MainActivity2 extends AppCompatActivity { - - private EditText username; - private EditText password; - private Button login; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.user_login); - - username = findViewById(R.id.username); - password = findViewById(R.id.password); - login = findViewById(R.id.login); - - login.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - String strUsername = username.getText().toString().trim(); - String strPassword = password.getText().toString().trim(); - - // 从SharedPreferences中获取保存的账号和密码 - SharedPreferences sharedPreferences = getSharedPreferences("user_mes", MODE_PRIVATE); - String savedUsername = sharedPreferences.getString("username", ""); - String savedPassword = sharedPreferences.getString("password", ""); - - if (strUsername.equals(savedUsername) && strPassword.equals(savedPassword)) { - Toast.makeText(MainActivity2.this, "恭喜,登录成功!", Toast.LENGTH_SHORT).show(); - Intent intent1 = new Intent(MainActivity2.this, IndexActivity.class); - startActivity(intent1); - } else { - Toast.makeText(MainActivity2.this, "用户名或密码错误!", Toast.LENGTH_SHORT).show(); - } - - } - }); - } - - //点击注册按钮时,跳转到注册界面 - public void zhuce(View view) { - Intent intent2 = new Intent(MainActivity2.this, MainActivity3.class); - startActivity(intent2); - } -} diff --git a/App12-second/app/src/main/java/com/example/app1/MainActivity3.java b/App12-second/app/src/main/java/com/example/app1/MainActivity3.java deleted file mode 100644 index 8438cbc..0000000 --- a/App12-second/app/src/main/java/com/example/app1/MainActivity3.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.example.app1; - -import android.app.DatePickerDialog; -import android.content.DialogInterface; -import android.content.Intent; -import android.os.Bundle; -import android.view.View; -import android.widget.CheckBox; -import android.widget.CompoundButton; -import android.widget.RadioButton; -import android.widget.RadioGroup; -import android.widget.TextView; -import android.widget.Toast; - -import androidx.activity.EdgeToEdge; -import androidx.annotation.IdRes; -import androidx.appcompat.app.AlertDialog; -import androidx.appcompat.app.AppCompatActivity; -import androidx.core.graphics.Insets; -import androidx.core.view.ViewCompat; -import androidx.core.view.WindowInsetsCompat; - -public class MainActivity3 extends AppCompatActivity implements View.OnClickListener{ - private TextView reg_username; - private TextView reg_password; - private TextView reg_sure_password; - private RadioGroup radiogroup; - private CheckBox ah1,ah2,ah3,ah4; - private String sex="男"; - private String aihao1="",aihao2="",aihao3="",aihao4=""; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - //这个是获取布局文件的,这里是你下一个页面的布局文件//注意这个是跳转界面的不能设置错,应该是第一个 - setContentView(R.layout.user_register); - //组件初始化 - reg_username = findViewById(R.id.reg_username); - reg_password = findViewById(R.id.reg_password); - reg_sure_password = findViewById(R.id.reg_sure_password); - - findViewById(R.id.reg_register).setOnClickListener((View.OnClickListener) this); - radiogroup=findViewById(R.id.rp); - radiogroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { - @Override - public void onCheckedChanged(RadioGroup group, int checkedId) { - if(checkedId==R.id.man) - {sex="男";} - if(checkedId==R.id.woman) - {sex="女";} - } - }); - - ah1=findViewById(R.id.chang); - ah2=findViewById(R.id.tiao); - ah3=findViewById(R.id.rap); - ah4=findViewById(R.id.basketball); - CompoundButton.OnCheckedChangeListener occl=new CompoundButton.OnCheckedChangeListener() { - @Override - public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) { - if(buttonView.getId()==R.id.chang){ - if(isChecked){aihao1="唱";} - else{aihao1="";} - } - else if(buttonView.getId()==R.id.tiao){ - if(isChecked){aihao2="跳";} - else{aihao2="";} - } - else if(buttonView.getId()==R.id.rap){ - if(isChecked){aihao3="rap";} - else{aihao3="";} - } - else if(buttonView.getId()==R.id.basketball){ - if(isChecked){aihao4="篮球";} - else{aihao4="";} - } - } - }; - ah1.setOnCheckedChangeListener(occl); - ah2.setOnCheckedChangeListener(occl); - ah3.setOnCheckedChangeListener(occl); - ah4.setOnCheckedChangeListener(occl); - } - - @Override - public void onClick(View view){ - String password = reg_password.getText().toString(); - String surepassword = reg_sure_password.getText().toString(); - if(password.equals(surepassword)){ - Intent intent1 = new Intent(this, shuju.class); - Bundle bundle = new Bundle(); - bundle.putString("username",reg_username.getText().toString()); - bundle.putString("paswd",reg_password.getText().toString()); - bundle.putString("sex",sex); - bundle.putString("ah1",aihao1); - bundle.putString("ah2",aihao2); - bundle.putString("ah3",aihao3); - bundle.putString("ah4",aihao4); - - intent1.putExtras(bundle); - startActivity(intent1); - }else{ - Toast.makeText(MainActivity3.this,"两次输入密码错不一致!",Toast.LENGTH_SHORT).show(); - } - - - } - - - - public void fanhui(View view) { - Intent intent5 = new Intent(MainActivity3.this,MainActivity2.class); - this.startActivity(intent5); - } - -} \ No newline at end of file diff --git a/App12-second/app/src/main/java/com/example/app1/findFragment.java b/App12-second/app/src/main/java/com/example/app1/findFragment.java deleted file mode 100644 index dd02773..0000000 --- a/App12-second/app/src/main/java/com/example/app1/findFragment.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.app1; - -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; - -import androidx.fragment.app.Fragment; - -public class findFragment extends Fragment { - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ - View view = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_find,container,false); - init(view); - return view; - } - - private void init(View view) { - - } -} diff --git a/App12-second/app/src/main/java/com/example/app1/liveFragment.java b/App12-second/app/src/main/java/com/example/app1/liveFragment.java deleted file mode 100644 index 81d5be3..0000000 --- a/App12-second/app/src/main/java/com/example/app1/liveFragment.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.app1; - -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; - -import androidx.fragment.app.Fragment; - -public class liveFragment extends Fragment { - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ - View view = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_live,container,false); - init(view); - return view; - } - - private void init(View view) { - - } -} diff --git a/App12-second/app/src/main/java/com/example/app1/musicFragment.java b/App12-second/app/src/main/java/com/example/app1/musicFragment.java deleted file mode 100644 index 21e8ce9..0000000 --- a/App12-second/app/src/main/java/com/example/app1/musicFragment.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.app1; - -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; - -import androidx.fragment.app.Fragment; - -public class musicFragment extends Fragment { - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ - View view = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_music,container,false); - init(view); - return view; - } - - private void init(View view) { - - } -} diff --git a/App12-second/app/src/main/java/com/example/app1/personFragment.java b/App12-second/app/src/main/java/com/example/app1/personFragment.java deleted file mode 100644 index aa6d283..0000000 --- a/App12-second/app/src/main/java/com/example/app1/personFragment.java +++ /dev/null @@ -1,21 +0,0 @@ -package com.example.app1; - -import android.os.Bundle; -import android.view.LayoutInflater; -import android.view.View; -import android.view.ViewGroup; - -import androidx.fragment.app.Fragment; - -public class personFragment extends Fragment { - @Override - public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState){ - View view = LayoutInflater.from(getActivity()).inflate(R.layout.fragment_person,container,false); - init(view); - return view; - } - - private void init(View view) { - - } -} diff --git a/App12-second/app/src/main/java/com/example/app1/shuju.java b/App12-second/app/src/main/java/com/example/app1/shuju.java deleted file mode 100644 index 746016f..0000000 --- a/App12-second/app/src/main/java/com/example/app1/shuju.java +++ /dev/null @@ -1,78 +0,0 @@ -package com.example.app1; - -import android.content.Context; -import android.content.DialogInterface; -import android.content.Intent; -import android.content.SharedPreferences; -import android.os.Bundle; -import android.view.View; -import android.widget.TextView; - -import androidx.appcompat.app.AlertDialog; -import androidx.appcompat.app.AppCompatActivity; - -public class shuju extends AppCompatActivity { - - String name,paswd,sex,ah1,ah2,ah3,ah4; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - setContentView(R.layout.shuju); - - // 获取上一个Activity传递过来的用户信息 - Bundle bundle = this.getIntent().getExtras(); - name = bundle.getString("username"); - paswd = bundle.getString("paswd"); - sex = bundle.getString("sex"); - ah1 = bundle.getString("ah1"); - ah2 = bundle.getString("ah2"); - ah3 = bundle.getString("ah3"); - ah4 = bundle.getString("ah4"); - - // 显示用户信息 - TextView show_text = findViewById(R.id.tv_shuju); - show_text.setText("账号:"+name+"\n"+"密码:"+paswd+"\n"+"性别:"+sex+"\n"+"爱好:"+ah1+ah2+ah3+ah4); - - // 保存账号和密码 - saveCredentials(this, name, paswd); - } - - private void saveCredentials(Context context, String username, String password) { - // 创建或获取SharedPreferences对象 - SharedPreferences sharedPreferences = context.getSharedPreferences("user_mes", MODE_PRIVATE); - SharedPreferences.Editor editor = sharedPreferences.edit(); - - // 保存账号和密码 - editor.putString("username", username); - editor.putString("password", password); - - // 提交保存 - editor.apply(); - } - - public void re1(View view){ - AlertDialog.Builder builder=new AlertDialog.Builder(this); - builder.setIcon(R.mipmap.ic_launcher) - .setMessage("确定退出?") - .setPositiveButton("确定", new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - dialog.dismiss(); - Intent intent3 = new Intent(shuju.this, MainActivity2.class); - startActivity(intent3); - } - }) - .setNegativeButton("取消", new DialogInterface.OnClickListener() { - @Override - public void onClick(DialogInterface dialog, int which) { - dialog.dismiss(); - } - }); - AlertDialog adialog=builder.create(); - adialog.show(); - - } - -} - diff --git a/App12-second/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/App12-second/app/src/main/res/drawable-v24/ic_launcher_foreground.xml deleted file mode 100644 index 2b068d1..0000000 --- a/App12-second/app/src/main/res/drawable-v24/ic_launcher_foreground.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/drawable-v24/tubiao_foreground.xml b/App12-second/app/src/main/res/drawable-v24/tubiao_foreground.xml deleted file mode 100644 index da1dcd9..0000000 --- a/App12-second/app/src/main/res/drawable-v24/tubiao_foreground.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/drawable/arrow_down.xml b/App12-second/app/src/main/res/drawable/arrow_down.xml deleted file mode 100644 index a8b409b..0000000 --- a/App12-second/app/src/main/res/drawable/arrow_down.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/drawable/background.jpg b/App12-second/app/src/main/res/drawable/background.jpg deleted file mode 100644 index 447560b..0000000 Binary files a/App12-second/app/src/main/res/drawable/background.jpg and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/background2.jpg b/App12-second/app/src/main/res/drawable/background2.jpg deleted file mode 100644 index 357b543..0000000 Binary files a/App12-second/app/src/main/res/drawable/background2.jpg and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/background3.jpg b/App12-second/app/src/main/res/drawable/background3.jpg deleted file mode 100644 index 13786d2..0000000 Binary files a/App12-second/app/src/main/res/drawable/background3.jpg and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/baseline_add_location_alt_24.xml b/App12-second/app/src/main/res/drawable/baseline_add_location_alt_24.xml deleted file mode 100644 index 5240626..0000000 --- a/App12-second/app/src/main/res/drawable/baseline_add_location_alt_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/App12-second/app/src/main/res/drawable/baseline_face_24.xml b/App12-second/app/src/main/res/drawable/baseline_face_24.xml deleted file mode 100644 index 665f371..0000000 --- a/App12-second/app/src/main/res/drawable/baseline_face_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/App12-second/app/src/main/res/drawable/baseline_lock_24.xml b/App12-second/app/src/main/res/drawable/baseline_lock_24.xml deleted file mode 100644 index 1813549..0000000 --- a/App12-second/app/src/main/res/drawable/baseline_lock_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/App12-second/app/src/main/res/drawable/baseline_music_note_24.xml b/App12-second/app/src/main/res/drawable/baseline_music_note_24.xml deleted file mode 100644 index 96942ff..0000000 --- a/App12-second/app/src/main/res/drawable/baseline_music_note_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/App12-second/app/src/main/res/drawable/baseline_vpn_key_24.xml b/App12-second/app/src/main/res/drawable/baseline_vpn_key_24.xml deleted file mode 100644 index c6d1b76..0000000 --- a/App12-second/app/src/main/res/drawable/baseline_vpn_key_24.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/App12-second/app/src/main/res/drawable/button.xml b/App12-second/app/src/main/res/drawable/button.xml deleted file mode 100644 index a8b409b..0000000 --- a/App12-second/app/src/main/res/drawable/button.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/drawable/button_login.xml b/App12-second/app/src/main/res/drawable/button_login.xml deleted file mode 100644 index d5d20ce..0000000 --- a/App12-second/app/src/main/res/drawable/button_login.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/drawable/button_regist.xml b/App12-second/app/src/main/res/drawable/button_regist.xml deleted file mode 100644 index c69c325..0000000 --- a/App12-second/app/src/main/res/drawable/button_regist.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/drawable/diantai.png b/App12-second/app/src/main/res/drawable/diantai.png deleted file mode 100644 index b9da5f9..0000000 Binary files a/App12-second/app/src/main/res/drawable/diantai.png and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/find.png b/App12-second/app/src/main/res/drawable/find.png deleted file mode 100644 index aa09bab..0000000 Binary files a/App12-second/app/src/main/res/drawable/find.png and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/ic_launcher_background.xml b/App12-second/app/src/main/res/drawable/ic_launcher_background.xml deleted file mode 100644 index 07d5da9..0000000 --- a/App12-second/app/src/main/res/drawable/ic_launcher_background.xml +++ /dev/null @@ -1,170 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/App12-second/app/src/main/res/drawable/img.png b/App12-second/app/src/main/res/drawable/img.png deleted file mode 100644 index 34fee5f..0000000 Binary files a/App12-second/app/src/main/res/drawable/img.png and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/live.png b/App12-second/app/src/main/res/drawable/live.png deleted file mode 100644 index c22a754..0000000 Binary files a/App12-second/app/src/main/res/drawable/live.png and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/music.png b/App12-second/app/src/main/res/drawable/music.png deleted file mode 100644 index 6e02e8f..0000000 Binary files a/App12-second/app/src/main/res/drawable/music.png and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/note.xml b/App12-second/app/src/main/res/drawable/note.xml deleted file mode 100644 index 1181693..0000000 --- a/App12-second/app/src/main/res/drawable/note.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/drawable/person.png b/App12-second/app/src/main/res/drawable/person.png deleted file mode 100644 index 5e78818..0000000 Binary files a/App12-second/app/src/main/res/drawable/person.png and /dev/null differ diff --git a/App12-second/app/src/main/res/drawable/twotone_person_add_alt_24.xml b/App12-second/app/src/main/res/drawable/twotone_person_add_alt_24.xml deleted file mode 100644 index b3a2a80..0000000 --- a/App12-second/app/src/main/res/drawable/twotone_person_add_alt_24.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/App12-second/app/src/main/res/layout/activity_main.xml b/App12-second/app/src/main/res/layout/activity_main.xml deleted file mode 100644 index a60028a..0000000 --- a/App12-second/app/src/main/res/layout/activity_main.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/layout/activity_main2.xml b/App12-second/app/src/main/res/layout/activity_main2.xml deleted file mode 100644 index 7688977..0000000 --- a/App12-second/app/src/main/res/layout/activity_main2.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/layout/content.xml b/App12-second/app/src/main/res/layout/content.xml deleted file mode 100644 index c825e86..0000000 --- a/App12-second/app/src/main/res/layout/content.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/layout/fragment_find.xml b/App12-second/app/src/main/res/layout/fragment_find.xml deleted file mode 100644 index be79926..0000000 --- a/App12-second/app/src/main/res/layout/fragment_find.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/layout/fragment_live.xml b/App12-second/app/src/main/res/layout/fragment_live.xml deleted file mode 100644 index f0a5aa2..0000000 --- a/App12-second/app/src/main/res/layout/fragment_live.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/layout/fragment_music.xml b/App12-second/app/src/main/res/layout/fragment_music.xml deleted file mode 100644 index 55f894d..0000000 --- a/App12-second/app/src/main/res/layout/fragment_music.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/layout/fragment_person.xml b/App12-second/app/src/main/res/layout/fragment_person.xml deleted file mode 100644 index 355b2c5..0000000 --- a/App12-second/app/src/main/res/layout/fragment_person.xml +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/layout/index_daohan.xml b/App12-second/app/src/main/res/layout/index_daohan.xml deleted file mode 100644 index 69aabc6..0000000 --- a/App12-second/app/src/main/res/layout/index_daohan.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/App12-second/app/src/main/res/layout/shuju.xml b/App12-second/app/src/main/res/layout/shuju.xml deleted file mode 100644 index 1368f57..0000000 --- a/App12-second/app/src/main/res/layout/shuju.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - -