第五次实验代码胡译予

main
Huyiyu 1 year ago
parent bd51f01f8d
commit 9c5eb975c6

15
My/.gitignore vendored

@ -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

@ -0,0 +1,3 @@
# Default ignored files
/shelf/
/workspace.xml

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="17" />
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<value>
<entry key="MainActivity">
<State />
</entry>
</value>
</component>
</project>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
<component name="GradleSettings">
<option name="linkedExternalProjectsSettings">
<GradleProjectSettings>
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveExternalAnnotations" value="false" />
</GradleProjectSettings>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectMigrations">
<option name="MigrateToGradleLocalJavaHome">
<set>
<option value="$PROJECT_DIR$" />
</set>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">
<option name="id" value="Android" />
</component>
</project>

1
My/app/.gitignore vendored

@ -0,0 +1 @@
/build

@ -0,0 +1,46 @@
plugins {
alias(libs.plugins.androidApplication)
}
android {
namespace = "com.example.my"
compileSdk = 34
defaultConfig {
applicationId = "com.example.my"
minSdk = 24
targetSdk = 34
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
}
buildFeatures {
aidl = true
}
}
dependencies {
implementation(libs.appcompat)
implementation(libs.material)
implementation(libs.activity)
implementation(libs.constraintlayout)
testImplementation(libs.junit)
androidTestImplementation(libs.ext.junit)
androidTestImplementation(libs.espresso.core)
}

@ -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

@ -0,0 +1,26 @@
package com.example.my;
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 <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
assertEquals("com.example.my", appContext.getPackageName());
}
}

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="Manifest.permission.ACCESS_FINE_LOCATION" />
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyApplication"
tools:targetApi="31">
<activity
android:name=".BlankActivity"
android:exported="false" />
<activity
android:name=".RegisterActivity"
android:exported="false" />
<activity
android:name=".MainActivity"
android:exported="false" />
<activity
android:name=".Sea_deluser_Activity"
android:label="Sea Delete User Activity">
</activity>
<activity
android:name=".LoginActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>

@ -0,0 +1,88 @@
package com.example.my.Adapter;
import android.annotation.SuppressLint;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.my.R;
import java.util.ArrayList;
import java.util.List;
public class LeftListAdapter extends RecyclerView.Adapter<LeftListAdapter.MyHolder> {
private List<String> dataList = new ArrayList<>();
private int currentIndex=0;
public LeftListAdapter(List<String> dataList) {
this.dataList = dataList;
}
@NonNull
@Override
public MyHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.left_list_item, null);
return new MyHolder(view);
}
@Override
@SuppressLint("RecyclerView")
public void onBindViewHolder(@NonNull MyHolder holder, int position) {
//绑定数据
String name = dataList.get(position);
holder.name.setText(name);
//分类的点击事件
holder.itemView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (null != mLeftListOnClickItemListener) {
mLeftListOnClickItemListener.onItemClick(position);
}
}
});
if (currentIndex == position) {
holder.itemView.setBackgroundResource(R.drawable.type_select_bg);
}else {
holder.itemView.setBackgroundResource(R.drawable.type_selected_no);
}
}
@Override
public int getItemCount() {
return dataList.size();
}
static class MyHolder extends RecyclerView.ViewHolder {
TextView name;
public MyHolder(@NonNull View itemView) {
super(itemView);
name = itemView.findViewById(R.id.name);
}
}
private LeftListOnClickItemListener mLeftListOnClickItemListener;
public void setmLeftListOnClickItemListener(LeftListOnClickItemListener mLeftListOnClickItemListener) {
this.mLeftListOnClickItemListener = mLeftListOnClickItemListener;
}
public interface LeftListOnClickItemListener {
void onItemClick(int position);
}
public void setCurrentIndex(int position) {
this.currentIndex = position;
notifyDataSetChanged();
}
}

@ -0,0 +1,67 @@
package com.example.my.Adapter;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
import com.example.my.R;
import com.example.my.entity.ProductInfo;
import java.util.ArrayList;
import java.util.List;
public class RightListAdapter extends RecyclerView.Adapter<RightListAdapter.MyHolder> {
private List<ProductInfo> mProductInfo = new ArrayList<>();
public void setListData(List<ProductInfo> list) {
this.mProductInfo = list;
//刷新
notifyDataSetChanged();
}
@NonNull
@Override
public MyHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.right_list_item, null);
return new MyHolder(view);
}
@Override
public void onBindViewHolder(@NonNull MyHolder holder, int position) {
//绑定数据
ProductInfo productInfo = mProductInfo.get(position);
holder.pro_img.setImageResource(productInfo.getImg());
holder.pro_title.setText(productInfo.getTitle());
holder.pro_detail.setText(productInfo.getDetails());
holder.pro_price.setText("¥" + productInfo.getPrice()); //int+String 变成文本类型
}
@Override
public int getItemCount() {
return mProductInfo.size();
}
static class MyHolder extends RecyclerView.ViewHolder {
ImageView pro_img;
TextView pro_title;
TextView pro_detail;
TextView pro_price;
public MyHolder(@NonNull View itemView) {
super(itemView);
pro_img = itemView.findViewById(R.id.pro_img);
pro_title = itemView.findViewById(R.id.pro_title);
pro_detail = itemView.findViewById(R.id.pro_detail);
pro_price = itemView.findViewById(R.id.pro_price);
}
}
}

@ -0,0 +1,57 @@
package com.example.my;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;
public class BlankActivity extends AppCompatActivity implements View.OnClickListener {
public MySQLiteOpenHelper user;
public SQLiteDatabase sqL_read;
private Button search_del_btn, insert_btn, update_btn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_blank);
user = new MySQLiteOpenHelper(BlankActivity.this);
System.out.println("userDB=" + user);
/*只有调用getReadableDatabase()或者getWriteableDatabase()函数后才能返回一个SQLiteDatabase对象*/
sqL_read = user.getReadableDatabase();
System.out.println("sqLiteDatabase=" + sqL_read);
init();
}
//组件初始化方法
public void init() {
search_del_btn = findViewById(R.id.search_delete);
insert_btn = findViewById(R.id.add);
update_btn = findViewById(R.id.update);
//添加监听
search_del_btn.setOnClickListener(this);
insert_btn.setOnClickListener(this);
update_btn.setOnClickListener(this);
}
@Override
public void onClick(View view) {
Intent intent;
if (view.getId() == R.id.search_delete) {
intent = new Intent(BlankActivity.this, Sea_deluser_Activity.class);
startActivity(intent);
} else if (view.getId() == R.id.add) {
intent = new Intent(BlankActivity.this, RegisterActivity.class);
startActivity(intent);
} else if (view.getId() == R.id.update) {
intent = new Intent(BlankActivity.this, Updareuser_Activity.class);
startActivity(intent);
} else {
// 默认情况
}
}
}

