c/s架构分格

master
unknown 5 years ago
parent c2113bae39
commit b0d0b17079

15
Android/.gitignore vendored

@ -0,0 +1,15 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties

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

@ -0,0 +1 @@
Android One

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

@ -0,0 +1,22 @@
<?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="PLATFORM" />
<option name="distributionType" value="DEFAULT_WRAPPED" />
<option name="externalProjectPath" value="$PROJECT_DIR$" />
<option name="gradleJvm" value="1.8 (2)" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
<option name="resolveModulePerSourceSet" value="false" />
<option name="useQualifiedModuleNames" value="true" />
</GradleProjectSettings>
</option>
</component>
</project>

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RemoteRepositoriesConfiguration">
<remote-repository>
<option name="id" value="central" />
<option name="name" value="Maven Central repository" />
<option name="url" value="https://repo1.maven.org/maven2" />
</remote-repository>
<remote-repository>
<option name="id" value="jboss.community" />
<option name="name" value="JBoss Community repository" />
<option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" />
</remote-repository>
<remote-repository>
<option name="id" value="BintrayJCenter" />
<option name="name" value="BintrayJCenter" />
<option name="url" value="https://jcenter.bintray.com/" />
</remote-repository>
<remote-repository>
<option name="id" value="Google" />
<option name="name" value="Google" />
<option name="url" value="https://dl.google.com/dl/android/maven2/" />
</remote-repository>
</component>
</project>

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" 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 @@
/build

@ -0,0 +1,44 @@
plugins {
id 'com.android.application'
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.3"
defaultConfig {
applicationId "com.example.androidone"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.navigation:navigation-fragment:2.2.2'
implementation 'androidx.navigation:navigation-ui:2.2.2'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.2.0'
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}

@ -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.androidone;
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.androidone", appContext.getPackageName());
}
}

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.androidone">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:allowBackup="true"
android:icon="@drawable/lq"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.AndroidOne">
<activity android:name=".ji_shu"
android:launchMode="singleTask"/>
<activity android:name=".ball_rule" />
<activity android:name=".LoginActivity" > <intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter></activity>
<activity
android:name=".Baskertball_star"
android:label="@string/title_activity_main2"
android:theme="@style/Theme.AndroidOne.NoActionBar" />
<activity android:name=".shou_ye">
</activity> <provider
android:authorities="com.example.androidone.fileprovider"
android:name="androidx.core.content.FileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths"/>
</provider>
</application>
</manifest>

@ -0,0 +1,95 @@
package com.example.androidone;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import androidx.appcompat.app.AppCompatActivity;
public class Baskertball_star extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main2);
Button btnOpen = (Button) findViewById(R.id.button);
final Baskertball_star thisActivity = this;
View view = findViewById(R.id.button);
btnOpen.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, Baskertball_star.class);
thisActivity.startActivity(intent);
}
});
Button btnOpen2 = (Button) findViewById(R.id.button2);
btnOpen2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, ji_shu.class);
thisActivity.startActivity(intent);
}
});
Button btnOpen1 = (Button) findViewById(R.id.button1);
btnOpen1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, ball_rule.class);
thisActivity.startActivity(intent);
}
});
ListView lv = findViewById(R.id.lv);
lv.setAdapter(new staradapter(this));
}
}
class staradapter extends BaseAdapter {
private Context context;
private String []star = {
"沙奎尔·奥尼尔","斯蒂芬·库里","科比·布莱恩特","勒布朗·詹姆斯","姚明","林书豪","凯文·杜兰特","易建联","凯里·欧文","阿伦·艾弗森","詹姆斯·哈登","德里克·罗斯","安东尼·戴维斯","赵振程"
};
private int[] imagestar = {
R.drawable.aonier, R.drawable.kuli, R.drawable.kebi, R.drawable.zhang,R.drawable.yaoming,R.drawable.shuhao,R.drawable.dulante,
R.drawable.yjl,R.drawable.ouwen,R.drawable.afs,R.drawable.hadeng,R.drawable.luosi,R.drawable.adni,R.drawable.zhao
};
public staradapter() {}
public staradapter(Context context) {
this.context = context;
}
@Override
public int getCount() {
return star.length;
}
@Override
public Object getItem(int position) {
return null;
}
@Override
public long getItemId(int position) {
return 0;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
ImageView imageView=null;
TextView textView=null;
if (convertView==null) {
convertView = LayoutInflater.from(context).inflate(R.layout.list_item, null);
imageView = convertView.findViewById(R.id.imageView2);
textView = convertView.findViewById(R.id.item_tv);
imageView.setImageResource(imagestar[position]);
textView.setText(star[position]);
}
return convertView;
}
}

@ -0,0 +1,60 @@
package com.example.androidone;
/*登录注册的数据库*/
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
public class DBOpenHelper extends SQLiteOpenHelper {
private SQLiteDatabase db;
public DBOpenHelper(Context context){
super(context,"db_test",null,1);
db = getReadableDatabase();
}
@Override
public void onCreate(SQLiteDatabase db){
db.execSQL("CREATE TABLE IF NOT EXISTS user(" +
"_id INTEGER PRIMARY KEY AUTOINCREMENT," +
"name TEXT," +
"password TEXT)");
}
@Override
public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion){
db.execSQL("DROP TABLE IF EXISTS user");
onCreate(db);
}
/**
*
*
* add()
* delete()
* update()
* getAllData()
*/
public void add(String name,String password){
db.execSQL("INSERT INTO user (name,password) VALUES(?,?)",new Object[]{name,password});
}
public void delete(String name,String password){
db.execSQL("DELETE FROM user WHERE name = AND password ="+name+password);
}
public void updata(String password){
db.execSQL("UPDATE user SET password = ?",new Object[]{password});
}
public ArrayList<User> getAllData(){
ArrayList<User> list = new ArrayList<User>();
/*if(list != null && list.size() != 0)
{
//数据不为空数据的判断。
}*/
Cursor cursor = db.query("user",null,null,null,null,null,"name DESC");
while(cursor.moveToNext()){
String name = cursor.getString(cursor.getColumnIndex("name"));
String password = cursor.getString(cursor.getColumnIndex("password"));
list.add(new User(name,password));
}
cursor.close();
return list;
}
}

