Compare commits
11 Commits
| Author | SHA1 | Date |
|---|---|---|
|
|
1dda9db3f3 | 3 years ago |
|
|
03fcb23a68 | 3 years ago |
|
|
df0e701f90 | 3 years ago |
|
|
e411d14bef | 3 years ago |
|
|
230b82f838 | 3 years ago |
|
|
06088d3f02 | 3 years ago |
|
|
2ada7a0594 | 3 years ago |
|
|
d21dfc8aa4 | 3 years ago |
|
|
237f9097a8 | 3 years ago |
|
|
7dfb0df511 | 3 years ago |
|
|
dd61b11964 | 3 years ago |
@ -1 +0,0 @@
|
||||
put doc here
|
||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 144 KiB After Width: | Height: | Size: 144 KiB |
|
After Width: | Height: | Size: 117 KiB |
|
After Width: | Height: | Size: 121 KiB |
@ -1,3 +0,0 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
@ -1,6 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<bytecodeTargetLevel target="17" />
|
||||
</component>
|
||||
</project>
|
||||
@ -1,19 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="GradleMigrationSettings" migrationVersion="1" />
|
||||
<component name="GradleSettings">
|
||||
<option name="linkedExternalProjectsSettings">
|
||||
<GradleProjectSettings>
|
||||
<option name="testRunner" value="GRADLE" />
|
||||
<option name="distributionType" value="DEFAULT_WRAPPED" />
|
||||
<option name="externalProjectPath" value="$PROJECT_DIR$" />
|
||||
<option name="modules">
|
||||
<set>
|
||||
<option value="$PROJECT_DIR$" />
|
||||
<option value="$PROJECT_DIR$/app" />
|
||||
</set>
|
||||
</option>
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
</project>
|
||||
@ -1,10 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17_PREVIEW" project-jdk-name="Android Studio default JDK" 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,84 @@
|
||||
package com.example.cauc_route_assistant;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.PopupWindow;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
public class CompanionActivity1 extends AppCompatActivity {
|
||||
|
||||
private ImageButton btn_nvg_seven;
|
||||
private ImageButton btn_nvg_eight;
|
||||
private ImageButton btn_function_menu;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_companion1);
|
||||
|
||||
Intent intent1 = new Intent(this, CompanionActivity1.class);
|
||||
Intent intent2 = new Intent(this, CompanionActivity2.class);
|
||||
Intent intent3 = new Intent(this, RouteActivity1.class);
|
||||
Intent intent4 = new Intent(this, RemindActivity1.class);
|
||||
Intent intent5 = new Intent(this, CompanionActivity1.class);
|
||||
|
||||
|
||||
btn_nvg_seven = findViewById(R.id.btn_nvg_seven);
|
||||
btn_nvg_eight = findViewById(R.id.btn_nvg_eight);
|
||||
|
||||
|
||||
btn_nvg_seven.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(intent1);
|
||||
overridePendingTransition(0, 0);
|
||||
}
|
||||
});
|
||||
btn_nvg_eight.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(intent2);
|
||||
overridePendingTransition(0, 0);
|
||||
}
|
||||
});
|
||||
|
||||
btn_function_menu = findViewById(R.id.btn_function_menu);
|
||||
btn_function_menu.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
View popView = getLayoutInflater().inflate(R.layout.menu_pop,null);
|
||||
|
||||
PopupWindow popupWindow = new PopupWindow(popView ,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
true );
|
||||
//popupWindow.setBackgroundDrawable(getResources().getDrawable(R.mipmap.pic));
|
||||
Button button1 = popView.findViewById(R.id.button1);
|
||||
Button button2 = popView.findViewById(R.id.button2);
|
||||
Button button3 = popView.findViewById(R.id.button3);
|
||||
button1.setOnClickListener(view1 -> {
|
||||
startActivity(intent3);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
button2.setOnClickListener(view1 -> {
|
||||
startActivity(intent4);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
button3.setOnClickListener(view1 -> {
|
||||
startActivity(intent5);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
popupWindow.showAsDropDown(view);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
package com.example.cauc_route_assistant;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.PopupWindow;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
public class CompanionActivity2 extends AppCompatActivity {
|
||||
|
||||
private ImageButton btn_nvg_seven;
|
||||
private ImageButton btn_nvg_eight;
|
||||
private ImageButton btn_function_menu;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_companion2);
|
||||
|
||||
Intent intent1 = new Intent(this, CompanionActivity1.class);
|
||||
Intent intent2 = new Intent(this, CompanionActivity2.class);
|
||||
Intent intent3 = new Intent(this, RouteActivity1.class);
|
||||
Intent intent4 = new Intent(this, RemindActivity1.class);
|
||||
Intent intent5 = new Intent(this, CompanionActivity1.class);
|
||||
|
||||
|
||||
btn_nvg_seven = findViewById(R.id.btn_nvg_seven);
|
||||
btn_nvg_eight = findViewById(R.id.btn_nvg_eight);
|
||||
|
||||
|
||||
btn_nvg_seven.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(intent1);
|
||||
overridePendingTransition(0, 0);
|
||||
}
|
||||
});
|
||||
btn_nvg_eight.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(intent2);
|
||||
overridePendingTransition(0, 0);
|
||||
}
|
||||
});
|
||||
|
||||
btn_function_menu = findViewById(R.id.btn_function_menu);
|
||||
btn_function_menu.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
View popView = getLayoutInflater().inflate(R.layout.menu_pop,null);
|
||||
|
||||
PopupWindow popupWindow = new PopupWindow(popView ,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
true );
|
||||
//popupWindow.setBackgroundDrawable(getResources().getDrawable(R.mipmap.pic));
|
||||
Button button1 = popView.findViewById(R.id.button1);
|
||||
Button button2 = popView.findViewById(R.id.button2);
|
||||
Button button3 = popView.findViewById(R.id.button3);
|
||||
button1.setOnClickListener(view1 -> {
|
||||
startActivity(intent3);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
button2.setOnClickListener(view1 -> {
|
||||
startActivity(intent4);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
button3.setOnClickListener(view1 -> {
|
||||
startActivity(intent5);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
popupWindow.showAsDropDown(view);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,81 @@
|
||||
package com.example.cauc_route_assistant.DataBase;
|
||||
|
||||
import android.content.ContentValues;
|
||||
import android.content.Context;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.database.sqlite.SQLiteOpenHelper;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.example.cauc_route_assistant.bean.UserInfo;
|
||||
|
||||
public class SQLLiteDBHelper extends SQLiteOpenHelper {
|
||||
|
||||
private static final String DB_NAME = "user.db";
|
||||
private static final String TABLE_NAME = "USER_INFO";
|
||||
private static final int DB_VERSION = 1;
|
||||
private static SQLLiteDBHelper mHelper = null;
|
||||
private SQLiteDatabase mRDB = null;
|
||||
private SQLiteDatabase mWDB = null;
|
||||
|
||||
private SQLLiteDBHelper(@Nullable Context context) {
|
||||
super(context, DB_NAME, null, DB_VERSION);
|
||||
}
|
||||
|
||||
public static SQLLiteDBHelper getInstance(Context context) {
|
||||
if (mHelper == null) {
|
||||
mHelper = new SQLLiteDBHelper(context);
|
||||
}
|
||||
return mHelper;
|
||||
}
|
||||
|
||||
public SQLiteDatabase openReadLink() {
|
||||
if (mRDB == null || !mRDB.isOpen()) {
|
||||
mRDB = mHelper.getReadableDatabase();
|
||||
}
|
||||
return mRDB;
|
||||
}
|
||||
|
||||
public SQLiteDatabase openWriteLink() {
|
||||
if (mWDB == null || !mWDB.isOpen()) {
|
||||
mWDB = mHelper.getWritableDatabase();
|
||||
}
|
||||
return mWDB;
|
||||
}
|
||||
|
||||
public void closeLink() {
|
||||
if (mRDB != null && mRDB.isOpen()) {
|
||||
mRDB.close();
|
||||
mRDB = null;
|
||||
}
|
||||
if (mWDB != null && mWDB.isOpen()) {
|
||||
mWDB.close();
|
||||
mWDB = null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate(SQLiteDatabase sqLiteDatabase) {
|
||||
String sql = "CREATE TABLE IF NOT EXISTS " + TABLE_NAME + " (" +
|
||||
"number INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL," +
|
||||
"password VARCHAR NOT NULL," +
|
||||
"isRememberNumber INTEGER NOT NULL," +
|
||||
"isRememberPassword INTEGER NOT NULL);";
|
||||
sqLiteDatabase.execSQL(sql);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onUpgrade(SQLiteDatabase sqLiteDatabase, int i, int i1) {
|
||||
|
||||
}
|
||||
|
||||
public long insert(UserInfo userInfo) {
|
||||
ContentValues values = new ContentValues();
|
||||
values.put("number", userInfo.number);
|
||||
values.put("password", userInfo.password);
|
||||
values.put("isRememberNumber", userInfo.isRememberNumber);
|
||||
values.put("isRememberPassword", userInfo.isRememberPassword);
|
||||
return mWDB.insert(TABLE_NAME, null, values);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
package com.example.cauc_route_assistant;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.PopupWindow;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
public class RemindActivity1 extends AppCompatActivity {
|
||||
|
||||
private ImageButton btn_nvg_five;
|
||||
private ImageButton btn_nvg_six;
|
||||
private ImageButton btn_function_menu;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_remind1);
|
||||
|
||||
Intent intent1 = new Intent(this, RemindActivity1.class);
|
||||
Intent intent2 = new Intent(this, RemindActivity2.class);
|
||||
Intent intent3 = new Intent(this, RouteActivity1.class);
|
||||
Intent intent4 = new Intent(this, RemindActivity1.class);
|
||||
Intent intent5 = new Intent(this, CompanionActivity1.class);
|
||||
|
||||
|
||||
btn_nvg_five = findViewById(R.id.btn_nvg_five);
|
||||
btn_nvg_six = findViewById(R.id.btn_nvg_six);
|
||||
|
||||
|
||||
btn_nvg_five.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(intent1);
|
||||
overridePendingTransition(0, 0);
|
||||
}
|
||||
});
|
||||
btn_nvg_six.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(intent2);
|
||||
overridePendingTransition(0, 0);
|
||||
}
|
||||
});
|
||||
|
||||
btn_function_menu = findViewById(R.id.btn_function_menu);
|
||||
btn_function_menu.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
View popView = getLayoutInflater().inflate(R.layout.menu_pop,null);
|
||||
|
||||
PopupWindow popupWindow = new PopupWindow(popView ,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
true );
|
||||
//popupWindow.setBackgroundDrawable(getResources().getDrawable(R.mipmap.pic));
|
||||
Button button1 = popView.findViewById(R.id.button1);
|
||||
Button button2 = popView.findViewById(R.id.button2);
|
||||
Button button3 = popView.findViewById(R.id.button3);
|
||||
button1.setOnClickListener(view1 -> {
|
||||
startActivity(intent3);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
button2.setOnClickListener(view1 -> {
|
||||
startActivity(intent4);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
button3.setOnClickListener(view1 -> {
|
||||
startActivity(intent5);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
popupWindow.showAsDropDown(view);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,84 @@
|
||||
package com.example.cauc_route_assistant;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Button;
|
||||
import android.widget.ImageButton;
|
||||
import android.widget.PopupWindow;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
public class RemindActivity2 extends AppCompatActivity {
|
||||
|
||||
private ImageButton btn_nvg_five;
|
||||
private ImageButton btn_nvg_six;
|
||||
private ImageButton btn_function_menu;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_remind2);
|
||||
|
||||
Intent intent1 = new Intent(this, RemindActivity1.class);
|
||||
Intent intent2 = new Intent(this, RemindActivity2.class);
|
||||
Intent intent3 = new Intent(this, RouteActivity1.class);
|
||||
Intent intent4 = new Intent(this, RemindActivity1.class);
|
||||
Intent intent5 = new Intent(this, CompanionActivity1.class);
|
||||
|
||||
|
||||
btn_nvg_five = findViewById(R.id.btn_nvg_five);
|
||||
btn_nvg_six = findViewById(R.id.btn_nvg_six);
|
||||
|
||||
|
||||
btn_nvg_five.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(intent1);
|
||||
overridePendingTransition(0, 0);
|
||||
}
|
||||
});
|
||||
btn_nvg_six.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
startActivity(intent2);
|
||||
overridePendingTransition(0, 0);
|
||||
}
|
||||
});
|
||||
|
||||
btn_function_menu = findViewById(R.id.btn_function_menu);
|
||||
btn_function_menu.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
View popView = getLayoutInflater().inflate(R.layout.menu_pop,null);
|
||||
|
||||
PopupWindow popupWindow = new PopupWindow(popView ,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
ViewGroup.LayoutParams.WRAP_CONTENT,
|
||||
true );
|
||||
//popupWindow.setBackgroundDrawable(getResources().getDrawable(R.mipmap.pic));
|
||||
Button button1 = popView.findViewById(R.id.button1);
|
||||
Button button2 = popView.findViewById(R.id.button2);
|
||||
Button button3 = popView.findViewById(R.id.button3);
|
||||
button1.setOnClickListener(view1 -> {
|
||||
startActivity(intent3);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
button2.setOnClickListener(view1 -> {
|
||||
startActivity(intent4);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
button3.setOnClickListener(view1 -> {
|
||||
startActivity(intent5);
|
||||
overridePendingTransition(0, 0);
|
||||
popupWindow.dismiss();
|
||||
});
|
||||
popupWindow.showAsDropDown(view);
|
||||
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,73 @@
|
||||
package com.example.cauc_route_assistant;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import android.widget.EditText;
|
||||
import android.widget.Toast;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.example.cauc_route_assistant.DataBase.SQLLiteDBHelper;
|
||||
import com.example.cauc_route_assistant.bean.UserInfo;
|
||||
|
||||
public class SQLiteHelperActivity extends AppCompatActivity {
|
||||
|
||||
private EditText et_number;
|
||||
private EditText et_password;
|
||||
private Button btn_admit;
|
||||
private Button btn_delete;
|
||||
|
||||
SQLLiteDBHelper mHelper;
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_sqlite_helper);
|
||||
|
||||
et_number = findViewById(R.id.et_dbNumberEditor);
|
||||
et_password = findViewById(R.id.et_dbPasswordEditor);
|
||||
btn_admit = findViewById(R.id.btn_dbAdmit);
|
||||
btn_delete = findViewById(R.id.btn_dbDelete);
|
||||
|
||||
btn_admit.setOnClickListener(new View.OnClickListener() {
|
||||
String number = et_number.getText().toString();
|
||||
String password = et_password.getText().toString();
|
||||
UserInfo user = null;
|
||||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
user = new UserInfo(number, password, false, false);
|
||||
if (mHelper.insert(user) > 0) {
|
||||
Toast.makeText(SQLiteHelperActivity.this, "添加成功", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
else {
|
||||
Toast.makeText(SQLiteHelperActivity.this, "此学号已存在", Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
btn_delete.setOnClickListener(new View.OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStart() {
|
||||
super.onStart();
|
||||
mHelper = SQLLiteDBHelper.getInstance(this);
|
||||
mHelper.openWriteLink();
|
||||
mHelper.openReadLink();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onStop() {
|
||||
super.onStop();
|
||||
mHelper.closeLink();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package com.example.cauc_route_assistant.adapter;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.BaseAdapter;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.example.cauc_route_assistant.R;
|
||||
import com.example.cauc_route_assistant.bean.Route;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class RouteBaseAdapter extends BaseAdapter {
|
||||
|
||||
private Context mContext;
|
||||
private List<Route> mRouteList;
|
||||
|
||||
public RouteBaseAdapter(Context mContext, List<Route> mRouteList) {
|
||||
this.mContext = mContext;
|
||||
this.mRouteList = mRouteList;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getCount() {
|
||||
return mRouteList.size();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getItem(int i) {
|
||||
return mRouteList.get(i);
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getItemId(int i) {
|
||||
return i;
|
||||
}
|
||||
|
||||
@Override
|
||||
public View getView(int i, View convertView, ViewGroup parent) {
|
||||
View view = LayoutInflater.from(mContext).inflate(R.layout.item_route, null);
|
||||
TextView tv_name = view.findViewById(R.id.tv_routeName);
|
||||
TextView tv_time = view.findViewById(R.id.tv_routeTime);
|
||||
TextView tv_location = view.findViewById(R.id.tv_routeLocation);
|
||||
|
||||
Route route = mRouteList.get(i);
|
||||
tv_name.setText(route.getName());
|
||||
tv_time.setText(route.getTime());
|
||||
tv_location.setText(route.getLocation());
|
||||
|
||||
return view;
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package com.example.cauc_route_assistant.bean;
|
||||
|
||||
import java.sql.Time;
|
||||
|
||||
public class Route {
|
||||
|
||||
private String name;
|
||||
public Time beginTime;
|
||||
public Time endTime;
|
||||
private String location;
|
||||
|
||||
public Route(String n, String loc) {
|
||||
this.name = n;
|
||||
this.location = loc;
|
||||
}
|
||||
|
||||
public Route(String n, Time bt, Time et, String loc) {
|
||||
this.beginTime = bt;
|
||||
this.endTime = et;
|
||||
this.name = n;
|
||||
this.location = loc;
|
||||
}
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public String getTime() {
|
||||
return beginTime.toString() + "~" + endTime.toString();
|
||||
}
|
||||
|
||||
public String getLocation() {
|
||||
return location;
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,31 @@
|
||||
package com.example.cauc_route_assistant.bean;
|
||||
|
||||
public class UserInfo {
|
||||
|
||||
public String number;
|
||||
public String password;
|
||||
public boolean isRememberNumber;
|
||||
public boolean isRememberPassword;
|
||||
|
||||
public UserInfo(){}
|
||||
|
||||
public UserInfo(String number, String password, boolean isRememberNumber, boolean isRememberPassword) {
|
||||
this.number = number;
|
||||
this.password = password;
|
||||
this.isRememberNumber = isRememberNumber;
|
||||
this.isRememberPassword = isRememberPassword;
|
||||
}
|
||||
|
||||
public String toNumberString() {
|
||||
return "UserInfo{" +
|
||||
"number=" + number +
|
||||
'}';
|
||||
}
|
||||
|
||||
public String toPasswordString() {
|
||||
return "UserInfo{" +
|
||||
"password='" + password + '\'' +
|
||||
'}';
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package com.example.cauc_route_assistant.util;
|
||||
|
||||
import android.content.Context;
|
||||
import android.database.sqlite.SQLiteDatabase;
|
||||
import android.os.Bundle;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import com.example.cauc_route_assistant.R;
|
||||
|
||||
public class DataBaseActivity extends AppCompatActivity {
|
||||
|
||||
private static String mDataBaseName = "";
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_data_base);
|
||||
|
||||
mDataBaseName = getFilesDir() + "/mDataBase.db";
|
||||
SQLiteDatabase db = openOrCreateDatabase(mDataBaseName, Context.MODE_PRIVATE, null);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 770 B |
|
After Width: | Height: | Size: 991 B |
|
After Width: | Height: | Size: 710 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 865 B |
|
After Width: | Height: | Size: 892 B |
|
After Width: | Height: | Size: 646 B |
@ -0,0 +1,185 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".CompanionActivity1">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="#353535">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_function_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/function_menu"
|
||||
android:background="#353535"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="15dp"></ImageButton>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_user_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/user_menu"
|
||||
android:background="#353535"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="15dp"></ImageButton>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_alignParentBottom="true">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_nvg_seven"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/bottom_nvg_seven_on"
|
||||
android:background="#FFFFFF"></ImageButton>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_nvg_eight"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/bottom_nvg_eight_off"
|
||||
android:background="#FFFFFF"></ImageButton>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginHorizontal="40dp"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_marginTop="50dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20dp"
|
||||
android:text="上课"
|
||||
android:textColor="#505050"></CheckBox>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20dp"
|
||||
android:text="驿站"
|
||||
android:textColor="#505050"></CheckBox>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20dp"
|
||||
android:text="用餐"
|
||||
android:textColor="#505050"></CheckBox>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20dp"
|
||||
android:text="创高"
|
||||
android:textColor="#505050"></CheckBox>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20dp"
|
||||
android:text="购物"
|
||||
android:textColor="#505050"></CheckBox>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="20dp"
|
||||
android:text="洗浴"
|
||||
android:textColor="#505050"></CheckBox>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_home1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="128dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="单项"
|
||||
android:textColor="@color/design_default_color_on_secondary"
|
||||
android:textSize="20dp"
|
||||
android:translationY="65dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_home2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="132dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="单项"
|
||||
android:textColor="@color/design_default_color_on_secondary"
|
||||
android:textSize="20dp"
|
||||
android:translationY="112dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_home3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="132dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="单项"
|
||||
android:textColor="@color/design_default_color_on_secondary"
|
||||
android:textSize="20dp"
|
||||
android:translationY="159dp"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
</RelativeLayout>
|
||||
@ -0,0 +1,80 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".CompanionActivity1">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="#353535">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_function_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/function_menu"
|
||||
android:background="#353535"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="15dp"></ImageButton>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_user_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/user_menu"
|
||||
android:background="#353535"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="15dp"></ImageButton>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_alignParentBottom="true">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_nvg_seven"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/bottom_nvg_seven_off"
|
||||
android:background="#FFFFFF"></ImageButton>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_nvg_eight"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/bottom_nvg_eight_on"
|
||||
android:background="#FFFFFF"></ImageButton>
|
||||
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/TextView1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="邀请1"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="20dp"
|
||||
android:translationY="50dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/TextView2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="邀请2"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="20dp"
|
||||
android:translationY="90dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
@ -0,0 +1,34 @@
|
||||
<?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=".util.DataBaseActivity">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_dbNumberEditor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="学号"></EditText>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_dbPasswordEditor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="密码"></EditText>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_dbAdmit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="生成/覆盖"></Button>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_dbDelete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="删除"></Button>
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,80 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".RemindActivity1">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="#353535">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_function_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/function_menu"
|
||||
android:background="#353535"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="15dp"></ImageButton>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_user_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/user_menu"
|
||||
android:background="#353535"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="15dp"></ImageButton>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_alignParentBottom="true">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_nvg_five"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/bottom_nvg_five_on"
|
||||
android:background="#FFFFFF"></ImageButton>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_nvg_six"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/bottom_nvg_six_off"
|
||||
android:background="#FFFFFF"></ImageButton>
|
||||
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/TextView1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="提醒1"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="20dp"
|
||||
android:translationY="50dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/TextView2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="提醒2"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="20dp"
|
||||
android:translationY="90dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
@ -0,0 +1,90 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".RemindActivity1">
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="50dp"
|
||||
android:orientation="horizontal"
|
||||
android:layout_alignParentTop="true"
|
||||
android:background="#353535">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_function_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/function_menu"
|
||||
android:background="#353535"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="15dp"></ImageButton>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_user_menu"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/user_menu"
|
||||
android:background="#353535"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginRight="15dp"></ImageButton>
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="60dp"
|
||||
android:layout_alignParentBottom="true">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_nvg_five"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:src="@drawable/bottom_nvg_five_off"
|
||||
android:background="#FFFFFF"></ImageButton>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_nvg_six"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:background="#FFFFFF"
|
||||
android:src="@drawable/bottom_nvg_six_on"></ImageButton>
|
||||
|
||||
</LinearLayout>
|
||||
<TextView
|
||||
android:id="@+id/TextView1"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="账户"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="20dp"
|
||||
android:translationY="50dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/TextView2"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="隐私"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="20dp"
|
||||
android:translationY="90dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/multiAutoCompleteTextView3"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="45dp"
|
||||
android:minHeight="48dp"
|
||||
android:text="返回登陆界面"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="20dp"
|
||||
android:translationY="130dp" />
|
||||
|
||||
</RelativeLayout>
|
||||
@ -0,0 +1,34 @@
|
||||
<?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=".util.DataBaseActivity">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_dbNumberEditor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="学号"></EditText>
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_dbPasswordEditor"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:hint="密码"></EditText>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_dbAdmit"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="生成/覆盖"></Button>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_dbDelete"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="删除"></Button>
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="#FFFFFF"
|
||||
android:padding="5dp">
|
||||
<Button
|
||||
android:id="@+id/button1"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="修改"/>
|
||||
<Button
|
||||
android:id="@+id/button2"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="删除"/>
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,49 @@
|
||||
<?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:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_routeName"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_weight="1"
|
||||
android:textSize="25dp"
|
||||
android:textStyle="bold"
|
||||
tools:text="取快递"></TextView>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="2"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_routeTime"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="25dp"
|
||||
tools:text="time"></TextView>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_routeLocation"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="25dp"
|
||||
tools:text="location"></TextView>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="#FFFFFF"
|
||||
android:padding="5dp">
|
||||
<Button
|
||||
android:id="@+id/button1"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="我的行程"/>
|
||||
<Button
|
||||
android:id="@+id/button2"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="提醒"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/button3"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="找同伴"/>
|
||||
|
||||
</LinearLayout>
|
||||