@ -0,0 +1,80 @@
package com.example.my;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
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;
import com.example.my.entity.User;
public class LoginActivity extends AppCompatActivity implements View.OnClickListener {
private TextView register, login;
private EditText username, password;
private MySQLiteOpenHelper mySQLiteOpenHelper;
@Override
protected void onCreate(Bundle savedInstanceState) {
mySQLiteOpenHelper = new MySQLiteOpenHelper(this);
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
find();
}
public void find(){
login = findViewById(R.id.login);
register = findViewById(R.id.register);
username = findViewById(R.id.userEdit);
password = findViewById(R.id.passEdit);
login.setOnClickListener(this);
register.setOnClickListener(this);
}
@Override
public void onClick(View v) {
if (v.getId() == R.id.login) {
String n = username.getText().toString();
String p = password.getText().toString();
if (n.equals("")) {
Toast.makeText(this, "请输入账号", Toast.LENGTH_SHORT).show();
} else if (p.equals("")) {
Toast.makeText(this, "请输入密码", Toast.LENGTH_SHORT).show();
} else {
boolean login = mySQLiteOpenHelper.login(n, p);
if (login) {
Toast.makeText(this, "登录成功!", Toast.LENGTH_SHORT).show();
User select = mySQLiteOpenHelper.select(n);
Intent home = new Intent(LoginActivity.this, MainActivity.class);
Bundle bundle = new Bundle();
bundle.putString("username", select.username);
bundle.putString("emil", select.email);
bundle.putString("phone", select.phone);
home.putExtras(bundle);
username.setText("");
password.setText("");
startActivity(home);
} else {
Toast.makeText(this, "账号或密码错误,请重新输入", Toast.LENGTH_SHORT).show();
password.setText("");
}
}
}
else if(v.getId()==R.id.register){
Intent re = new Intent(LoginActivity.this, RegisterActivity.class);
startActivity(re);
}
}
@Override
public void onPointerCaptureChanged(boolean hasCapture) {
super.onPointerCaptureChanged(hasCapture);
}
}

@ -0,0 +1,125 @@
package com.example.my;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import androidx.activity.EdgeToEdge;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.example.my.fragment.BlankFragment;
import com.example.my.fragment.ChatFragment;
import com.example.my.fragment.HomeFragment;
import com.example.my.fragment.RegFragment;
import com.example.my.fragment.SearchFragment;
import com.google.android.material.bottomnavigation.BottomNavigationView;
public class MainActivity extends AppCompatActivity {
private HomeFragment homeFragment;
private ChatFragment chatFragment;
private SearchFragment searchFragment;
private RegFragment regFragment;
private BlankFragment blankFragment;
private BottomNavigationView bottomNavigationView;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
//初始化控件
bottomNavigationView = findViewById(R.id.BottomNavigation);
//bottomNavigationView设置点击事件
bottomNavigationView.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem menuItem) {
if (menuItem.getItemId() == R.id.home) {
selectedFragment(0);
} else if (menuItem.getItemId() == R.id.chat) {
selectedFragment(1);
} else if (menuItem.getItemId() == R.id.search) {
selectedFragment(2);
} else if (menuItem.getItemId() == R.id.reg) {
selectedFragment(3);
} else {
selectedFragment(4);
}
return true;
}
});
}
//默认首页选中
private void selectedFragment(int position) {
androidx.fragment.app.FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
hideFragment(fragmentTransaction);
if (position == 0) {
if (homeFragment == null) {
homeFragment = new HomeFragment();
fragmentTransaction.add(R.id.content, homeFragment);
} else {
fragmentTransaction.show(homeFragment);
}
} else if (position == 1) {
if (chatFragment == null) {
chatFragment = new ChatFragment();
fragmentTransaction.add(R.id.content, chatFragment);
} else {
fragmentTransaction.show(chatFragment);
}
} else if (position == 2) {
if (searchFragment == null) {
searchFragment = new SearchFragment();
fragmentTransaction.add(R.id.content, searchFragment);
} else {
fragmentTransaction.show(searchFragment);
}
} else if (position == 3) {
if (regFragment == null) {
regFragment = new RegFragment();
fragmentTransaction.add(R.id.content, regFragment);
} else {
fragmentTransaction.show(regFragment);
}
} else {
if (blankFragment == null ) { // shouldStartBlankActivity 可以是一个额外的条件,用于判断是否应该启动 Activity
Intent intent = new Intent(this, BlankActivity.class);
// 你可以在这里添加额外的数据到 intent 中
// 例如: intent.putExtra("key", value);
startActivity(intent);
} else {
// 如果 blankFragment 不为 null并且不应该启动新的 Activity
// 那么你可以在这里处理 blankFragment 的显示逻辑,比如使用 fragmentTransaction 来显示它
// 例如: fragmentTransaction.show(blankFragment);
// 但根据你的原始代码,这部分逻辑看起来是省略的,因为你只在 else 分支中显示了 Fragment
}
}
//提交
fragmentTransaction.commit();
}
private void hideFragment(androidx.fragment.app.FragmentTransaction fragmentTransaction) {
if (homeFragment != null) {
fragmentTransaction.hide(homeFragment);
}
if (chatFragment != null) {
fragmentTransaction.hide(chatFragment);
}
if (searchFragment != null) {
fragmentTransaction.hide(searchFragment);
}
if (regFragment != null) {
fragmentTransaction.hide(regFragment);
}
}
}