@ -0,0 +1,55 @@
package com.example.androidone;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatActivity;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.viewpager.widget.ViewPager;
import android.os.Bundle;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.tabs.TabLayout;
public class LoginActivity extends AppCompatActivity {
TabLayout tabLayout;
ViewPager viewPager;
FloatingActionButton email,wechat,phone;
private ConstraintLayout mEtRegisteractivityzcbj1;
private ConstraintLayout mEtLoginactivitybujv1,ConstraintLayoutzbj;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
tabLayout = findViewById(R.id.tab_layout);
viewPager = findViewById(R.id.view_pager);
email = findViewById(R.id.email);
wechat = findViewById(R.id.wechat);
phone = findViewById(R.id.phone);
mEtLoginactivitybujv1 = findViewById(R.id.bujv);
mEtRegisteractivityzcbj1 = findViewById(R.id.zcbj);
ConstraintLayoutzbj = findViewById(R.id.zbj);
tabLayout.addTab(tabLayout.newTab().setText("Login"));
tabLayout.addTab(tabLayout.newTab().setText("Signup"));
tabLayout.setTabGravity((TabLayout.GRAVITY_FILL));
final LoginAdpter adpter = new LoginAdpter(getSupportFragmentManager(),this,tabLayout.getTabCount());
viewPager.setAdapter(adpter);
viewPager.addOnPageChangeListener( new TabLayout.TabLayoutOnPageChangeListener(tabLayout));
email.setTranslationY(300);
wechat.setTranslationY(300);
phone.setTranslationY(300);
tabLayout.setTranslationY(300);
tabLayout.setAlpha(0);
email.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(400).start();
wechat.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(600).start();
phone.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(800).start();
tabLayout.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(100).start();
}
}

@ -0,0 +1,33 @@
package com.example.androidone;
import android.content.Context;
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentPagerAdapter;
public class LoginAdpter extends FragmentPagerAdapter {
private Context context;
int totalTabs;
public LoginAdpter(FragmentManager fm,Context context,int totalTabs){
super(fm);
this.context = context;
this.totalTabs = totalTabs;}
@NonNull
@Override
public Fragment getItem(int position){
switch(position){
case 0:
LoginTabFragment loginTabFragment = new LoginTabFragment();
return loginTabFragment;
case 1:
SignupTabFragment signupTabFragment = new SignupTabFragment();
return signupTabFragment;
default:
return null;
}
}
public int getCount(){
return totalTabs;
}
}

@ -0,0 +1,108 @@
package com.example.androidone;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import java.util.ArrayList;
public class LoginTabFragment extends Fragment {
EditText email,pass;
TextView forgetPass;
Button login;
float v=0;
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
ViewGroup root = (ViewGroup) inflater.inflate(R.layout.login_tab_fragment,container,false);
pass = root.findViewById(R.id.pass);
forgetPass = root.findViewById(R.id.forgetPass);
email = root.findViewById(R.id.email_denglu);
login = root.findViewById(R.id.button);
email.setTranslationY(800);
forgetPass.setTranslationY(800);
login.setTranslationY(800);
pass.setTranslationY(800);
email.setAlpha(v);
forgetPass.setAlpha(v);
login.setAlpha(v);
pass.setAlpha(v);
email.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(300).start();
forgetPass.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(500).start();
login.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(600).start();
pass.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(400).start();
return root;
}
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
initView();
DBOpenHelper mDBOpenHelper = new DBOpenHelper(getActivity());
login.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
/**
*
*
*
*/
String name = email.getText().toString().trim();
String password = pass.getText().toString().trim();
if (!TextUtils.isEmpty(name) && !TextUtils.isEmpty(password)) {
//根据用户名查询数据库中的密码
ArrayList<User> data = mDBOpenHelper.getAllData();
boolean match = false;
if(data.size() != 0){
for (int i = 0; i < data.size(); i++) {
User user = data.get(i);
if (name.equals(user.getName()) && password.equals(user.getPassword())) {
match = true;
break;
} else {
match = false;
}
}
if (match) {
Toast.makeText(getActivity(), "登录成功", Toast.LENGTH_SHORT).show();
Intent intent = new Intent(getActivity(),shou_ye.class);
startActivity(intent);
//销毁此Activity
} else {
Toast.makeText(getActivity(), "用户名或密码不正确,请重新输入", Toast.LENGTH_SHORT).show();
}
}
} else {
Toast.makeText(getActivity(), "请输入你的用户名或密码", Toast.LENGTH_SHORT).show();
}
}});
}
private void initView() {
// 初始化控件
login = getActivity().findViewById(R.id.button);
email= getActivity().findViewById(R.id.email_denglu);
pass = getActivity().findViewById(R.id.pass);
// 设置点击事件监听器
}
}

@ -0,0 +1,30 @@
package com.example.androidone;
import android.Manifest;
import android.app.Activity;
import android.content.pm.PackageManager;
import androidx.core.app.ActivityCompat;
import androidx.core.content.ContextCompat;
import java.util.ArrayList;
import java.util.List;
public class Permission {
private static final String[] permission = {
Manifest.permission.CAMERA,
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.WRITE_EXTERNAL_STORAGE,
Manifest.permission.ACCESS_FINE_LOCATION};
private List<String> permissionList = new ArrayList<>();
public int REQUEST_CODE = 1000;
public void checkPermission(Activity activity) {
for (int i = 0; i < permission.length; i++) {
if (ContextCompat.checkSelfPermission(activity, permission[i]) != PackageManager.PERMISSION_GRANTED) {
permissionList.add(permission[i]);
}
}
if(permissionList.size()>0){
requestPermission(activity);
}
}
private void requestPermission(Activity activity) {
ActivityCompat.requestPermissions(activity,permissionList.toArray(new String[permissionList.size()]),REQUEST_CODE);
}
}

