第四次实验代码胡译予

main
Huyiyu 1 year ago
parent 2f8b5e44b5
commit b072003de8

@ -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="app">
<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,9 @@
<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>

@ -0,0 +1,43 @@
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
}
}
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,35 @@
<?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="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:label="@string/app_name"
android:theme="@style/Theme.MyApplication">
<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,48 @@
package com.example.my;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import androidx.appcompat.app.AppCompatActivity;
public class LoginActivity extends AppCompatActivity implements View.OnClickListener {
private TextView register, login;
private EditText username, password;
@Override
protected void onCreate(Bundle savedInstanceState) {
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) {
Intent home = new Intent(LoginActivity.this, MainActivity.class);
startActivity(home);
}
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,126 @@
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;
}
});
//默认首页选中
selectedFragment(0);
}
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) {
blankFragment = new BlankFragment();
fragmentTransaction.add(R.id.content, blankFragment);
} else {
fragmentTransaction.show(blankFragment);
}
}
//提交
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);
}
if (blankFragment != null) {
fragmentTransaction.hide(blankFragment);
}
}
}

@ -0,0 +1,76 @@
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;
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类中的方法
//控制注册按钮点击完后不给点击了
boolean flag = false;
@Override
protected void onCreate(Bundle savedInstanceState) {
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);
gobak(view);
}
}
//跳转回登录页面
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,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,24 @@
package com.example.my.fragment;
import android.app.Activity;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import androidx.fragment.app.Fragment;
import com.example.my.R;
public class BlankFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_blank, container, false);
}
}

@ -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,21 @@
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 SearchFragment extends Fragment {
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_search, container, false);
}
}

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="username"
android:inputType="text"
android:gravity="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:gravity="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:gravity="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,194 @@
<?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/lightgreen"
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: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:gravity="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:gravity="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:gravity="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,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,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,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,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/more"
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>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?><!--
Sample data extraction rules file; uncomment and customize as necessary.
See https://developer.android.com/about/versions/12/backup-restore#xml-changes
for details.
-->
<data-extraction-rules>
<cloud-backup>
<!-- TODO: Use <include> and <exclude> to control what is backed up.
<include .../>
<exclude .../>
-->
</cloud-backup>
<!--
<device-transfer>
<include .../>
<exclude .../>
</device-transfer>
-->
</data-extraction-rules>

@ -0,0 +1,17 @@
package com.example.my;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
}
}

@ -0,0 +1,4 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.androidApplication) apply false
}

@ -0,0 +1,22 @@
# Project-wide Gradle settings.
# IDE (e.g. Android Studio) users:
# Gradle settings configured through the IDE *will override*
# any settings specified in this file.
# For more details on how to configure your build environment visit
# http://www.gradle.org/docs/current/userguide/build_environment.html
# Specifies the JVM arguments used for the daemon process.
# The setting is particularly useful for tweaking memory settings.
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. For more details, visit
# https://developer.android.com/r/tools/gradle-multi-project-decoupled-projects
# org.gradle.parallel=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app's APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.overridePathCheck=true

@ -0,0 +1,22 @@
[versions]
agp = "8.3.0"
junit = "4.13.2"
junitVersion = "1.1.5"
espressoCore = "3.5.1"
appcompat = "1.6.1"
material = "1.10.0"
activity = "1.8.0"
constraintlayout = "2.1.4"
[libraries]
junit = { group = "junit", name = "junit", version.ref = "junit" }
ext-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }
appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
activity = { group = "androidx.activity", name = "activity", version.ref = "activity" }
constraintlayout = { group = "androidx.constraintlayout", name = "constraintlayout", version.ref = "constraintlayout" }
[plugins]
androidApplication = { id = "com.android.application", version.ref = "agp" }

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

Loading…
Cancel
Save