@ -0,0 +1,172 @@
package com.example.my;
import android.annotation.SuppressLint;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteConstraintException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import androidx.annotation.Nullable;
import com.example.my.entity.User;
import java.util.ArrayList;
import java.util.List;
public class MySQLiteOpenHelper extends SQLiteOpenHelper {
//数据库名字
private static final String DATABASE_NAME = "mydatabase";
private static final int DATABASE_VERSION = 1;
private static final String TABLE_USERS = "users";
private static final String COLUMN_ID = "id";
private static final String COLUMN_USERNAME = "username";
private static final String COLUMN_EMAIL = "email";
private static final String COLUMN_PHONE = "phone";
private static final String COLUMN_PASSWORD = "password";
// 数据库创建语句
private static final String DATABASE_CREATE =
"CREATE TABLE " + TABLE_USERS + " (" +
COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
COLUMN_USERNAME + " TEXT NOT NULL, " +
COLUMN_EMAIL + " TEXT NOT NULL, " +
COLUMN_PHONE + " TEXT NOT NULL, " +
COLUMN_PASSWORD + " TEXT NOT NULL);";
public MySQLiteOpenHelper(Context context) {
super(context, DATABASE_NAME, null, DATABASE_VERSION);
}
@Override
public void onCreate(SQLiteDatabase database) {
database.execSQL(DATABASE_CREATE);
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
}
public long register(User user) {
SQLiteDatabase db = getWritableDatabase();
ContentValues values = new ContentValues();
values.put("username", user.getUsername());
values.put("password", user.getPassword());
values.put("phone", user.getPhone());
values.put("email", user.getEmil());
try {
long userId = db.insert("users", null, values);
// 添加日志记录以便调试
Log.d("Register", "New user inserted with ID: " + userId);
return userId;
} catch (SQLiteConstraintException e) {
// 处理主键冲突等异常
Log.e("Register", "Error inserting new user: " + e.getMessage());
return -1;
} catch (Exception e) {
// 处理其他可能的异常
Log.e("Register", "Error inserting new user: " + e.getMessage());
return -1;
}
}
//登录方法实现
public boolean login(String username, String password) {
SQLiteDatabase db = getWritableDatabase();
boolean result = false;
Cursor users = db.query("users", null, "username like?", new String[]{username}, null, null, null);
if (users != null) {
while (users.moveToNext()) {
@SuppressLint("Range") String username1 = users.getString(users.getColumnIndex("username"));
Log.i("users", "login: " + username1);
@SuppressLint("Range") String password1 = users.getString(users.getColumnIndex("password"));
Log.i("users", "login: " + password1);
// 假设我们在这里验证密码
if (password1.equals(password)) {
result = true;
break; // 找到匹配的用户名和密码,退出循环
}
}
users.close();
}
return result;
}
//根据用户名查找当前登录用户信息
public User select(String username) {
SQLiteDatabase db = getWritableDatabase();
User SelectUser = new User();
Cursor user = db.query("users", new String[]{"username", "phone", "email"}, "username=?", new String[]{username}, null, null, null);
while (user.moveToNext()) {
@SuppressLint("Range") String uname = user.getString(user.getColumnIndex("username"));
@SuppressLint("Range") String phone = user.getString(user.getColumnIndex("phone"));
@SuppressLint("Range") String email = user.getString(user.getColumnIndex("email"));
SelectUser.setUsername(uname);
SelectUser.setPhone(phone);
SelectUser.setEmail(email);
}
user.close();
return SelectUser;
}
public void adddata(SQLiteDatabase sqLiteDatabase, String username, String paswd, String email, String phone) {
ContentValues values = new ContentValues();
values.put("username", username);
values.put("paswd", paswd);
values.put("email", email);
values.put("phone", phone);
sqLiteDatabase.insert("users", null, values);
sqLiteDatabase.close();
}
//删除数据
public void delete(SQLiteDatabase sqLiteDatabase, int id) {
/*第一个参数:表名;第二个参数:需要删除的属性名,?代表占位符;第三个参数:属性名的属性值*/
sqLiteDatabase.delete("users", "id=?", new String[]{id + ""});
sqLiteDatabase.close();
}
//更新数据
public void update(SQLiteDatabase sqLiteDatabase, int id, String username,
String paswd, String phone, int email) {
//创建一个ContentValues对象
ContentValues values = new ContentValues();
//以键值对的形式插入
values.put("username", username);
values.put("paswd", paswd);
values.put("phone", phone);
values.put("email", email);
//执行修改的方法
sqLiteDatabase.update("users", values, "id=?", new String[]{id + ""});
sqLiteDatabase.close();
}
//查询数据
public List<User> querydata(SQLiteDatabase sqLiteDatabase) {
Cursor cursor = sqLiteDatabase.query("users", null, null, null, null, null, "id ASC");
List<User> list = new ArrayList<User>();
while (cursor.moveToNext()) {
@SuppressLint("Range") int id = cursor.getInt(cursor.getColumnIndex("id"));
Log.i("SQLite", "id=" + id);
String username = cursor.getString(0);
Log.i("SQLite", "username=" + username);
String paswd = cursor.getString(1);
Log.i("SQLite", "paswd=" + paswd);
String phone = cursor.getString(2);
Log.i("SQLite", "phone=" + phone);
String email = cursor.getString(4);
Log.i("SQLite", "email=" + email);
list.add(new User(id, username, paswd, phone, email));
}
cursor.close();
sqLiteDatabase.close();
return list;
}
}

@ -0,0 +1,105 @@
package com.example.my;
import android.content.Intent;
import android.os.Bundle;
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 com.example.my.entity.User;
public class RegisterActivity extends AppCompatActivity implements View.OnClickListener {
private String name_str = "";
private String phone_str = " ";
private String email_str = " ";
private String paswd_str = " ";
EditText name_edit, phone_edit, email_edit, paswd_edit;
Button button;
//使用MySQLiteOpenHelper类中的方法
private MySQLiteOpenHelper mySQLiteOpenHelper;
//控制注册按钮点击完后不给点击了
boolean flag = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
mySQLiteOpenHelper = new MySQLiteOpenHelper(this);
super.onCreate(savedInstanceState);
EdgeToEdge.enable(this);
setContentView(R.layout.activity_register);
// 组件初始化
name_edit = (EditText) findViewById(R.id.nameEdit);
phone_edit = (EditText) findViewById(R.id.pnumEdit);
email_edit = (EditText) findViewById(R.id.userEdit);
paswd_edit = (EditText) findViewById(R.id.passEdit);
// 添加监听事件
button = (Button) findViewById(R.id.submit);
button.setOnClickListener((View.OnClickListener) this);
}
@Override
public void onClick(View view) {
if (view.getId() == R.id.submit) {
// name_str = name_edit.getText().toString();
// phone_str = phone_edit.getText().toString();
// email_str = email_edit.getText().toString();
// paswd_str = paswd_edit.getText().toString();
// Intent intent = new Intent(RegisterActivity.this, RegisterActivity2.class);
// Bundle bundle = new Bundle();
// bundle.putString("name", name_str);
// bundle.putString("phone", phone_str);
// bundle.putString("email", email_str);
// bundle.putString("paswd", paswd_str);
// intent.putExtras(bundle);
// startActivity(intent);
register();
gobak(view);
}
}
public void register(){
String ru = name_edit.getText().toString();
String rps = paswd_edit.getText().toString();
String rph = phone_edit.getText().toString();
String rem = email_edit.getText().toString();
User user = new User(ru,rps,rph,rem);
if(ru.equals("")){
Toast.makeText(this, "账号不能为空!", Toast.LENGTH_SHORT).show();
} else if (rps.equals("")) {
Toast.makeText(this, "密码不能为空!", Toast.LENGTH_SHORT).show();
} else if (rph.equals("")) {
Toast.makeText(this, "电话不能为空!", Toast.LENGTH_SHORT).show();
}else if(rem.equals("")){
Toast.makeText(this, "邮箱不能为空!", Toast.LENGTH_SHORT).show();
}else{
long r1 = mySQLiteOpenHelper.register(user);
button.setEnabled(false);
button.setTextColor(0xFFD0EFC6);
if(r1!=-1){
Toast.makeText(this, "注册成功", Toast.LENGTH_SHORT).show();
}else{
Toast.makeText(this, "注册失败!", Toast.LENGTH_SHORT).show();
}
}
}
//跳转回登录页面
public void gobak(View view){
Intent gl = new Intent(RegisterActivity.this,LoginActivity.class);
startActivity(gl);
}
@Override
public void onPointerCaptureChanged(boolean hasCapture) {
super.onPointerCaptureChanged(hasCapture);
}
}