@ -0,0 +1,27 @@
package com.example.androidone;
import android.content.Context;
import android.content.SharedPreferences;
import java.util.HashMap;
import java.util.Map;
public class Save_c {
public static boolean saveUser(Context context,String name,String number){
SharedPreferences sp=context.getSharedPreferences("date",Context.MODE_PRIVATE);
SharedPreferences.Editor edit=sp.edit();
edit.putString("userName",name);
edit.putString("sz",number);
edit.commit();
return true;
}
public static Map<String,String> getUser(Context context){
SharedPreferences sp=context.getSharedPreferences("date",Context.MODE_PRIVATE);
String name=sp.getString("userName",null);
String number=sp.getString("sz",null);
Map<String,String>userMap=new HashMap<String, String>();
userMap.put("userName",name);
userMap.put("sz",number);
return userMap;
}
}

@ -0,0 +1,99 @@
package com.example.androidone;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
public class SignupTabFragment extends Fragment {
EditText email,uearname,password,confirm;
Button signup;
DBOpenHelper mDBOpenHelper;
float v=0;
@Nullable
@Override
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.signp_fragment,container,false);
uearname = view.findViewById(R.id.Uearname);
password = view.findViewById(R.id.Password);
email = view.findViewById(R.id.email_zhuche);
confirm = view.findViewById(R.id.confirm);
signup = view.findViewById(R.id.signup);
email.setTranslationY(800);
password.setTranslationY(800);
confirm.setTranslationY(800);
uearname.setTranslationY(800);
email.setAlpha(v);
password.setAlpha(v);
confirm.setAlpha(v);
uearname.setAlpha(v);
email.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(300).start();
password.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(500).start();
confirm.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(500).start();
uearname.animate().translationY(0).alpha(1).setDuration(1000).setStartDelay(700).start();
return view;
}
@Override
public void onActivityCreated(@Nullable Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
initView();
mDBOpenHelper = new DBOpenHelper(getActivity());
signup.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
//获取用户输入的用户名、密码
String username11 = uearname.getText().toString().trim();
String password11 = password.getText().toString().trim();
String repassword11 = confirm.getText().toString().trim();
String email_zhuche = email.getText().toString().trim();
//注册验证
if (!TextUtils.isEmpty(username11) && !TextUtils.isEmpty(password11) && !TextUtils.isEmpty(repassword11) && !TextUtils.isEmpty(email_zhuche)&&password11.equals(repassword11)&& password11.length() > 6&&username11.length()>6) {
//将用户名和密码加入到数据库中
mDBOpenHelper.add(username11, password11);
Toast.makeText(getActivity(), "验证通过,注册成功", Toast.LENGTH_SHORT).show();
Intent intent = new Intent();
intent = new Intent(getActivity(),shou_ye.class);
startActivity(intent);
}else {if(!password11.equals(repassword11)&&!TextUtils.isEmpty(username11) && !TextUtils.isEmpty(password11) && !TextUtils.isEmpty(repassword11) && !TextUtils.isEmpty(email_zhuche)&& password11.length() > 6&&username11.length()>6){
Toast.makeText(getActivity(), "密码不一致,请重新输入", Toast.LENGTH_SHORT).show();
}
else if(password11.equals(repassword11)&&!TextUtils.isEmpty(username11) && !TextUtils.isEmpty(password11) && !TextUtils.isEmpty(repassword11) && !TextUtils.isEmpty(email_zhuche)&& password11.length()<6){
Toast.makeText(getActivity(), "密码过短请确保密码长度超过6位", Toast.LENGTH_SHORT).show();
}
else if(password11.equals(repassword11)&&!TextUtils.isEmpty(username11) && !TextUtils.isEmpty(password11) && !TextUtils.isEmpty(repassword11) && !TextUtils.isEmpty(email_zhuche)&& password11.length()>6&&username11.length()<6){
Toast.makeText(getActivity(), "用户名过短请确保用户名长度超过6位", Toast.LENGTH_SHORT).show();
}
else{
Toast.makeText(getActivity(), "未完善信息,注册失败", Toast.LENGTH_SHORT).show();}
}
}
});
}
private void initView(){
signup = (Button)getActivity().findViewById(R.id.signup);
uearname = getActivity().findViewById(R.id.Uearname);
password = getActivity().findViewById(R.id.Password);
confirm = getActivity().findViewById(R.id.confirm);
email = getActivity().findViewById(R.id.email_zhuche);
}
}

@ -0,0 +1,28 @@
package com.example.androidone;
public class User {
private String name; //用户名
private String password; //密码
public User(String name, String password) {
this.name = name;
this.password = password;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getPassword() {
return password;
}
public void setPassword(String password) {
this.password = password;
}
@Override
public String toString() {
return "User{" +
"name='" + name + '\'' +
", password='" + password + '\'' +
'}';
}
}

@ -0,0 +1,174 @@
package com.example.androidone;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.FileProvider;
import android.annotation.SuppressLint;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.net.Uri;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.provider.MediaStore;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageView;
import android.widget.Toast;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
public class ball_rule extends AppCompatActivity {
protected static final int CHANGE_UI = 1;
protected static final int ERROR = 2;
private EditText et_path;
private ImageView ivPic;
public static String currentPath;
public Permission permission;
public static final int REQUEST_IMAGE_CAPTURE = 1;
private Handler handler = new Handler() {
public void handleMessage(android.os.Message msg) {
if (msg.what == CHANGE_UI) {
Bitmap bitmap = (Bitmap) msg.obj;
ivPic.setImageBitmap(bitmap);
} else if (msg.what == ERROR) {
Toast.makeText(ball_rule.this, "显示图片错误", Toast.LENGTH_SHORT).show();
}
}
};
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main3);
et_path = (EditText) findViewById(R.id.et_path);
ivPic = (ImageView) findViewById(R.id.iv_pic);
Button btnOpen = (Button) findViewById(R.id.button);
Button btnOpen11 = (Button) findViewById(R.id.btn_lj);
btnOpen11.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
dispatchTakePictureIntent();
}
});
permission =new Permission();
permission.checkPermission(this);
final ball_rule thisActivity = this;
View view = findViewById(R.id.button);
btnOpen.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, Baskertball_star.class);
thisActivity.startActivity(intent);
}
});
Button btnOpen2 = (Button) findViewById(R.id.button2);
btnOpen2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, ji_shu.class);
thisActivity.startActivity(intent);
}
});
Button btnOpen1 = (Button) findViewById(R.id.button1);
btnOpen1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, ball_rule.class);
thisActivity.startActivity(intent);
}
});
}
public void click(View view) {
final String path = et_path.getText().toString().trim();
if (TextUtils.isEmpty(path)) {
Toast.makeText(this, "图片路径不能为空", Toast.LENGTH_SHORT).show();
} else {
new Thread() {
private HttpURLConnection conn;
private Bitmap bitmap;
public void run() {
try {
URL url = new URL(path);
conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("GET");
conn.setConnectTimeout(5000);
int code = conn.getResponseCode();
if (code == 200) {
InputStream is = conn.getInputStream();
bitmap = BitmapFactory.decodeStream(is);
Message msg = new Message();
msg.what = CHANGE_UI;
msg.obj = bitmap;
handler.sendMessage(msg);
} else {
Message msg = new Message();
msg.what = ERROR;
handler.sendMessage(msg);
}
} catch (Exception e) {
e.printStackTrace();
Message msg = new Message();
msg.what = ERROR;
handler.sendMessage(msg);
}
conn.disconnect();
}
}.start();
}
}
public void dispatchTakePictureIntent() {
Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
//必须确保手机上有相机,才可以继续,否则会一直闪退,故加判断语句
if (takePictureIntent.resolveActivity(getPackageManager()) != null) {
File photoFile = null;
try {
photoFile = createImageFile();
} catch (IOException ex) {
ex.printStackTrace();
}
if (photoFile != null) {
Uri photoURI = FileProvider.getUriForFile(this, "com.example.androidone.fileprovider", photoFile);
takePictureIntent.putExtra(MediaStore.EXTRA_OUTPUT, photoURI);
startActivityForResult(takePictureIntent, REQUEST_IMAGE_CAPTURE);
}
}
}
private File createImageFile() throws IOException {
//Create an image file name
String imageFileName = getTimeToPath();
Log.d("imageFileName", imageFileName);
File storageDir = getExternalFilesDir(Environment.DIRECTORY_PICTURES);
File image = File.createTempFile(
imageFileName,
".jpg",
storageDir
);
currentPath = image.getAbsolutePath();
Log.d("imageFileName", currentPath);
return image;
}
public String getTimeToPath() {
SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss", Locale.CHINA);
Date curDate = new Date();
return format.format(curDate);
}
}