@ -0,0 +1,104 @@
package com.example.my;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
import com.example.my.entity.User;
import java.util.List;
public class Sea_deluser_Activity extends AppCompatActivity {
public ListView user_list;
private List<User> list;
private SQLiteDatabase sqLiteDatabase;
//假设数据库用户不超过10个
private String[] user_mes;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
Log.i("SQLite","Sea_del");
requestWindowFeature(Window.FEATURE_NO_TITLE);
setContentView(R.layout.user_search_delete);
user_list=findViewById(R.id.mes);
MySQLiteOpenHelper users=new MySQLiteOpenHelper(Sea_deluser_Activity.this);
sqLiteDatabase=users.getReadableDatabase();
//获取从数据库查询到的数据
list=users.querydata(sqLiteDatabase);
Log.i("SQLite","list.size()="+list.size());
//把获取到的信息添加到用户名数组中
if (list != null && list.size() > 0) {
// 把获取到的信息添加到用户名数组中
user_mes = new String[list.size()];
for (int i = 0; i < list.size(); i++) {
user_mes[i] = list.get(i).getUsername() + " " +
list.get(i).getPassword() + " " +
list.get(i).getPhone() + " " +
list.get(i).getEmil();
}
// 把用户名显示在ListView上
final ArrayAdapter<String> adapter = new ArrayAdapter<String>(
Sea_deluser_Activity.this, android.R.layout.simple_list_item_1, user_mes);
// 检查user_mes是否为空
if (user_mes != null && user_mes.length > 0) {
user_list.setAdapter(adapter);
} else {
// user_mes为空的情况处理
Toast.makeText(Sea_deluser_Activity.this, "没有数据可显示", Toast.LENGTH_SHORT).show();
}
} else {
// list为空的情况处理
Toast.makeText(Sea_deluser_Activity.this, "查询没有返回任何数据", Toast.LENGTH_SHORT).show();
}
//为listview每个元素添加点击事件
user_list.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
final int id=list.get(i).getId();
//弹出一个对话框
new AlertDialog.Builder(Sea_deluser_Activity.this).setTitle("系统提示")
//设置显示的内容
.setMessage("确定删除该条数据吗!")
//添加确定按钮
.setPositiveButton("确定",new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
//删除数据操作首先获取到id
MySQLiteOpenHelper user_database=new MySQLiteOpenHelper(Sea_deluser_Activity.this);
SQLiteDatabase sqLiteDatabase=user_database.getWritableDatabase();
user_database.delete(sqLiteDatabase,id);
refresh();
Toast.makeText(Sea_deluser_Activity.this,"删除成功",Toast.LENGTH_SHORT).show();
}
}).setNegativeButton("取消",new DialogInterface.OnClickListener() {//添加返回按钮
@Override
public void onClick(DialogInterface dialog, int which) {
}
}).show();//在按键响应事件中显示此对话框
}
});
}
//刷新页面方法
private void refresh() {
finish();
Intent intent = new Intent(Sea_deluser_Activity.this, Sea_deluser_Activity.class);
startActivity(intent);
}
}

@ -0,0 +1,13 @@
package com.example.my;
import android.os.Bundle;
import androidx.appcompat.app.AppCompatActivity;
public class Updareuser_Activity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
}
}

@ -0,0 +1,37 @@
package com.example.my.entity;
import com.example.my.R;
import java.util.ArrayList;
import java.util.List;
public class DataService {
public static List<ProductInfo> getListData(int position) {
List<ProductInfo> list = new ArrayList<>();
if (position == 0) {
list.add(new ProductInfo(0, R.drawable.zz1, "张江碧云苑", "张江集团专浦东地区人员量身定制的服务型租赁社区,坐落于张江高科园南区毗邻中环线申江路段。国企房源,品质有保证", 8500));
list.add(new ProductInfo(0, R.drawable.zz2, "云湖壹号", "该项目小区规划得分高于90.6%本区同类型物业楼盘,社区内配备了访客系统、可视对讲系统、周界防范警报系统等等", 12000));
list.add(new ProductInfo(0, R.drawable.zz3, "新江湾城", "该户型拥有270°观景阳台超明亮采光小区生活、交通便捷环境宜人物业完备", 8233));
} else if (position == 1) {
list.add(new ProductInfo(0, R.drawable.zz2, "云湖壹号", "该项目小区规划得分高于90.6%本区同类型物业楼盘,社区内配备了访客系统、可视对讲系统、周界防范警报系统等等", 12000));
list.add(new ProductInfo(0, R.drawable.zz3, "新江湾城", "该户型拥有270°观景阳台超明亮采光小区生活、交通便捷环境宜人物业完备", 8233));
} else if (position == 2) {
list.add(new ProductInfo(0, R.drawable.zz1, "张江碧云苑", "张江集团专浦东地区人员量身定制的服务型租赁社区,坐落于张江高科园南区毗邻中环线申江路段。国企房源,品质有保证", 8500));
list.add(new ProductInfo(0, R.drawable.zz2, "云湖壹号", "该项目小区规划得分高于90.6%本区同类型物业楼盘,社区内配备了访客系统、可视对讲系统、周界防范警报系统等等", 12000));
list.add(new ProductInfo(0, R.drawable.zz3, "新江湾城", "该户型拥有270°观景阳台超明亮采光小区生活、交通便捷环境宜人物业完备", 8233));
} else if (position == 3) {
list.add(new ProductInfo(0, R.drawable.zz2, "云湖壹号", "该项目小区规划得分高于90.6%本区同类型物业楼盘,社区内配备了访客系统、可视对讲系统、周界防范警报系统等等", 12000));
list.add(new ProductInfo(0, R.drawable.zz3, "新江湾城", "该户型拥有270°观景阳台超明亮采光小区生活、交通便捷环境宜人物业完备", 8233));
} else if (position == 4) {
list.add(new ProductInfo(0, R.drawable.zz1, "张江碧云苑", "张江集团专浦东地区人员量身定制的服务型租赁社区,坐落于张江高科园南区毗邻中环线申江路段。国企房源,品质有保证", 8500));
list.add(new ProductInfo(0, R.drawable.zz2, "云湖壹号", "该项目小区规划得分高于90.6%本区同类型物业楼盘,社区内配备了访客系统、可视对讲系统、周界防范警报系统等等", 12000));
list.add(new ProductInfo(0, R.drawable.zz3, "新江湾城", "该户型拥有270°观景阳台超明亮采光小区生活、交通便捷环境宜人物业完备", 8233));
} else if (position == 5) {
list.add(new ProductInfo(0, R.drawable.zz1, "张江碧云苑", "张江集团专浦东地区人员量身定制的服务型租赁社区,坐落于张江高科园南区毗邻中环线申江路段。国企房源,品质有保证", 8500));
list.add(new ProductInfo(0, R.drawable.zz2, "云湖壹号", "该项目小区规划得分高于90.6%本区同类型物业楼盘,社区内配备了访客系统、可视对讲系统、周界防范警报系统等等", 12000));
}
return list;
}
}