@ -0,0 +1,313 @@
package com.example.androidone;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AlertDialog;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import android.content.DialogInterface;
import java.util.Map;
public class ji_shu extends AppCompatActivity {
private TextView js_1,js_2,js_3,js_4,js_5,js_6;
private Button btn_1,btn_2,btn_3,btn_4,btn_5,btn_6,btn_cancel,btn_return,victory_1;
int jst,jst1,last_js,a,b,c,d;
public EditText q_name,q_name1;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main4);
js_1 = findViewById(R.id.textView_1);
js_2 = findViewById(R.id.textView_2);
q_name=(EditText)findViewById(R.id.dit);
q_name1=(EditText)findViewById(R.id.dit1);
Button btnOpen = (Button) findViewById(R.id.button8);
final ji_shu thisActivity = this;
View view = findViewById(R.id.button);
btnOpen.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, Baskertball_star.class);
thisActivity.startActivity(intent);
}
});
Button btnOpen2 = (Button) findViewById(R.id.button9);
btnOpen2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, ji_shu.class);
thisActivity.startActivity(intent);
}
});
Button btnOpen1 = (Button) findViewById(R.id.button7);
btnOpen1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, ball_rule.class);
thisActivity.startActivity(intent);
}
});
initView();
initView1();
initView2();
initView3();
initView4();
initView5();
reset();
Return();
jieshu();
}
private void jieshu() {
js_1 = findViewById(R.id.textView_1);
js_2 = findViewById(R.id.textView_2);
ImageButton victory_1=(ImageButton)findViewById(R.id.victory_1);
victory_1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String c=q_name.getText().toString();
String d=q_name1.getText().toString();
if (jst > jst1){
AlertDialog.Builder builder = new AlertDialog.Builder(ji_shu.this);
builder.setTitle("比赛结束")
.setIcon(R.drawable.warn)
.setMessage("恭喜"+c+"队拿下本场比赛胜利")
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
jst = Integer.valueOf(js_1.getText().toString());
jst1 = Integer.valueOf(js_2.getText().toString());
jst = 0;
jst1 = 0;
js_1.setText(String.valueOf(jst));
js_2.setText(String.valueOf(jst1));
}
})
.setNegativeButton("返回", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
jst = Integer.valueOf(js_1.getText().toString());
jst1 = Integer.valueOf(js_2.getText().toString());
jst = 0;
jst1 = 0;
js_1.setText(String.valueOf(jst));
js_2.setText(String.valueOf(jst1));
dialog.dismiss();
}
});
AlertDialog dialog = builder.create();
dialog.show();
}
if (jst < jst1){
AlertDialog.Builder builder = new AlertDialog.Builder(ji_shu.this);
builder.setTitle("比赛结束")
.setIcon(R.drawable.warn)
.setMessage("恭喜"+d+"队拿下本场比赛胜利")
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
jst = Integer.valueOf(js_1.getText().toString());
jst1 = Integer.valueOf(js_2.getText().toString());
jst = 0;
jst1 = 0;
js_1.setText(String.valueOf(jst));
js_2.setText(String.valueOf(jst1));
}
})
.setNegativeButton("返回", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
jst = Integer.valueOf(js_1.getText().toString());
jst1 = Integer.valueOf(js_2.getText().toString());
jst = 0;
jst1 = 0;
js_1.setText(String.valueOf(jst));
js_2.setText(String.valueOf(jst1));
dialog.dismiss();
}
});
AlertDialog dialog = builder.create();
dialog.show();
}
if(jst==jst1){
AlertDialog.Builder builder = new AlertDialog.Builder(ji_shu.this);
builder.setTitle("比赛结束")
.setIcon(R.drawable.warn)
.setMessage("本场比赛平局结束")
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
jst = Integer.valueOf(js_1.getText().toString());
jst1 = Integer.valueOf(js_2.getText().toString());
jst = 0;
jst1 = 0;
js_1.setText(String.valueOf(jst));
js_2.setText(String.valueOf(jst1));
}
})
.setNegativeButton("返回", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
jst = Integer.valueOf(js_1.getText().toString());
jst1 = Integer.valueOf(js_2.getText().toString());
jst = 0;
jst1 = 0;
js_1.setText(String.valueOf(jst));
js_2.setText(String.valueOf(jst1));
dialog.dismiss();
}
});
AlertDialog dialog = builder.create();
dialog.show();
}
q_name1.setText("");
q_name.setText("");
}
});
}
private void Return(){
js_1 = findViewById(R.id.textView_1);
js_2 = findViewById(R.id.textView_2);
btn_return=findViewById(R.id.btn_return);
btn_return.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
if (last_js==1)
{
jst=jst-(jst-a);
}
if (last_js==0){
jst1=jst1-(jst1-b);
}
js_1.setText(String.valueOf(jst));
js_2.setText(String.valueOf(jst1));
}
});
}
private void reset() {
js_1 = findViewById(R.id.textView_1);
js_2 = findViewById(R.id.textView_2);
btn_cancel = findViewById(R.id.btn_cancel);
btn_cancel.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
AlertDialog.Builder builder=new AlertDialog.Builder(ji_shu.this);
builder.setTitle("提示")
.setIcon(R.drawable.pointout)
.setMessage("你确定要重置分数吗?")
.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
jst = Integer.valueOf(js_1.getText().toString());
jst1 =Integer.valueOf(js_2.getText().toString());
jst=0;
jst1=0;
js_1.setText(String.valueOf(jst));
js_2.setText(String.valueOf(jst1));
}
})
.setNegativeButton("取消", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
dialog.dismiss();
}
});
AlertDialog dialog=builder.create();
dialog.show();
}
});
}
private void initView() {
js_1 = findViewById(R.id.textView_1);
btn_1 = findViewById(R.id.btn_1);
btn_1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
jst = Integer.valueOf(js_1.getText().toString());
a=jst;
jst++;
last_js=1;
js_1.setText(String.valueOf(jst));
}
});
}
private void initView1() {
js_2 = findViewById(R.id.textView_2);
btn_2 = findViewById(R.id.btn_2);
btn_2.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
jst1 =Integer.valueOf(js_2.getText().toString());
b=jst1;
jst1++;
last_js=0;
js_2.setText(String.valueOf(jst1));
}
});
}
private void initView2() {
js_3 = findViewById(R.id.textView_1);
btn_3 = findViewById(R.id.btn_3);
btn_3.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
jst =Integer.valueOf(js_3.getText().toString());
a=jst;
jst+=2;
last_js=1;
js_3.setText(String.valueOf(jst));
}
});
}
private void initView3() {
js_4 = findViewById(R.id.textView_2);
btn_4 = findViewById(R.id.btn_4);
btn_4.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
jst1 =Integer.valueOf(js_4.getText().toString());
b=jst1;
jst1+=2;
last_js=0;
js_4.setText(String.valueOf(jst1));
}
});
}
private void initView4() {
js_5 = findViewById(R.id.textView_1);
btn_5 = findViewById(R.id.btn_5);
btn_5.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
jst =Integer.valueOf(js_5.getText().toString());
a=jst;
jst+=3;
last_js=1;
js_5.setText(String.valueOf(jst));
}
});
}
private void initView5() {
js_6 = findViewById(R.id.textView_2);
btn_6 = findViewById(R.id.btn_6);
btn_6.setOnClickListener(new View.OnClickListener(){
@Override
public void onClick(View v){
jst1 =Integer.valueOf(js_6.getText().toString());
b=jst1;
jst1+=3;
last_js=0;
js_6.setText(String.valueOf(jst1));
}
});
}
}

@ -0,0 +1,39 @@
package com.example.androidone;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class shou_ye extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Button btnOpen = (Button) findViewById(R.id.button);
final shou_ye thisActivity = this;
View view = findViewById(R.id.button);
btnOpen.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, Baskertball_star.class);
thisActivity.startActivity(intent);
}
});
Button btnOpen2 = (Button) findViewById(R.id.button2);
btnOpen2.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, ji_shu.class);
thisActivity.startActivity(intent);
}
});
Button btnOpen1 = (Button) findViewById(R.id.button1);
btnOpen1.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent intent = new Intent(thisActivity, ball_rule.class);
thisActivity.startActivity(intent);
}
});
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 660 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 936 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M3,13h8L11,3L3,3v10zM3,21h8v-6L3,15v6zM13,21h8L21,11h-8v10zM13,3v6h8L21,3h-8z" />
</vector>

@ -0,0 +1,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M10,20v-6h4v6h5v-8h3L12,3 2,12h3v8z" />
</vector>

@ -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,9 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24.0"
android:viewportHeight="24.0">
<path
android:fillColor="#FF000000"
android:pathData="M12,22c1.1,0 2,-0.9 2,-2h-4c0,1.1 0.89,2 2,2zM18,16v-5c0,-3.07 -1.64,-5.64 -4.5,-6.32L13.5,4c0,-0.83 -0.67,-1.5 -1.5,-1.5s-1.5,0.67 -1.5,1.5v0.68C7.63,5.36 6,7.92 6,11v5l-2,2v1h16v-1l-2,-2z" />
</vector>

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 712 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="false">
<solid android:color="#87CEFA"/>
<padding android:left="1dp"
android:top="1dp"
android:right="1dp"
android:bottom="1dp"
/>
<size android:width="10dp"
android:height="10dp"
/>
</shape>

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

@ -0,0 +1,126 @@
<?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"
tools:context=".LoginActivity"
android:id="@+id/zbj">
<ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="0dp"
android:scaleType="centerCrop"
android:src="@drawable/j_bg"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent=".27"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0"
android:contentDescription="TODO" />
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/constraintLayout"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent=".78"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="1">
<androidx.viewpager.widget.ViewPager
android:id="@+id/view_pager"
android:layout_width="match_parent"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHeight_percent=".7"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tab_layout"
app:layout_constraintVertical_bias="0" />
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias=".0" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/wechat"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:backgroundTint="@color/white"
android:elevation="35dp"
android:src="@drawable/wechat"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/view_pager" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/phone"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginRight="10dp"
android:backgroundTint="@color/white"
android:elevation="35dp"
android:src="@drawable/phone"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@+id/wechat"
app:layout_constraintHorizontal_bias="1"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/view_pager" />
<com.google.android.material.floatingactionbutton.FloatingActionButton
android:id="@+id/email"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="10dp"
android:backgroundTint="@color/white"
android:elevation="35dp"
android:src="@drawable/email"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0"
app:layout_constraintStart_toEndOf="@+id/wechat"
app:layout_constraintTop_toBottomOf="@+id/view_pager"
android:contentDescription="TODO" />
</androidx.constraintlayout.widget.ConstraintLayout>
<ImageView
android:id="@+id/imageView2"
android:layout_width="60dp"
android:layout_height="60dp"
android:src="@drawable/ball"
app:layout_constraintBottom_toTopOf="@+id/constraintLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias=".3" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="欢迎来到NSN"
android:textSize="16sp"
android:textStyle="bold"
android:textColor="@color/white"
app:layout_constraintBottom_toTopOf="@+id/constraintLayout"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@+id/imageView"
app:layout_constraintTop_toBottomOf="@+id/imageView2"
/>
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,38 @@
<?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"
android:background="@drawable/bjt"
tools:context=".shou_ye">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:orientation="horizontal"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/button2"
android:layout_width="140dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button2" />
<Button
android:id="@+id/button"
android:layout_width="135dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button" />
<Button
android:id="@+id/button1"
android:layout_width="135dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button1" />
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,45 @@
<?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=".Baskertball_star">
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/lv"
android:layout_margin="5dp"
android:divider="#1A1A1B"
android:dividerHeight="1dp">
</ListView>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="60dp"
android:orientation="horizontal"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/button2"
android:layout_width="140dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button2" />
<Button
android:id="@+id/button"
android:layout_width="135dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button" />
<Button
android:id="@+id/button1"
android:layout_width="135dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button1" />
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,83 @@
<?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=".ball_rule"
android:background="@drawable/npz">
<LinearLayout
android:id="@+id/lin_1"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_marginBottom="5dp"
android:layout_marginTop="10dp"
android:orientation="horizontal">
<EditText
android:id="@+id/et_path"
android:layout_width="200dp"
android:layout_height="match_parent"
android:layout_marginRight="3dp"
android:layout_weight="1"
android:background="#EBEBEB"
android:hint="请输入图片链接"
android:inputType="textUri"
android:paddingLeft="3dp"
android:textColor="#696969"
android:textSize="20sp"/>
<Button
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="4"
android:background="#EBEBEB"
android:onClick="click"
android:text="浏览"
android:textColor="#696969"
android:textSize="20sp" />
<Button
android:id="@+id/btn_lj"
android:layout_width="74dp"
android:layout_height="wrap_content"
android:layout_weight="4"
android:background="#EBEBEB"
android:text="拍照"
android:textColor="#696969"
android:textSize="15sp" />
</LinearLayout>
<ImageView
android:id="@+id/iv_pic"
android:layout_width="match_parent"
android:layout_height="605dp"
android:layout_below="@+id/lin_1" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="60dp"
android:orientation="horizontal"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/button2"
android:layout_width="140dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button2" />
<Button
android:id="@+id/button"
android:layout_width="135dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button" />
<Button
android:id="@+id/button1"
android:layout_width="135dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button1" />
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,229 @@
<?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=".ji_shu"
android:background="@drawable/j_bg">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="58dp"
android:orientation="horizontal">
<TextView
android:layout_width="205dp"
android:layout_height="match_parent"
android:text="A队"
android:textColor="#FF0000"
android:textSize="45sp"
android:gravity="center_horizontal" />
<TextView
android:layout_width="205dp"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:text="B队"
android:textColor="#0000FF"
android:textSize="45sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="92dp"
android:orientation="horizontal">
<EditText
android:id="@+id/dit"
android:layout_width="205dp"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:importantForAutofill="no"
android:inputType="text"
android:textAlignment="center"
android:textColor="#FF0000"
android:textSize="40sp"
android:textStyle="bold"
android:hint="请输入队名"/>
<EditText
android:id="@+id/dit1"
android:layout_width="205dp"
android:layout_height="match_parent"
android:gravity="center_horizontal"
android:importantForAutofill="no"
android:inputType="text"
android:textSize="40sp"
android:textAlignment="center"
android:textColor="#0000FF"
android:textStyle="bold"
android:hint="请输入队名"
/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="58dp"
android:orientation="horizontal"
>
<TextView
android:id="@+id/textView_1"
android:layout_width="168dp"
android:layout_height="match_parent"
android:text="0"
android:textSize="33sp"
android:gravity="center_horizontal"/>
<TextView
android:layout_width="80dp"
android:layout_height="match_parent"/>
<TextView
android:id="@+id/textView_2"
android:layout_width="168dp"
android:layout_height="match_parent"
android:text="0"
android:textSize="33sp"
android:gravity="center_horizontal"/>
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="74dp"
android:orientation="horizontal">
<TextView
android:layout_width="30dp"
android:layout_height="match_parent" />
<Button
android:id="@+id/btn_1"
android:layout_width="107dp"
android:layout_height="match_parent"
android:text="@string/btn_1"
android:textColor="#0000FF"
android:background="@drawable/a_red"
android:textSize="30sp" />
<TextView
android:layout_width="133dp"
android:layout_height="match_parent" />
<Button
android:id="@+id/btn_2"
android:layout_width="107dp"
android:layout_height="match_parent"
android:text="@string/btn_1"
android:background="@drawable/a_bule"
android:textColor="#FF0000"
android:textSize="30sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="74dp"
android:orientation="horizontal">
<TextView
android:layout_width="30dp"
android:layout_height="match_parent" />
<Button
android:id="@+id/btn_3"
android:layout_width="107dp"
android:layout_height="match_parent"
android:text="@string/btn_3"
android:textColor="#0000FF"
android:background="@drawable/a_red"
android:textSize="30sp" />
<TextView
android:layout_width="133dp"
android:layout_height="match_parent" />
<Button
android:id="@+id/btn_4"
android:layout_width="107dp"
android:layout_height="match_parent"
android:text="@string/btn_3"
android:background="@drawable/a_bule"
android:textColor="#FF0000"
android:textSize="30sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="74dp"
android:orientation="horizontal">
<TextView
android:layout_width="30dp"
android:layout_height="match_parent" />
<Button
android:id="@+id/btn_5"
android:layout_width="107dp"
android:layout_height="wrap_content"
android:text="@string/btn_5"
android:textColor="#0000FF"
android:background="@drawable/a_red"
android:textSize="30sp" />
<TextView
android:layout_width="133dp"
android:layout_height="match_parent" />
<Button
android:id="@+id/btn_6"
android:layout_width="107dp"
android:layout_height="wrap_content"
android:text="@string/btn_5"
android:background="@drawable/a_bule"
android:textColor="#FF0000"
android:textSize="30sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="141dp"
android:orientation="horizontal">
<Button
android:id="@+id/btn_return"
android:layout_width="135dp"
android:layout_height="match_parent"
android:background="@drawable/fanhui" />
<ImageButton
android:id="@+id/victory_1"
android:layout_width="137dp"
android:layout_height="match_parent"
android:background="@drawable/yuanxing"
android:src="@drawable/yuan" />
<Button
android:id="@+id/btn_cancel"
android:layout_width="133dp"
android:layout_height="wrap_content"
android:background="@drawable/chehui" />
</LinearLayout>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_alignParentBottom="true">
<Button
android:id="@+id/button9"
android:layout_width="140dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button2" />
<Button
android:id="@+id/button8"
android:layout_width="135dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button" />
<Button
android:id="@+id/button7"
android:layout_width="135dp"
android:layout_height="60dp"
android:background="@drawable/j_bg"
android:text="@string/button1" />
</LinearLayout>
</RelativeLayout>
</LinearLayout>