@ -0,0 +1,57 @@
package com.example.my.entity;
public class ProductInfo {
private int id;
private int img;
private String title;
private String details;
private int price;
public ProductInfo(int id, int img, String title, String details, int price) {
this.id = id;
this.img = img;
this.title = title;
this.details = details;
this.price = price;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public int getImg() {
return img;
}
public void setImg(int img) {
this.img = img;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getDetails() {
return details;
}
public void setDetails(String details) {
this.details = details;
}
public int getPrice() {
return price;
}
public void setPrice(int price) {
this.price = price;
}
}

@ -0,0 +1,99 @@
package com.example.my.entity;
public class User {
public String username;
public String password;
public String phone;
public String email;
public String age;
public String sex;
public int id;
public User() {
}
public User(String username, String password, String phone, String emil) {
this.username = username;
this.password = password;
this.phone = phone;
this.email = emil;
}
public User(int id,String username, String password, String phone, String emil ) {
this.username = username;
this.password = password;
this.phone = phone;
this.email = emil;
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
public String getPhone() {
return phone;
}
public void setPhone(String phone) {
this.phone = phone;
}
public String getEmil() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
@Override
public String toString() {
return "User{" +
"username='" + username + '\'' +
", password='" + password + '\'' +
", phone='" + phone + '\'' +
", emil='" + email + '\'' +
", id=" + id +
'}';
}
}

@ -0,0 +1,62 @@
package com.example.my.fragment;
import android.app.Activity;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.my.MySQLiteOpenHelper;
import com.example.my.R;
import com.example.my.RegisterActivity;
import com.example.my.Sea_deluser_Activity;
import com.example.my.Updareuser_Activity;
public class BlankFragment extends Activity implements View.OnClickListener{
public MySQLiteOpenHelper user;
public SQLiteDatabase sqL_read;
private Button search_del_btn, insert_btn, update_btn;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
MySQLiteOpenHelper user = new MySQLiteOpenHelper(this);
System.out.println("userDB=" + user);
/*只有调用getReadableDatabase()或者getWriteableDatabase()函数后才能返回一个SQLiteDatabase对象*/
SQLiteDatabase sqLiteDatabase = user.getReadableDatabase();
System.out.println("sqLiteDatabase=" + sqLiteDatabase);
init();
}
//组件初始化方法
public void init() {
// search_del_btn = findViewById(R.id.search_delete);
// insert_btn = findViewById(R.id.add);
// update_btn = findViewById(R.id.update);
// //添加监听
// search_del_btn.setOnClickListener(this);
// insert_btn.setOnClickListener(this);
// update_btn.setOnClickListener(this);
}
@Override
public void onClick(View view) {
// Intent intent;
// if (view.getId() == R.id.search_delete) {
// intent = new Intent(BlankFragment.this, Sea_deluser_Activity.class);
// startActivity(intent);
// } else if (view.getId() == R.id.add) {
// intent = new Intent(BlankFragment.this, RegisterActivity.class);
// startActivity(intent);
// } else if (view.getId() == R.id.update) {
// intent = new Intent(BlankFragment.this, Updareuser_Activity.class);
// startActivity(intent);
// } else {
// // 默认情况
// }
}
}

@ -0,0 +1,23 @@
package com.example.my.fragment;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.my.R;
public class ChatFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_chat, container, false);
}
}

@ -0,0 +1,78 @@
package com.example.my.fragment;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Toast;
import com.example.my.Adapter.LeftListAdapter;
import com.example.my.Adapter.RightListAdapter;
import com.example.my.R;
import com.example.my.entity.DataService;
import java.util.ArrayList;
import java.util.List;
public class HomeFragment extends Fragment {
private View rootView;
private RecyclerView leftRecyclerView;
private LeftListAdapter mLeftListAdapter;
private List<String> left_date = new ArrayList<>();
private RecyclerView rightRecyclerView;
private RightListAdapter mRightListAdapter;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
rootView = inflater.inflate(R.layout.fragment_home, container, false);
//初始化控件
leftRecyclerView = rootView.findViewById(R.id.leftlist);
rightRecyclerView=rootView.findViewById(R.id.rightlist);
return rootView;
}
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
left_date.add("整租");
left_date.add("合租");
left_date.add("短租");
left_date.add("公寓");
left_date.add("新房");
left_date.add("二手房");
mLeftListAdapter = new LeftListAdapter(left_date);
leftRecyclerView.setAdapter(mLeftListAdapter);
mRightListAdapter=new RightListAdapter();
rightRecyclerView.setAdapter(mRightListAdapter);
//默认加载数据
mRightListAdapter.setListData(DataService.getListData(0));
//点击事件
mLeftListAdapter.setmLeftListOnClickItemListener(new LeftListAdapter.LeftListOnClickItemListener() {
@Override
public void onItemClick(int position) {
mLeftListAdapter.setCurrentIndex(position);
//点击左侧分类切换对应的列表数据
mRightListAdapter.setListData(DataService.getListData(position));
}
});
}
}

@ -0,0 +1,23 @@
package com.example.my.fragment;
import android.os.Bundle;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.my.R;
public class RegFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_reg, container, false);
}
}

@ -0,0 +1,75 @@
package com.example.my.fragment;
import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.recyclerview.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.example.my.Adapter.LeftListAdapter;
import com.example.my.Adapter.RightListAdapter;
import com.example.my.R;
import com.example.my.entity.DataService;
import java.util.ArrayList;
import java.util.List;
public class SearchFragment extends Fragment {
private View rootView;
private RecyclerView leftRecyclerView;
private LeftListAdapter nLeftListAdapter;
private List<String> left_date1 = new ArrayList<>();
private RecyclerView rightRecyclerView;
private RightListAdapter nRightListAdapter;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
rootView = inflater.inflate(R.layout.fragment_search, container, false);
//初始化控件
leftRecyclerView = rootView.findViewById(R.id.leftlist);
rightRecyclerView = rootView.findViewById(R.id.rightlist);
return rootView;
}
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
left_date1.add("整租");
left_date1.add("合租");
left_date1.add("短租");
left_date1.add("公寓");
left_date1.add("新房");
left_date1.add("二手房");
nLeftListAdapter = new LeftListAdapter(left_date1);
leftRecyclerView.setAdapter(nLeftListAdapter);
nRightListAdapter = new RightListAdapter();
rightRecyclerView.setAdapter(nRightListAdapter);
//默认加载数据
nRightListAdapter.setListData(DataService.getListData(0));
//点击事件
nLeftListAdapter.setmLeftListOnClickItemListener(new LeftListAdapter.LeftListOnClickItemListener() {
@Override
public void onItemClick(int position) {
nLeftListAdapter.setCurrentIndex(position);
//点击左侧分类切换对应的列表数据
nRightListAdapter.setListData(DataService.getListData(position));
}
});
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 688 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:radius="50dp" />
<solid android:color="@color/lightgreen"/>
</shape>
</item>
</selector>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#FFFFFF" />
<corners android:radius="5dip"/>
<stroke
android:width="1dip"
android:color="#728ea3" />
</shape>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<stroke android:color="@color/darkgreen" android:width="1dp"/>
<corners android:radius="100dp"/>
</shape>
</item>
</selector>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<stroke android:color="@color/darkgreen" android:width="1dp"/>
<corners android:radius="10dp"/>
</shape>
</item>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="@color/grey"/>
<corners android:radius="10dp"/>
</shape>
</item>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 918 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 812 B

@ -0,0 +1,170 @@
<?xml version="1.0" encoding="utf-8"?>
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path
android:fillColor="#3DDC84"
android:pathData="M0,0h108v108h-108z" />
<path
android:fillColor="#00000000"
android:pathData="M9,0L9,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,0L19,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,0L29,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,0L39,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,0L49,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,0L59,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,0L69,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,0L79,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M89,0L89,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M99,0L99,108"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,9L108,9"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,19L108,19"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,29L108,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,39L108,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,49L108,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,59L108,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,69L108,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,79L108,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,89L108,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M0,99L108,99"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,29L89,29"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,39L89,39"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,49L89,49"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,59L89,59"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,69L89,69"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M19,79L89,79"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M29,19L29,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M39,19L39,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M49,19L49,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M59,19L59,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M69,19L69,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
<path
android:fillColor="#00000000"
android:pathData="M79,19L79,89"
android:strokeWidth="0.8"
android:strokeColor="#33FFFFFF" />
</vector>