@ -0,0 +1,6 @@
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"></androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,28 @@
<?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"
tools:context=".First2Fragment">
<TextView
android:id="@+id/textview_first"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/hello_first_fragment"
app:layout_constraintBottom_toTopOf="@id/button_first"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/button_first"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/next"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/textview_first" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,27 @@
<?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"
tools:context=".Second2Fragment">
<TextView
android:id="@+id/textview_second"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:layout_constraintBottom_toTopOf="@id/button_second"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<Button
android:id="@+id/button_second"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/previous"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/textview_second" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,25 @@
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center_vertical">
<ImageView
android:id="@+id/imageView2"
android:layout_width="45dp"
android:layout_height="49dp"
android:layout_margin="8dp"
android:background="@drawable/a_bai" />
<TextView
android:id="@+id/item_tv"
android:layout_width="366dp"
android:layout_height="57dp"
android:background="@drawable/npz"
android:text="奥尼尔"
android:textColor="@color/black"
android:textSize="40sp" />
</LinearLayout>

@ -0,0 +1,71 @@
<?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"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/bujv">
<EditText
android:id="@+id/email_denglu"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintWidth_percent=".8"
app:layout_constraintVertical_bias=".3"
app:layout_constraintHorizontal_bias=".5"
android:hint="Email"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/pass"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="password"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
android:layout_marginTop="20dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/email_denglu"
app:layout_constraintVertical_bias="0"
app:layout_constraintWidth_percent=".8" />
<Button
android:id="@+id/button"
android:layout_width="337dp"
android:layout_height="60dp"
android:background="@drawable/bjt"
android:text="Login"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias=".7"
app:layout_constraintWidth_percent=".8" />
<TextView
android:id="@+id/forgetPass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Forgrt Password"
app:layout_constraintVertical_bias="0"
app:layout_constraintHorizontal_bias="1"
android:layout_marginTop="5dp"
android:layout_marginRight="5dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="@+id/pass"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/pass" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/zcbj">
<EditText
android:id="@+id/email_zhuche"
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintWidth_percent=".8"
app:layout_constraintVertical_bias=".3"
app:layout_constraintHorizontal_bias=".5"
android:hint="Email"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/Uearname"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:hint="Name"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/email_zhuche"
app:layout_constraintVertical_bias="0.009"
app:layout_constraintWidth_percent=".8" />
<EditText
android:id="@+id/Password"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="Password"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/Uearname"
app:layout_constraintVertical_bias="0.077"
app:layout_constraintWidth_percent=".8" />
<EditText
android:id="@+id/confirm"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:hint="Confirname"
android:paddingLeft="20dp"
android:paddingTop="10dp"
android:paddingBottom="10dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/Password"
app:layout_constraintVertical_bias="0.084"
app:layout_constraintWidth_percent=".8" />
<Button
android:id="@+id/signup"
android:layout_width="355dp"
android:layout_height="69dp"
android:background="@drawable/bjt"
android:text="Login"
android:textColor="@color/white"
android:textSize="16sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_bias="0.976"
app:layout_constraintWidth_percent=".8" />
</androidx.constraintlayout.widget.ConstraintLayout>

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/navigation_home"
android:icon="@drawable/npz"
android:title="@string/title_home" />
<item
android:id="@+id/navigation_dashboard"
android:icon="@drawable/ic_dashboard_black_24dp"
android:title="@string/title_dashboard" />
<item
android:id="@+id/navigation_notifications"
android:icon="@drawable/ic_notifications_black_24dp"
android:title="@string/title_notifications" />
</menu>