@ -0,0 +1,30 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:aapt="http://schemas.android.com/aapt"
android:width="108dp"
android:height="108dp"
android:viewportWidth="108"
android:viewportHeight="108">
<path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z">
<aapt:attr name="android:fillColor">
<gradient
android:endX="85.84757"
android:endY="92.4963"
android:startX="42.9492"
android:startY="49.59793"
android:type="linear">
<item
android:color="#44000000"
android:offset="0.0" />
<item
android:color="#00000000"
android:offset="1.0" />
</gradient>
</aapt:attr>
</path>
<path
android:fillColor="#FFFFFF"
android:fillType="nonZero"
android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z"
android:strokeWidth="1"
android:strokeColor="#00000000" />
</vector>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:radius="50dp"/>
<solid android:color="#E5FDE3"/>
</shape>
</item>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 917 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<corners android:radius="50dp" />
<solid android:color="@color/darkgreen"/>
</shape>
</item>
</selector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@color/white"/>
</shape>
</item>
<item android:top="10dp" android:bottom="10dp" android:right="96dp">
<shape>
<solid android:color="@color/darkgreen"/>
</shape>
</item>
</layer-list>

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape>
<solid android:color="@color/grey" />
</shape>
</item>
</layer-list>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".BlankActivity">
<Button
android:id="@+id/search_delete"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:textSize="17sp"
android:textColor="#FFFFFF"
android:background="#4169E1"
android:text="查询/删除用户信息" />
<Button
android:id="@+id/update"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:textSize="17sp"
android:textColor="#FFFFFF"
android:background="#4169E1"
android:text="修改用户信息" />
<Button
android:id="@+id/add"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:textSize="17sp"
android:textColor="#FFFFFF"
android:background="#4169E1"
android:text="添加用户信息" />
</LinearLayout>

@ -0,0 +1,193 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".LoginActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="314dp"
android:layout_weight="1"
android:scaleType="fitXY"
app:srcCompat="@drawable/login" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="16dp"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:id="@+id/textView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="House"
android:textColor="@color/darkgreen"
android:textSize="45sp"
android:textStyle="bold" />
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Explore"
android:textColor="@color/brown"
android:textSize="45sp" />
</LinearLayout>
<EditText
android:id="@+id/userEdit"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginStart="32dp"
android:layout_marginTop="32dp"
android:layout_marginEnd="32dp"
android:background="@drawable/edittext_background"
android:ems="10"
android:hint="Email adress"
android:inputType="text"
android:textAlignment="center"
android:textSize="16sp" />
<EditText
android:id="@+id/passEdit"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_marginStart="32dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="32dp"
android:background="@drawable/edittext_background"
android:ems="10"
android:hint="Passworld"
android:inputType="textPassword"
android:textAlignment="center"
android:textSize="16sp" />
<TextView
android:id="@+id/textView3"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="32dp"
android:text="Forget Password?"
android:textAlignment="center"
android:textColor="@color/brown"
android:textSize="16sp" />
<TextView
android:id="@+id/login"
style="@android:style/Widget.Button"
android:layout_width="match_parent"
android:layout_height="45dp"
android:layout_margin="32dp"
android:background="@drawable/darkgreen_button_background"
android:text="Login"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="32dp"
android:layout_marginEnd="32dp"
android:orientation="horizontal">
<View
android:id="@+id/view"
android:layout_width="wrap_content"
android:layout_height="1dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="#B2B5B9" />
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:text="OR"
android:textSize="18sp" />
<View
android:id="@+id/view2"
android:layout_width="wrap_content"
android:layout_height="1dp"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:background="#B2B5B9" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="32dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/facebook"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/facebook" />
<ImageView
android:id="@+id/google"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/google" />
<ImageView
android:id="@+id/twitter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
app:srcCompat="@drawable/twitter" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:gravity="center"
android:orientation="horizontal">
<TextView
android:id="@+id/sure"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Aren't a user? "
android:textColor="@color/darkgreen"
android:textSize="16sp" />
<TextView
android:id="@+id/register"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Sign up"
android:textColor="@color/brown"
android:textSize="16sp" />
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity">
<FrameLayout
android:id="@+id/content"
android:layout_above="@id/BottomNavigation"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<com.google.android.material.bottomnavigation.BottomNavigationView
android:id="@+id/BottomNavigation"
android:layout_alignParentBottom="true"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:menu="@menu/navigation"/>
</RelativeLayout>

@ -0,0 +1,195 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".RegisterActivity">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_constraintBottom_toBottomOf="parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="344dp"
app:srcCompat="@drawable/register2" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginLeft="30dp"
android:layout_marginTop="16dp"
android:orientation="horizontal">
<TextView
android:id="@+id/textView"
android:layout_width="185dp"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="Sign-up"
android:textColor="@color/darkgreen"
android:textSize="45sp"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="400dp"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="95dp"
android:orientation="horizontal">
<TextView
android:layout_width="85dp"
android:layout_height="50dp"
android:layout_marginStart="32dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="32dp"
android:layout_weight="1"
android:text="昵称"
android:textColor="@color/brown"
android:textSize="20sp"
android:textStyle="bold" />
<EditText
android:id="@+id/nameEdit"
android:layout_width="270dp"
android:layout_height="55dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="32dp"
android:background="@drawable/edittext_background"
android:ems="10"
android:gravity="center"
android:hint="Name"
android:inputType="text"
android:textAlignment="center"
android:textSize="16sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="95dp"
android:orientation="horizontal">
<TextView
android:layout_width="85dp"
android:layout_height="50dp"
android:layout_marginStart="32dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="32dp"
android:layout_weight="1"
android:text="电话"
android:textColor="@color/brown"
android:textSize="20sp"
android:textStyle="bold" />
<EditText
android:id="@+id/pnumEdit"
android:layout_width="270dp"
android:layout_height="55dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="32dp"
android:background="@drawable/edittext_background"
android:ems="10"
android:hint="Phone number"
android:inputType="phone|number"
android:textAlignment="center"
android:textSize="16sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="95dp"
android:orientation="horizontal">
<TextView
android:layout_width="85dp"
android:layout_height="50dp"
android:layout_marginStart="32dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="32dp"
android:layout_weight="1"
android:text="邮箱"
android:textColor="@color/brown"
android:textSize="20sp"
android:textStyle="bold" />
<EditText
android:id="@+id/userEdit"
android:layout_width="270dp"
android:layout_height="55dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="32dp"
android:background="@drawable/edittext_background"
android:ems="10"
android:hint="Email adress"
android:inputType="text"
android:textAlignment="center"
android:textSize="16sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="95dp"
android:orientation="horizontal">
<TextView
android:layout_width="85dp"
android:layout_height="50dp"
android:layout_marginStart="32dp"
android:layout_marginTop="40dp"
android:layout_marginEnd="32dp"
android:layout_weight="1"
android:text="密码"
android:textColor="@color/brown"
android:textSize="20sp"
android:textStyle="bold" />
<EditText
android:id="@+id/passEdit"
android:layout_width="270dp"
android:layout_height="55dp"
android:layout_marginTop="38dp"
android:layout_marginEnd="32dp"
android:background="@drawable/edittext_background"
android:ems="10"
android:hint="Passworld"
android:inputType="textPassword"
android:textAlignment="center"
android:textSize="16sp" />
</LinearLayout>
</LinearLayout>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/submit"
style="@android:style/Widget.Button"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="32dp"
android:layout_marginTop="60dp"
android:layout_marginRight="32dp"
android:background="@drawable/submit_button"
android:text="Submit"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,129 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/grey_background">
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="16dp">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp">
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Alex Johnson"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/textView5"
app:layout_constraintTop_toBottomOf="@+id/textView5" />
<ImageView
android:id="@+id/logouBtn"
android:layout_width="30dp"
android:layout_height="30dp"
app:layout_constraintEnd_toEndOf="parent"
tools:srcCompat="@drawable/exit" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/filterBtn"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginEnd="6dp"
android:background="@drawable/grey_background"
android:padding="6dp"
tools:srcCompat="@drawable/menu" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/grey_background"
android:orientation="horizontal">
<EditText
android:id="@+id/editTextText"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="4dp"
android:layout_weight="1"
android:background="@drawable/grey_background"
android:ems="10"
android:hint="Search house"
android:inputType="text"
android:padding="8dp"
android:textAlignment="center"
android:textColor="@color/darkgreen"
android:textColorHint="@color/darkgreen"
android:textSize="16sp" />
<ImageView
android:id="@+id/searchBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="6dp"
tools:srcCompat="@drawable/search" />
</LinearLayout>
<ImageView
android:id="@+id/cartBtn"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginStart="6dp"
android:background="@drawable/grey_background"
android:padding="6dp"
tools:srcCompat="@drawable/add" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"></LinearLayout>
</LinearLayout>
</LinearLayout>
</ScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragment.HomeFragment">
<!-- TODO: Update blank fragment layout -->
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/darkgreen"
app:title="交流"
app:titleTextColor="@color/white" />
</androidx.appcompat.widget.LinearLayoutCompat>

@ -0,0 +1,168 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".fragment.HomeFragment">
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/darkgreen"
app:title="Home"
app:titleTextColor="@color/white" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp">
<TextView
android:id="@+id/textView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Welcome"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Alex Johnson"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/textView5"
app:layout_constraintTop_toBottomOf="@+id/textView5" />
<ImageView
android:id="@+id/logouBtn"
android:layout_width="30dp"
android:layout_height="30dp"
app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@drawable/exit"
tools:ignore="MissingConstraints" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:layout_marginBottom="10dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/filterBtn"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginEnd="6dp"
android:background="@drawable/grey_background"
android:padding="6dp"
app:srcCompat="@drawable/menu" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/grey_background"
android:orientation="horizontal">
<EditText
android:id="@+id/editTextText"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_margin="4dp"
android:layout_weight="1"
android:background="@drawable/grey_background"
android:ems="10"
android:hint="Search house"
android:inputType="text"
android:padding="8dp"
android:textAlignment="center"
android:textColor="@color/darkgreen"
android:textColorHint="@color/darkgreen"
android:textSize="16sp" />
<ImageView
android:id="@+id/searchBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="6dp"
app:srcCompat="@drawable/search" />
</LinearLayout>
<ImageView
android:id="@+id/cartBtn"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginStart="6dp"
android:background="@drawable/grey_background"
android:padding="6dp"
tools:srcCompat="@drawable/add" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"></LinearLayout>
</LinearLayout>
</LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="100dp"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/leftlist"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#D1C4C4"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/left_list_item">
</androidx.recyclerview.widget.RecyclerView>
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rightlist"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/right_list_item">
</androidx.recyclerview.widget.RecyclerView>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".fragment.HomeFragment">
<!-- TODO: Update blank fragment layout -->
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/darkgreen"
app:title="个人"
app:titleTextColor="@color/white" />
</androidx.appcompat.widget.LinearLayoutCompat>

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.appcompat.widget.LinearLayoutCompat xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".fragment.SearchFragment">
<!-- TODO: Update blank fragment layout -->
<androidx.appcompat.widget.Toolbar
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/darkgreen"
app:title="搜索"
app:titleTextColor="@color/white" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginStart="16dp"
android:layout_marginTop="16dp"
android:layout_marginEnd="16dp"
android:orientation="horizontal">
<ImageView
android:id="@+id/filterBtn"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginEnd="6dp"
android:background="@drawable/grey_background"
android:padding="6dp"
app:srcCompat="@drawable/menu" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/grey_background"
android:orientation="horizontal">
<EditText
android:id="@+id/editTextText"
android:layout_width="48dp"
android:layout_height="match_parent"
android:layout_margin="4dp"
android:layout_weight="1"
android:background="@drawable/grey_background"
android:ems="10"
android:hint="Search house"
android:inputType="text"
android:padding="8dp"
android:textAlignment="center"
android:textColor="@color/darkgreen"
android:textColorHint="@color/darkgreen"
android:textSize="16sp" />
<ImageView
android:id="@+id/searchBtn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:padding="6dp"
app:srcCompat="@drawable/search" />
</LinearLayout>
<ImageView
android:id="@+id/cartBtn"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginStart="6dp"
android:background="@drawable/grey_background"
android:padding="6dp"
app:srcCompat="@drawable/add" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="26dp"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"></LinearLayout>
</LinearLayout>
</LinearLayout>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="100dp"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/leftlist"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#D1C4C4"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/left_list_item">
</androidx.recyclerview.widget.RecyclerView>
</androidx.appcompat.widget.LinearLayoutCompat>
<androidx.appcompat.widget.LinearLayoutCompat
android:layout_width="match_parent"
android:layout_height="match_parent">
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/rightlist"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/right_list_item">
</androidx.recyclerview.widget.RecyclerView>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>
</androidx.appcompat.widget.LinearLayoutCompat>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/name"
android:layout_width="100dp"
android:layout_height="50dp"
android:gravity="center_vertical"
android:text="5555"
android:paddingLeft="10dp"
tools:ignore="MissingConstraints" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,131 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:background="@drawable/edittext_background2"
android:elevation="3dp">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/pro_img"
android:layout_width="130dp"
android:layout_height="85dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.App.circleImageView"
tools:scaleType="centerCrop"
tools:srcCompat="@drawable/login" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
app:layout_constraintEnd_toStartOf="@+id/pro_detail"
app:layout_constraintTop_toTopOf="@+id/pro_img"
tools:srcCompat="@drawable/favorite" />
<TextView
android:id="@+id/pro_title"
android:layout_width="wrap_content"
android:layout_height="25dp"
android:layout_marginStart="8dp"
android:background="@drawable/light_green_background"
android:gravity="center"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:text="Aparment"
android:textColor="@color/darkgreen"
android:textSize="12sp"
android:textStyle="bold"
app:layout_constraintStart_toEndOf="@+id/pro_img"
app:layout_constraintTop_toTopOf="@+id/pro_img" />
<TextView
android:id="@+id/score"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="5"
android:textSize="12sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/imageView4"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/pro_title" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginEnd="8dp"
app:layout_constraintBottom_toBottomOf="@+id/pro_title"
app:layout_constraintEnd_toStartOf="@+id/score"
app:layout_constraintTop_toTopOf="@+id/pro_title"
tools:srcCompat="@drawable/star" />
<TextView
android:id="@+id/pro_detail"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:text="title"
android:textColor="@color/darkgreen"
android:textSize="16sp"
android:textStyle="bold"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/pro_title"
app:layout_constraintTop_toBottomOf="@+id/pro_title" />
<ImageView
android:id="@+id/imageView5"
android:layout_width="22dp"
android:layout_height="22dp"
android:layout_marginTop="8dp"
app:layout_constraintStart_toStartOf="@+id/pro_detail"
app:layout_constraintTop_toBottomOf="@+id/pro_detail"
tools:srcCompat="@drawable/location" />
<TextView
android:id="@+id/address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="address"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@+id/imageView5"
app:layout_constraintStart_toEndOf="@+id/imageView5"
app:layout_constraintTop_toTopOf="@+id/imageView5" />
<TextView
android:id="@+id/pro_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="¥0"
android:textColor="@color/darkgreen"
android:textSize="16sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/textView10"
app:layout_constraintEnd_toStartOf="@+id/textView10"
app:layout_constraintTop_toTopOf="@+id/textView10" />
<TextView
android:id="@+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="/Month"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@+id/address"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/address"
app:layout_constraintVertical_bias="0.0" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,128 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="225dp"
android:layout_height="260dp"
android:layout_margin="8dp"
android:background="@drawable/edittext_background2"
android:elevation="3dp">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/pro_img"
android:layout_width="0dp"
android:layout_height="124dp"
android:layout_marginStart="8dp"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
app:shapeAppearanceOverlay="@style/ShapeAppearanceOverlay.App.circleImageView"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:scaleType="centerCrop"
tools:srcCompat="@drawable/login" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_margin="16dp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
tools:srcCompat="@drawable/favorite" />
<TextView
android:id="@+id/pro_title"
android:layout_width="wrap_content"
android:layout_height="25dp"
android:layout_marginTop="8dp"
android:paddingStart="8dp"
android:paddingEnd="8dp"
android:background="@drawable/light_green_background"
android:gravity="center"
android:textColor="@color/darkgreen"
android:text="Aparment"
android:textStyle="bold"
android:textSize="12sp"
app:layout_constraintStart_toStartOf="@+id/pro_img"
app:layout_constraintTop_toBottomOf="@+id/pro_img" />
<TextView
android:id="@+id/score"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="8dp"
android:text="5"
android:textSize="12sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@+id/imageView4"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@+id/pro_title" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="25dp"
android:layout_height="25dp"
android:layout_marginEnd="8dp"
app:layout_constraintBottom_toBottomOf="@+id/pro_title"
app:layout_constraintEnd_toStartOf="@+id/score"
app:layout_constraintTop_toTopOf="@+id/pro_title"
tools:srcCompat="@drawable/star" />
<TextView
android:id="@+id/pro_detail"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginEnd="8dp"
android:text="title"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="@color/darkgreen"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/pro_title"
app:layout_constraintTop_toBottomOf="@+id/pro_title" />
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
app:layout_constraintStart_toStartOf="@+id/pro_detail"
app:layout_constraintTop_toBottomOf="@+id/pro_detail"
tools:srcCompat="@drawable/location" />
<TextView
android:id="@+id/address"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="address"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@+id/imageView5"
app:layout_constraintStart_toEndOf="@+id/imageView5"
app:layout_constraintTop_toTopOf="@+id/imageView5" />
<TextView
android:id="@+id/pro_price"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="¥1200"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="@color/darkgreen"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="@+id/imageView5"
app:layout_constraintTop_toBottomOf="@+id/imageView5" />
<TextView
android:id="@+id/textView10"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="8dp"
android:text="/Month"
android:textSize="12sp"
app:layout_constraintBottom_toBottomOf="@+id/pro_price"
app:layout_constraintStart_toEndOf="@+id/pro_price"
app:layout_constraintTop_toTopOf="@+id/pro_price" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,58 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="412dp"
android:layout_height="wrap_content"
android:background="@drawable/edittext_background2"
android:orientation="horizontal">
<ImageView
android:id="@+id/pro_img"
android:layout_width="130dp"
android:layout_height="85dp"
android:layout_margin="8dp"
app:srcCompat="@drawable/login"
tools:scaleType="centerCrop" />
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<TextView
android:id="@+id/pro_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:singleLine="true"
android:text="Aparment"
android:textSize="12sp"
android:textStyle="bold" />
<TextView
android:id="@+id/pro_detail"
android:layout_width="match_parent"
android:layout_height="35dp"
android:layout_marginTop="5dp"
android:layout_marginBottom="5dp"
android:background="@drawable/light_green_background"
android:maxLines="2"
android:text="detail"
android:textColor="@color/darkgreen"
android:textSize="12sp" />
<TextView
android:id="@+id/pro_price"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="¥0"
android:textColor="@color/darkgreen"
android:textSize="16sp"
android:textStyle="bold" />
</LinearLayout>
</LinearLayout>