@ -0,0 +1,5 @@
<?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" />
</adaptive-icon>

@ -0,0 +1,5 @@
<?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" />
</adaptive-icon>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<navigation 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/mobile_navigation"
app:startDestination="@+id/navigation_home">
<fragment
android:id="@+id/navigation_home"
android:name="com.example.androidone.ui.home.HomeFragment"
android:label="@string/title_home"
tools:layout="@layout/fragment_home" />
<fragment
android:id="@+id/navigation_dashboard"
android:name="com.example.androidone.ui.dashboard.DashboardFragment"
android:label="@string/title_dashboard"
tools:layout="@layout/fragment_dashboard" />
<fragment
android:id="@+id/navigation_notifications"
android:name="com.example.androidone.ui.notifications.NotificationsFragment"
android:label="@string/title_notifications"
tools:layout="@layout/fragment_notifications" />
</navigation>

@ -0,0 +1,88 @@
<?xml version="1.0" encoding="utf-8"?>
<navigation 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/nav_graph"
app:startDestination="@id/First2Fragment">
<fragment
android:id="@+id/First2Fragment"
android:name="com.example.androidone.First2Fragment"
android:label="@string/first_fragment_label"
tools:layout="@layout/fragment_first2">
<action
android:id="@+id/action_First2Fragment_to_Second2Fragment"
app:destination="@id/Second2Fragment" />
</fragment>
<fragment
android:id="@+id/Second2Fragment"
android:name="com.example.androidone.Second2Fragment"
android:label="@string/second_fragment_label"
tools:layout="@layout/fragment_second2">
<action
android:id="@+id/action_Second2Fragment_to_First2Fragment"
app:destination="@id/First2Fragment" />
</fragment>
<fragment
android:id="@+id/First3Fragment"
android:name="com.example.androidone.First3Fragment"
android:label="@string/first_fragment_label"
tools:layout="@layout/fragment_first3">
<action
android:id="@+id/action_First3Fragment_to_Second3Fragment"
app:destination="@id/Second3Fragment" />
</fragment>
<fragment
android:id="@+id/Second3Fragment"
android:name="com.example.androidone.Second3Fragment"
android:label="@string/second_fragment_label"
tools:layout="@layout/fragment_second3">
<action
android:id="@+id/action_Second3Fragment_to_First3Fragment"
app:destination="@id/First3Fragment" />
</fragment>
<fragment
android:id="@+id/First4Fragment"
android:name="com.example.androidone.First4Fragment"
android:label="@string/first_fragment_label"
tools:layout="@layout/fragment_first4">
<action
android:id="@+id/action_First4Fragment_to_Second4Fragment"
app:destination="@id/Second4Fragment" />
</fragment>
<fragment
android:id="@+id/Second4Fragment"
android:name="com.example.androidone.Second4Fragment"
android:label="@string/second_fragment_label"
tools:layout="@layout/fragment_second4">
<action
android:id="@+id/action_Second4Fragment_to_First4Fragment"
app:destination="@id/First4Fragment" />
</fragment>
<fragment
android:id="@+id/First2Fragment"
android:name="com.example.androidone.First2Fragment"
android:label="@string/first_fragment_label"
tools:layout="@layout/fragment_first2">
<action
android:id="@+id/action_First2Fragment_to_Second2Fragment"
app:destination="@id/Second2Fragment" />
</fragment>
<fragment
android:id="@+id/Second2Fragment"
android:name="com.example.androidone.Second2Fragment"
android:label="@string/second_fragment_label"
tools:layout="@layout/fragment_second2">
<action
android:id="@+id/action_Second2Fragment_to_First2Fragment"
app:destination="@id/First2Fragment" />
</fragment>
</navigation>

@ -0,0 +1,16 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.AndroidOne" parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_200</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/black</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>

@ -0,0 +1,6 @@
<resources>
<dimen name="fab_margin">16dp</dimen>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
</resources>

@ -0,0 +1,22 @@
<resources>
<string name="app_name">篮球计分器</string>
<string name="title_activity_main2">知名球星</string>
<!-- Strings used for fragments for navigation -->
<string name="first_fragment_label">First Fragment</string>
<string name="second_fragment_label">Second Fragment</string>
<string name="next">Next</string>
<string name="previous">Previous</string>
<string name="hello_first_fragment">Hello first fragment</string>
<string name="hello_second_fragment">Hello second fragment. Arg: %1$s</string>
<string name="title_activity_main3">MainActivity</string>
<string name="button">篮球巨星</string>
<string name="button1">比赛规则</string>
<string name="button2">比分计数器</string>
<string name="btn_1">+1</string>
<string name="btn_3">+2</string>
<string name="btn_5">+3</string>
<string name="title_activity_navigation">MainActivity</string>
<string name="title_home">Home</string>
<string name="title_dashboard">Dashboard</string>
<string name="title_notifications">Notifications</string>
</resources>

@ -0,0 +1,25 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<!-- Base application theme. -->
<style name="Theme.AndroidOne" parent="Theme.MaterialComponents.DayNight.NoActionBar.Bridge">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
<!-- Secondary brand color. -->
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
<style name="Theme.AndroidOne.NoActionBar">
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
<style name="Theme.AndroidOne.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" />
<style name="Theme.AndroidOne.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" />
</resources>

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

Loading…
Cancel
Save