@ -0,0 +1,34 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Sea_deluser_Activity">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="@color/lightgreen"
android:orientation="horizontal">
<ImageView
android:layout_width="50dp"
android:layout_height="50dp"
android:layout_marginLeft="10dp"
android:src="@drawable/pearson"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="查询用户"
android:textSize="18sp"
android:gravity="center_vertical"
android:textColor="#FFFFFF"/>
</LinearLayout>
<ListView
android:id="@+id/mes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:dividerHeight="2dp"></ListView>
</LinearLayout>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@+id/home"
android:icon="@drawable/home1"
android:title="首页"
/>
<item android:id="@+id/chat"
android:icon="@drawable/chat"
android:title="交流"
/>
<item android:id="@+id/search"
android:icon="@drawable/search"
android:title="搜索"
/>
<item android:id="@+id/reg"
android:icon="@drawable/reg"
android:title="个人"
/>
<item
android:id="@+id/home1"
android:icon="@drawable/more"
android:title="更多" />
</menu>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@drawable/ic_launcher_background" />
<foreground android:drawable="@drawable/ic_launcher_foreground" />
<monochrome android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

@ -0,0 +1,7 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.MyApplication" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your dark theme here. -->
<!-- <item name="colorPrimary">@color/my_dark_primary</item> -->
</style>
</resources>

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
<color name="darkgreen">#3D5943</color>
<color name="lightgreen">#62762f</color>
<color name="brown">#BB8A52</color>
<color name="light_brown">#D7C3B8</color>
<color name="yellow">#FFBA00</color>
<color name="grey">#F5F5F5</color>
</resources>

@ -0,0 +1,7 @@
<resources>
<string name="app_name">城市</string>
<string name="welcome">Welcome</string>
<string name="Alex">Alex Johnson</string>
<!-- TODO: Remove or change this placeholder text -->
<string name="hello_blank_fragment">Hello blank fragment</string>
</resources>

@ -0,0 +1,12 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Base.Theme.MyApplication" parent="Theme.Material3.DayNight.NoActionBar">
<!-- Customize your light theme here. -->
<item name="colorPrimary">@color/darkgreen</item>
</style>
<style name="Theme.MyApplication" parent="Base.Theme.MyApplication"/>
<style name="ShapeAppearanceOverlay.App.circleImageView" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">10dp</item>
</style>
</resources>

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?><!--
Sample backup rules file; uncomment and customize as necessary.
See https://developer.android.com/guide/topics/data/autobackup
for details.
Note: This file is ignored for devices older that API 31
See https://developer.android.com/about/versions/12/backup-restore
-->
<full-backup-content>
<!--
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
-->
</full-backup-content>

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save