期末大作业

master
tangjiefeng 2 years ago
parent a4f9718ae1
commit 35857b745d

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

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

@ -0,0 +1,414 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="DBNavigator.Project.DataEditorManager">
<record-view-column-sorting-type value="BY_INDEX" />
<value-preview-text-wrapping value="true" />
<value-preview-pinned value="false" />
</component>
<component name="DBNavigator.Project.DatabaseEditorStateManager">
<last-used-providers />
</component>
<component name="DBNavigator.Project.DatabaseFileManager">
<open-files />
</component>
<component name="DBNavigator.Project.Settings">
<connections />
<browser-settings>
<general>
<display-mode value="TABBED" />
<navigation-history-size value="100" />
<show-object-details value="false" />
</general>
<filters>
<object-type-filter>
<object-type name="SCHEMA" enabled="true" />
<object-type name="USER" enabled="true" />
<object-type name="ROLE" enabled="true" />
<object-type name="PRIVILEGE" enabled="true" />
<object-type name="CHARSET" enabled="true" />
<object-type name="TABLE" enabled="true" />
<object-type name="VIEW" enabled="true" />
<object-type name="MATERIALIZED_VIEW" enabled="true" />
<object-type name="NESTED_TABLE" enabled="true" />
<object-type name="COLUMN" enabled="true" />
<object-type name="INDEX" enabled="true" />
<object-type name="CONSTRAINT" enabled="true" />
<object-type name="DATASET_TRIGGER" enabled="true" />
<object-type name="DATABASE_TRIGGER" enabled="true" />
<object-type name="SYNONYM" enabled="true" />
<object-type name="SEQUENCE" enabled="true" />
<object-type name="PROCEDURE" enabled="true" />
<object-type name="FUNCTION" enabled="true" />
<object-type name="PACKAGE" enabled="true" />
<object-type name="TYPE" enabled="true" />
<object-type name="TYPE_ATTRIBUTE" enabled="true" />
<object-type name="ARGUMENT" enabled="true" />
<object-type name="DIMENSION" enabled="true" />
<object-type name="CLUSTER" enabled="true" />
<object-type name="DBLINK" enabled="true" />
</object-type-filter>
</filters>
<sorting>
<object-type name="COLUMN" sorting-type="NAME" />
<object-type name="FUNCTION" sorting-type="NAME" />
<object-type name="PROCEDURE" sorting-type="NAME" />
<object-type name="ARGUMENT" sorting-type="POSITION" />
<object-type name="TYPE ATTRIBUTE" sorting-type="POSITION" />
</sorting>
<default-editors>
<object-type name="VIEW" editor-type="SELECTION" />
<object-type name="PACKAGE" editor-type="SELECTION" />
<object-type name="TYPE" editor-type="SELECTION" />
</default-editors>
</browser-settings>
<navigation-settings>
<lookup-filters>
<lookup-objects>
<object-type name="SCHEMA" enabled="true" />
<object-type name="USER" enabled="false" />
<object-type name="ROLE" enabled="false" />
<object-type name="PRIVILEGE" enabled="false" />
<object-type name="CHARSET" enabled="false" />
<object-type name="TABLE" enabled="true" />
<object-type name="VIEW" enabled="true" />
<object-type name="MATERIALIZED VIEW" enabled="true" />
<object-type name="INDEX" enabled="true" />
<object-type name="CONSTRAINT" enabled="true" />
<object-type name="DATASET TRIGGER" enabled="true" />
<object-type name="DATABASE TRIGGER" enabled="true" />
<object-type name="SYNONYM" enabled="false" />
<object-type name="SEQUENCE" enabled="true" />
<object-type name="PROCEDURE" enabled="true" />
<object-type name="FUNCTION" enabled="true" />
<object-type name="PACKAGE" enabled="true" />
<object-type name="TYPE" enabled="true" />
<object-type name="DIMENSION" enabled="false" />
<object-type name="CLUSTER" enabled="false" />
<object-type name="DBLINK" enabled="true" />
</lookup-objects>
<force-database-load value="false" />
<prompt-connection-selection value="true" />
<prompt-schema-selection value="true" />
</lookup-filters>
</navigation-settings>
<dataset-grid-settings>
<general>
<enable-zooming value="true" />
<enable-column-tooltip value="true" />
</general>
<sorting>
<nulls-first value="true" />
<max-sorting-columns value="4" />
</sorting>
<audit-columns>
<column-names value="" />
<visible value="true" />
<editable value="false" />
</audit-columns>
</dataset-grid-settings>
<dataset-editor-settings>
<text-editor-popup>
<active value="false" />
<active-if-empty value="false" />
<data-length-threshold value="100" />
<popup-delay value="1000" />
</text-editor-popup>
<values-actions-popup>
<show-popup-button value="true" />
<element-count-threshold value="1000" />
<data-length-threshold value="250" />
</values-actions-popup>
<general>
<fetch-block-size value="100" />
<fetch-timeout value="30" />
<trim-whitespaces value="true" />
<convert-empty-strings-to-null value="true" />
<select-content-on-cell-edit value="true" />
<large-value-preview-active value="true" />
</general>
<filters>
<prompt-filter-dialog value="true" />
<default-filter-type value="BASIC" />
</filters>
<qualified-text-editor text-length-threshold="300">
<content-types>
<content-type name="Text" enabled="true" />
<content-type name="Properties" enabled="true" />
<content-type name="XML" enabled="true" />
<content-type name="DTD" enabled="true" />
<content-type name="HTML" enabled="true" />
<content-type name="XHTML" enabled="true" />
<content-type name="Java" enabled="true" />
<content-type name="SQL" enabled="true" />
<content-type name="PL/SQL" enabled="true" />
<content-type name="JSON" enabled="true" />
<content-type name="JSON5" enabled="true" />
<content-type name="Groovy" enabled="true" />
<content-type name="AIDL" enabled="true" />
<content-type name="YAML" enabled="true" />
<content-type name="Manifest" enabled="true" />
</content-types>
</qualified-text-editor>
<record-navigation>
<navigation-target value="VIEWER" />
</record-navigation>
</dataset-editor-settings>
<code-editor-settings>
<general>
<show-object-navigation-gutter value="false" />
<show-spec-declaration-navigation-gutter value="true" />
<enable-spellchecking value="true" />
<enable-reference-spellchecking value="false" />
</general>
<confirmations>
<save-changes value="false" />
<revert-changes value="true" />
</confirmations>
</code-editor-settings>
<code-completion-settings>
<filters>
<basic-filter>
<filter-element type="RESERVED_WORD" id="keyword" selected="true" />
<filter-element type="RESERVED_WORD" id="function" selected="true" />
<filter-element type="RESERVED_WORD" id="parameter" selected="true" />
<filter-element type="RESERVED_WORD" id="datatype" selected="true" />
<filter-element type="RESERVED_WORD" id="exception" selected="true" />
<filter-element type="OBJECT" id="schema" selected="true" />
<filter-element type="OBJECT" id="role" selected="true" />
<filter-element type="OBJECT" id="user" selected="true" />
<filter-element type="OBJECT" id="privilege" selected="true" />
<user-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="false" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</user-schema>
<public-schema>
<filter-element type="OBJECT" id="table" selected="false" />
<filter-element type="OBJECT" id="view" selected="false" />
<filter-element type="OBJECT" id="materialized view" selected="false" />
<filter-element type="OBJECT" id="index" selected="false" />
<filter-element type="OBJECT" id="constraint" selected="false" />
<filter-element type="OBJECT" id="trigger" selected="false" />
<filter-element type="OBJECT" id="synonym" selected="false" />
<filter-element type="OBJECT" id="sequence" selected="false" />
<filter-element type="OBJECT" id="procedure" selected="false" />
<filter-element type="OBJECT" id="function" selected="false" />
<filter-element type="OBJECT" id="package" selected="false" />
<filter-element type="OBJECT" id="type" selected="false" />
<filter-element type="OBJECT" id="dimension" selected="false" />
<filter-element type="OBJECT" id="cluster" selected="false" />
<filter-element type="OBJECT" id="dblink" selected="false" />
</public-schema>
<any-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="true" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</any-schema>
</basic-filter>
<extended-filter>
<filter-element type="RESERVED_WORD" id="keyword" selected="true" />
<filter-element type="RESERVED_WORD" id="function" selected="true" />
<filter-element type="RESERVED_WORD" id="parameter" selected="true" />
<filter-element type="RESERVED_WORD" id="datatype" selected="true" />
<filter-element type="RESERVED_WORD" id="exception" selected="true" />
<filter-element type="OBJECT" id="schema" selected="true" />
<filter-element type="OBJECT" id="user" selected="true" />
<filter-element type="OBJECT" id="role" selected="true" />
<filter-element type="OBJECT" id="privilege" selected="true" />
<user-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="true" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</user-schema>
<public-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="true" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</public-schema>
<any-schema>
<filter-element type="OBJECT" id="table" selected="true" />
<filter-element type="OBJECT" id="view" selected="true" />
<filter-element type="OBJECT" id="materialized view" selected="true" />
<filter-element type="OBJECT" id="index" selected="true" />
<filter-element type="OBJECT" id="constraint" selected="true" />
<filter-element type="OBJECT" id="trigger" selected="true" />
<filter-element type="OBJECT" id="synonym" selected="true" />
<filter-element type="OBJECT" id="sequence" selected="true" />
<filter-element type="OBJECT" id="procedure" selected="true" />
<filter-element type="OBJECT" id="function" selected="true" />
<filter-element type="OBJECT" id="package" selected="true" />
<filter-element type="OBJECT" id="type" selected="true" />
<filter-element type="OBJECT" id="dimension" selected="true" />
<filter-element type="OBJECT" id="cluster" selected="true" />
<filter-element type="OBJECT" id="dblink" selected="true" />
</any-schema>
</extended-filter>
</filters>
<sorting enabled="true">
<sorting-element type="RESERVED_WORD" id="keyword" />
<sorting-element type="RESERVED_WORD" id="datatype" />
<sorting-element type="OBJECT" id="column" />
<sorting-element type="OBJECT" id="table" />
<sorting-element type="OBJECT" id="view" />
<sorting-element type="OBJECT" id="materialized view" />
<sorting-element type="OBJECT" id="index" />
<sorting-element type="OBJECT" id="constraint" />
<sorting-element type="OBJECT" id="trigger" />
<sorting-element type="OBJECT" id="synonym" />
<sorting-element type="OBJECT" id="sequence" />
<sorting-element type="OBJECT" id="procedure" />
<sorting-element type="OBJECT" id="function" />
<sorting-element type="OBJECT" id="package" />
<sorting-element type="OBJECT" id="type" />
<sorting-element type="OBJECT" id="dimension" />
<sorting-element type="OBJECT" id="cluster" />
<sorting-element type="OBJECT" id="dblink" />
<sorting-element type="OBJECT" id="schema" />
<sorting-element type="OBJECT" id="role" />
<sorting-element type="OBJECT" id="user" />
<sorting-element type="RESERVED_WORD" id="function" />
<sorting-element type="RESERVED_WORD" id="parameter" />
</sorting>
<format>
<enforce-code-style-case value="true" />
</format>
</code-completion-settings>
<execution-engine-settings>
<statement-execution>
<fetch-block-size value="100" />
<execution-timeout value="20" />
<debug-execution-timeout value="600" />
<focus-result value="false" />
<prompt-execution value="false" />
</statement-execution>
<script-execution>
<command-line-interfaces />
<execution-timeout value="300" />
</script-execution>
<method-execution>
<execution-timeout value="30" />
<debug-execution-timeout value="600" />
<parameter-history-size value="10" />
</method-execution>
</execution-engine-settings>
<operation-settings>
<transactions>
<uncommitted-changes>
<on-project-close value="ASK" />
<on-disconnect value="ASK" />
<on-autocommit-toggle value="ASK" />
</uncommitted-changes>
<multiple-uncommitted-changes>
<on-commit value="ASK" />
<on-rollback value="ASK" />
</multiple-uncommitted-changes>
</transactions>
<session-browser>
<disconnect-session value="ASK" />
<kill-session value="ASK" />
<reload-on-filter-change value="false" />
</session-browser>
<compiler>
<compile-type value="KEEP" />
<compile-dependencies value="ASK" />
<always-show-controls value="false" />
</compiler>
<debugger>
<debugger-type value="ASK" />
<use-generic-runners value="true" />
</debugger>
</operation-settings>
<ddl-file-settings>
<extensions>
<mapping file-type-id="VIEW" extensions="vw" />
<mapping file-type-id="TRIGGER" extensions="trg" />
<mapping file-type-id="PROCEDURE" extensions="prc" />
<mapping file-type-id="FUNCTION" extensions="fnc" />
<mapping file-type-id="PACKAGE" extensions="pkg" />
<mapping file-type-id="PACKAGE_SPEC" extensions="pks" />
<mapping file-type-id="PACKAGE_BODY" extensions="pkb" />
<mapping file-type-id="TYPE" extensions="tpe" />
<mapping file-type-id="TYPE_SPEC" extensions="tps" />
<mapping file-type-id="TYPE_BODY" extensions="tpb" />
</extensions>
<general>
<lookup-ddl-files value="true" />
<create-ddl-files value="false" />
<synchronize-ddl-files value="true" />
<use-qualified-names value="false" />
<make-scripts-rerunnable value="true" />
</general>
</ddl-file-settings>
<general-settings>
<regional-settings>
<date-format value="MEDIUM" />
<number-format value="UNGROUPED" />
<locale value="SYSTEM_DEFAULT" />
<use-custom-formats value="false" />
</regional-settings>
<environment>
<environment-types>
<environment-type id="development" name="Development" description="Development environment" color="-2430209/-12296320" readonly-code="false" readonly-data="false" />
<environment-type id="integration" name="Integration" description="Integration environment" color="-2621494/-12163514" readonly-code="true" readonly-data="false" />
<environment-type id="production" name="Production" description="Productive environment" color="-11574/-10271420" readonly-code="true" readonly-data="true" />
<environment-type id="other" name="Other" description="" color="-1576/-10724543" readonly-code="false" readonly-data="false" />
</environment-types>
<visibility-settings>
<connection-tabs value="true" />
<dialog-headers value="true" />
<object-editor-tabs value="true" />
<script-editor-tabs value="false" />
<execution-result-tabs value="true" />
</visibility-settings>
</environment>
</general-settings>
</component>
</project>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/AddStudentInfoActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/AddStudentScoreActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/LoginActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/MainActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/PassRepairActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/RegisterActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/RepairStudentInfoActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/RepairStudentScoreActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/ShowStudentInfoActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/ShowStudentScoreActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/WeihuStudentInfoActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/WeihuStudentScoreActivity.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/bean/UserInfo.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/AddStudentInfoDao.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/AddStudentScoreDao.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/ComData.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/MySqitHelper.java" charset="UTF-8" />
<file url="file://$PROJECT_DIR$/app/src/main/java/cn/edu/myapplication/dao/UserDao.java" charset="UTF-8" />
<file url="PROJECT" charset="UTF-8" />
</component>
</project>

@ -0,0 +1,20 @@
<?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="gradleHome" value="$USER_HOME$/.gradle/wrapper/dists/gradle-7.3.3-bin/6a41zxkdtcxs8rphpq6y0069z/gradle-7.3.3" />
<option name="modules">
<set>
<option value="$PROJECT_DIR$" />
<option value="$PROJECT_DIR$/app" />
</set>
</option>
</GradleProjectSettings>
</option>
</component>
</project>

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" 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 @@
Subproject commit a4f9718ae100ef15e3681a900ae160160c8d2d8f

@ -0,0 +1 @@
/build

@ -0,0 +1,44 @@
plugins {
id 'com.android.application'
}
android {
namespace 'cn.edu.myapplication'
compileSdk 32
defaultConfig {
applicationId "cn.edu.myapplication"
minSdk 21
targetSdk 32
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
}
buildFeatures {
viewBinding true
}
}
dependencies {
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
implementation 'androidx.navigation:navigation-fragment:2.4.1'
implementation 'androidx.navigation:navigation-ui:2.4.1'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.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 cn.edu.myapplication;
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("cn.edu.myapplication", appContext.getPackageName());
}
}

@ -0,0 +1,75 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<application
android:allowBackup="true"
android:dataExtractionRules="@xml/data_extraction_rules"
android:fullBackupContent="@xml/backup_rules"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.MyApplication"
tools:targetApi="31">
<activity
android:name=".LoginActivity"
android:label="@string/app_name"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".RegisterActivity"
android:label="@string/title_activity_register" >
</activity>
<activity
android:name=".MainActivity"
android:label="@string/title_activity_Main" >
</activity>
<activity
android:name=".AddStudentInfoActivity"
android:label="@string/title_activity_add_info" >
</activity>
<activity
android:name=".PassRepairActivity"
android:label="@string/title_activity_pass_repair" >
</activity>
<activity
android:name=".ShowStudentInfoActivity"
android:label="@string/title_activity_show_student_info" >
</activity>
<activity
android:name=".WeihuStudentInfoActivity"
android:label="@string/title_activity_weihu_student_info" >
</activity>
<activity
android:name=".RepairStudentInfoActivity"
android:label="@string/title_activity_repair_student_info" >
</activity>
<activity
android:name=".AddStudentScoreActivity"
android:label="@string/title_activity_add_student_score" >
</activity>
<activity
android:name=".ShowStudentScoreActivity"
android:label="@string/title_activity_show_student_score" >
</activity>
<activity
android:name=".WeihuStudentScoreActivity"
android:label="@string/title_activity_weihu_student_score" >
</activity>
<activity
android:name=".RepairStudentScoreActivity"
android:label="@string/title_activity_repair_student_score" >
</activity>
</application>
</manifest>

@ -0,0 +1,132 @@
package cn.edu.myapplication;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.Spinner;
import android.widget.Toast;
import cn.edu.myapplication.bean.StudentInfo;
import cn.edu.myapplication.dao.AddStudentInfoDao;
public class AddStudentInfoActivity extends Activity {
//成员变量
EditText editnum,editname,editage,editmark;
RadioButton radiomen,radiowomen;
ArrayAdapter<String> proadapter;
String[] proname={"计算机应用","计算机网络","移动互联开发","WEB前端开发"};
Spinner pro;
Button butok,butre;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_student_info);
//调用init()方法
this.init();
//提交按钮事件添加监听
this.butok.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View V) {
//提交按钮的时间处理代码
addaction();
}
});
//为清空按钮事件添加监听
this.butre.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
qingkongaction();
}
});
}
//初始化声明的控件对象
public void init(){
this.editnum=(EditText) findViewById(R.id.addnumedit);
this.editname=(EditText) findViewById(R.id.addnameedit);
this.radiomen=(RadioButton) findViewById(R.id.addradioman);
this.radiowomen=(RadioButton) findViewById(R.id.addradiowoman);
this.editage=(EditText) findViewById(R.id.addageedit);
this.pro=(Spinner) findViewById(R.id.spinner1);
//构建适配器--数据源--显示格式
this.proadapter=new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,this.proname);
//设置spinpro 数据源
this.pro.setAdapter(proadapter);
this.editmark=(EditText) findViewById(R.id.addmarkedit);
this.butok=(Button) findViewById(R.id.addbutton);
this.butre=(Button) findViewById(R.id.resbutton);
}
//添加按钮事件处理方法
public void addaction(){
//1.获取用户输入的信息
String num=this.editnum.getText().toString();
// //nn为空判读
// double nn=Integer.parseInt(num);
String name=this.editname.getText().toString();
String sex="男";
if(this.radiowomen.isChecked()){
//
sex="女";
}
String age=this.editage.getText().toString();
String pro=this.pro.getSelectedItem().toString();
String mark=this.editmark.getText().toString();
//2.调用相关 存储添加学生信息
StudentInfo tem=new StudentInfo();
tem.setNum(num);
tem.setName(name);
tem.setSex(sex);
tem.setAge(age);
tem.setPro(pro);
tem.setMark(mark);
AddStudentInfoDao adao=new AddStudentInfoDao(this);
long n=adao.addStudentInfo(tem);
//3.根据结果显示
String mes="学生信息添加失败";
if(n>0){
mes="学生信息添加成功";
}
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
}
//清空按钮事件处理方法
public void qingkongaction(){
this.editnum.setText("");
this.editname.setText("");
//设置性别默认为男进行选中显示
this.radiomen.setChecked(true);
this.editage.setText("");
//设置下拉选择框的专业为选择框的第一个
this.pro.setSelection(0);
this.editmark.setText("");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.add_info, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,149 @@
package cn.edu.myapplication;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import cn.edu.myapplication.bean.StudentInfo;
import cn.edu.myapplication.bean.StudentScore;
import cn.edu.myapplication.dao.AddStudentInfoDao;
import cn.edu.myapplication.dao.AddStudentScoreDao;
public class AddStudentScoreActivity extends Activity {
TextView num,name;
EditText numtext,androidtext,javatext,htmltext;
Button showbut,addscorebut,resscorebut;
ArrayList<StudentInfo> adata;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_student_score);
// 调用init()方法
this.init();
//为按学号查询按钮添加事件监听
this.showbut.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String num=numtext.getText().toString();
getStudentnumData(num);
}
});
//添加按钮事件添加监听
this.addscorebut.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View V) {
//添加按钮的事件处理代码
addscoreaction();
}
});
//清空按钮事件处理方法
this.resscorebut.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
qingkongscoreaction();
}
});
}
//初始化声明的控件对象
public void init(){
this.numtext=(EditText) findViewById(R.id.numeditscore);
this.num=(TextView) findViewById(R.id.addscorenumtext);
this.name=(TextView) findViewById(R.id.addscorenametext);
this.androidtext=(EditText) findViewById(R.id.addscoreandroidtext);
this.javatext=(EditText) findViewById(R.id.addscorejavatext);
this.htmltext=(EditText) findViewById(R.id.addscorehtmltext);
this.showbut=(Button) findViewById(R.id.showbuttonscore);
this.addscorebut=(Button) findViewById(R.id.addscorebutton);
this.resscorebut=(Button) findViewById(R.id.resscorebutton);
}
/**
*
*
*/
public void getStudentnumData(String num){
//1.调用 相关方法 查询数据
AddStudentInfoDao adao=new AddStudentInfoDao(this);
this.adata=adao.getStudentnumData(num);
//2.构建列表搜需要的数据源
//ArrayList<String> sdata=new ArrayList<String>();
for(int i=0;i<this.adata.size();i++){
//从仓库中 读取 第i条 记录
StudentInfo tem=this.adata.get(i);
//构建列表 每行显示内容
String str=tem.getNum();
String str1=tem.getName();
//添加数据源
this.num.setText(str);
this.name.setText(str1);
}
}
//添加按钮事件处理方法
public void addscoreaction(){
//获取用户输入的信息
String num=this.num.getText().toString();
String name=this.name.getText().toString();
String android=this.androidtext.getText().toString();
String java=this.javatext.getText().toString();
String html=this.htmltext.getText().toString();
//调用相关 存储
StudentScore tem=new StudentScore();
tem.setNum(num);
tem.setName(name);
tem.setAndroid(android);
tem.setJava(java);
tem.setHtml(html);
AddStudentScoreDao adao=new AddStudentScoreDao(this);
long n=adao.addStudentScore(tem);
//3.根据结果显示
String mes="学生成绩添加失败";
if(n>0){
mes="学生成绩添加成功";
}
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
}
//清空按钮事件处理方法
public void qingkongscoreaction(){
this.numtext.setText("");
this.num.setText("");
this.name.setText("");
this.androidtext.setText("");
this.javatext.setText("");
this.htmltext.setText("");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.add_student_score, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,154 @@
package cn.edu.myapplication;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.EditText;
import android.widget.Toast;
import cn.edu.myapplication.bean.UserInfo;
import cn.edu.myapplication.dao.ComData;
import cn.edu.myapplication.dao.UserDao;
public class LoginActivity extends Activity {
//成员变量
EditText editname,editpass;
Button butlogin,butreg;
CheckBox checksave;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_login);
//调用方法初始化
this.init();
//调用方法 读取保存的用户信息
this.readLoginInfo();
//为“新用户注册” 添加按钮监听事件
this.butreg.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
//切换到用户注册界面的切换方法
Intent abc=new Intent(LoginActivity.this,RegisterActivity.class);
startActivity(abc);
}
});
//点击登录按钮 为登录按钮事件添加监听
this.butlogin.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
//调用相关登录方法
loginAction();
}
});
}
/**
*
*/
public void init(){
this.editname=(EditText) findViewById(R.id.loginditname);
this.editpass=(EditText) findViewById(R.id.logeditpass);
this.butlogin=(Button) findViewById(R.id.Logbutloging);
this.butreg=(Button) findViewById(R.id.logbutredister);
this.checksave=(CheckBox) findViewById(R.id.checkBox1);
}
/**
*
*/
public void loginAction(){
//1.获取用户输入的用户名与密码
String name=this.editname.getText().toString();
String pass=this.editpass.getText().toString();
//2.判断输入是否为空
if(name.length()==0||pass.length()==0){
Toast.makeText(this, "数据输入不完整,请修改", Toast.LENGTH_LONG).show();
return;
}
//3.调用相关方法进行在用户信息表里查询数据库
UserDao udao=new UserDao(this);
UserInfo utem=udao.checkUser(name, pass);
//4.处理结果
if(utem==null){
//如果用户信息表中用户信息为空--登录失败
Toast.makeText(this, "用户名或密码错误,请修改!", Toast.LENGTH_LONG).show();
}else{
//如果用户信息表中有用户信息--登录成功--合法用户
Toast.makeText(this, "用户登录成功!", Toast.LENGTH_LONG).show();
SharedPreferences sharesave=getSharedPreferences("loginfo",Context.MODE_PRIVATE);
Editor editor=sharesave.edit();
if(this.checksave.isChecked()){
//用户选择了保存用户信息 显示用户名与密码
editor.putString("uname", name);
editor.putString("upass", pass);
//提交
editor.commit();
}else{
//用户未选择保存 清空---或者清空 以保存内容
editor.clear();
//只进行显示用户登录过的用户名不显示密码
editor.putString("uname", name);
editor.commit();
}
//合法用户--登陆成功--跳转到用户使用界面
ComData.utem=utem;
Intent intent=new Intent(this,MainActivity.class);
startActivity(intent);
//销毁登陆注册界面--返回直接退出
this.finish();
}
}
/**
*
*/
public void readLoginInfo(){
SharedPreferences sharelogin=getSharedPreferences("loginfo",Context.MODE_PRIVATE);
// ”根据键名进行读取“ “未读取到显示默认的空值” Context.private
String uname=sharelogin.getString("uname", "");
String upass=sharelogin.getString("upass", "");
//在用户名与密码的框里进行显示读取到的内容
this.editname.setText(uname);
this.editpass.setText(upass);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_exit) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,226 @@
package cn.edu.myapplication;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.DialogInterface.OnClickListener;
import android.net.Uri;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.SimpleAdapter;
import android.widget.AdapterView.OnItemClickListener;
import cn.edu.myapplication.R;
public class MainActivity extends Activity {
//成员变量
GridView gvinfo;
//定义数组 相关数据int、文字String
String[] title=new String[]{"学生信息添加","学生信息维护","学生信息查询","学生成绩添加","学生成绩维护","学生成绩查询","系统管理","使用帮助","退出软件"};
int[] image=new int[]{R.drawable.addinfo, R.drawable.weihuinfo,R.drawable.showinfo,R.drawable.addscore,
R.drawable.weihuscore,R.drawable.showscore,R.drawable.userpass,R.drawable.help,R.drawable.exit};
ArrayList<Map<String,Object>> data;//用来包装的数据源
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
// 创建一个对象 进行--准备数据源
this.data=new ArrayList<Map<String,Object>>();
for(int i=0;i<title.length;i++){
//构建 一个 Map对象 子类 hash map
Map tem=new HashMap();
//键--值--对--组成一个小布局
tem.put("mainimage",image[i]);
tem.put("miantitle",title[i]);
//“仓库”添加的内容 都是 map 对象--把每一个小布局放入到界面中显示
data.add(tem);
}
//初始化简单的适配器 数据源 与 GridView 中 “桥” 上下文 数据源 布局
SimpleAdapter sadapter=new SimpleAdapter(this, data, R.layout.mygrid,
new String[]{"mainimage","miantitle"}, new int[]{R.id.gridimage,R.id.gridtext});
//初始化 GridView并与控件进行绑定
this.gvinfo=(GridView) findViewById(R.id.gridView1);
//设置GridView的适配器
this.gvinfo.setAdapter(sadapter);
//gvinfo添加事件处理
this.gvinfo.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int position,
long id) {
//事件处理 position 点击GridView 中的 单元 序号
mianAction(position);
}
});
}
/**
*
*/
public void mianAction(int id){
// 界面文字 布局图片与跳转二级界面显示 管理
switch(id){
case 0:
//点击了“学生信息添加”
Intent intent0=new Intent(this,AddStudentInfoActivity.class);
startActivity(intent0);
break;
case 1:
//点击了“学生信息维护”
Intent intent1=new Intent(this, WeihuStudentInfoActivity.class);
startActivity(intent1);
break;
case 2:
//点击了“学生信息查询”
Intent intent2=new Intent(this,ShowStudentInfoActivity.class);
startActivity(intent2);
break;
case 3:
//点击了“学生成绩添加”
Intent intent3=new Intent(this,AddStudentScoreActivity.class);
startActivity(intent3);
break;
case 4:
//点击了“学生成绩维护”
Intent intent4=new Intent(this,WeihuStudentScoreActivity.class);
startActivity(intent4);
break;
case 5:
//点击了“学生成绩查询”
Intent intent5=new Intent(this,ShowStudentScoreActivity.class);
startActivity(intent5);
break;
case 6:
//点击了“系统管理”
Intent intent6=new Intent(this,PassRepairActivity.class);
startActivity(intent6);
break;
case 7:
//点击了“使用帮助”
AlertDialog.Builder builder0=new AlertDialog.Builder(this);
builder0.setTitle("软件使用帮助");
builder0.setMessage("软件共有9个功能包括学生信息的添加、学生信息维护、学生信息查询、学生成绩添加" +
"学生成绩维护、学生成绩查询、系统管理、使用帮助、软件退出。\n如果在使用过程中有问题请点击下方“联系作者”进行反馈" +
"\n软件修改作者小明\n软件用途毕业设计\n完成时间2023年9月20日");
//为“我知道了”按钮添加事件监听
builder0.setPositiveButton("我知道了", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
// TODO Auto-generated method stub
}
});
//为“联系作者”按钮添加事件监听
builder0.setNegativeButton("联系作者", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
// TODO Auto-generated method stub
//调用相关方法进行处理
lianxi();
}
});
builder0.create().show();
break;
case 8:
//用户点击了“退出”
AlertDialog.Builder builder=new AlertDialog.Builder(this);
//builder.setTitle("提示").setMessage("是否确定退出程序");
builder.setTitle("提示");
builder.setMessage("是否确定退出程序");
//确定按钮
builder.setPositiveButton("确定", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
// TODO Auto-generated method stub
finish();
}
});
//取消按钮
builder.setNegativeButton("取消", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface arg0, int arg1) {
// TODO Auto-generated method stub
}
});
builder.create().show();
break;
default:
break;
}
}
/**
* 使
*/
public void lianxi(){
//方法一
// PackageManager packageManager = getPackageManager();
// Uri uri = Uri.parse("http://qm.qq.com/cgi-bin/qm/qr?k=XALdOZEPRx8ndbgaQoetggHd-mGfeusx");
// Intent intent = new Intent(Intent.ACTION_VIEW, uri);
// startActivity(intent);
// intent = packageManager.getLaunchIntentForPackage("com.tencent.mobileqq");
//方法二
Uri uri = Uri.parse("http://qm.qq.com/cgi-bin/qm/qr?k=XALdOZEPRx8ndbgaQoetggHd-mGfeusx");
Intent intent = new Intent(Intent.ACTION_VIEW, uri);
startActivity(intent);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_exit) {
//用户选择了退出
AlertDialog.Builder buidler=new AlertDialog.Builder(this);
// buidler.setTitle("提示").setMessage("是否确定退出程序?");
buidler.setTitle("提示");
buidler.setMessage("是否确定退出程序?");
//确定按钮
buidler.setPositiveButton("确定", new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
finish();
}
});
//取消按钮
buidler.setNegativeButton("取消", new OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub
return;
}
});
//创建对话框--进行显示对话框
buidler.create().show();
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,121 @@
package cn.edu.myapplication;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import cn.edu.myapplication.dao.ComData;
import cn.edu.myapplication.dao.UserDao;
public class PassRepairActivity extends Activity {
//成员变量
EditText editpass1,editpass2,editpass3;
Button butsave,butres;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_pass_repair);
//初始化 调用方法
this.init();
//保存按钮 事件监听
this.butsave.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
//调用保存按钮事件方法
saveAction();
}
});
//重置按钮 事件监听
this.butres.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
//调用 重置按钮事件 方法
resAction();
}
});
}
/**
*
*/
private void init(){
this.editpass1=(EditText) findViewById(R.id.paeditpass1);
this.editpass2=(EditText) findViewById(R.id.paeditpass2);
this.editpass3=(EditText) findViewById(R.id.paeditpass3);
this.butsave=(Button) findViewById(R.id.psbutsave);
this.butres=(Button) findViewById(R.id.psbutres);
}
/**
*
*/
public void saveAction(){
//1.获取用户的数据(原,新,重复)
String pass1=this.editpass1.getText().toString();
String pass2=this.editpass2.getText().toString();
String pass3=this.editpass3.getText().toString();
//为空判断 省略
//2.判读原密码 是否正确 pass1 登陆 用密码 ComData.utem 中
String pass= ComData.utem.getUserpass();
if(!pass1.equals(pass)){
Toast.makeText(this, "原密码输入有错,请修改", Toast.LENGTH_LONG).show();
return ;
}
//3.判读两次 密码 是否一致
if(!pass2.equals(pass3)){
Toast.makeText(this, "两次密码不一致,请修改", Toast.LENGTH_LONG).show();
return ;
}
//4.调用相关方法修改数据库
UserDao udao=new UserDao(this);
int id=ComData.utem.getId();
long n=udao.repairPassById(id, pass2);
//修改用户保存的密码 并验证
if(n>0){
//用户密码修改成功
Toast.makeText(this, "密码修改成功", Toast.LENGTH_LONG).show();
//进行设置更新 修改密码
ComData.utem.setUserpass(pass2);
return ;
}else{
//用户密码修改失败
Toast.makeText(this, "密码修改失败", Toast.LENGTH_LONG).show();
return ;
}
}
/**
*
*/
public void resAction(){
this.editpass1.setText("");
this.editpass2.setText("");
this.editpass3.setText("");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.pass_repair, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,103 @@
package cn.edu.myapplication;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import cn.edu.myapplication.dao.UserDao;
public class RegisterActivity extends Activity {
//成员变量
EditText editname,editpass1,editpass2;
Button butsave;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_register);
//调用方法初始化
this.init();
//保存按钮添加事件监听
this.butsave.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
//调用保存 方法 -- saveAction
saveAction();
}
});
}
/**
*
*
*/
private void init(){
this.editname=(EditText) findViewById(R.id.regeditname);
this.editpass1=(EditText) findViewById(R.id.regditpass1);
this.editpass2=(EditText) findViewById(R.id.regditpass2);
this.butsave=(Button) findViewById(R.id.regbutsave);
}
/**
*
*/
public void saveAction(){
//1.获取
String name=this.editname.getText().toString();
String pass1=this.editpass1.getText().toString();
String pass2=this.editpass2.getText().toString();
//2.判断输入是否为空
if(name.length()==0||pass1.length()==0||pass2.length()==0){
Toast.makeText(this,"输入数据不完整,请修改",Toast.LENGTH_LONG).show();
//返回
return;
}
//3.判断密码两次是否一致
if(!pass1.equals(pass2)){
//两次密码不一致
Toast.makeText(this,"两次密码不一致,请修改",Toast.LENGTH_LONG).show();
//返回
return;
}
//4.调用相关方法 修改 数据库内容
UserDao udao=new UserDao(this);
long n=udao.addUser(name, pass1);
if(n>0){
//添加 --注册成功
Toast.makeText(this,"新用户注册成功",Toast.LENGTH_LONG).show();
// //从新用户注册界面进行跳转到用户的登录界面
// Intent intent=new Intent(RegisterActivity.this,LoginActivity.class);
// startActivity(intent);
// //跳转后 进行销毁新用户注册界面
// this.finish();
}else{
//添加--注册失败
Toast.makeText(this,"新用户注册失败",Toast.LENGTH_LONG).show();
}
}
/**
*
*/
public void resetAction(){
this.editname.setText("");
this.editpass1.setText("");
this.editpass2.setText("");
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_exit) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,173 @@
package cn.edu.myapplication;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioButton;
import android.widget.Spinner;
import android.widget.TextView;
import android.widget.Toast;
import cn.edu.myapplication.bean.StudentInfo;
import cn.edu.myapplication.dao.AddStudentInfoDao;
import cn.edu.myapplication.dao.ComData;
public class RepairStudentInfoActivity extends Activity {
//成员变量
TextView repaireditnum,repaireditname;
EditText repaireditage,repaireditmark;
RadioButton repairradiomen,repairradiowomen;
ArrayAdapter<String> proadapter;
String[] proname={"计算机应用","计算机网络","移动互联开发","WEB前端开发"};
Spinner repairpro;
Button butsave,butdel;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_repair_student_info);
//调用方发 初始化 声明控件对象
this.init();
//调用方法 公共数据区 获取数据并显示
this.showOldStudentData();
//保存按钮
this.butsave.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
saveAction();
}
});
//删除按钮
this.butdel.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
deleteAction();
}
});
}
//初始化 声明的控件 对象
private void init(){
this.repaireditnum=(TextView) findViewById(R.id.repairnumtext);
this.repaireditname=(TextView) findViewById(R.id.repairnametext);
this.repairradiomen=(RadioButton) findViewById(R.id.repairradiomen);
this.repairradiowomen=(RadioButton) findViewById(R.id.repairradiowoman);
this.repaireditage=(EditText) findViewById(R.id.repairageedit);
this.repairpro=(Spinner) findViewById(R.id.spinner1);
this.repaireditmark=(EditText) findViewById(R.id.repairmarkedit);
this.butsave=(Button) findViewById(R.id.repairsavebutton);
this.butdel=(Button) findViewById(R.id.repairdelbutton);
}
/**
*
*
*/
private void showOldStudentData(){
//获取存储的数据
StudentInfo tem= ComData.item;
//显示获取的数据
this.repaireditnum.setText(tem.getNum());
this.repaireditname.setText(tem.getName());
this.repaireditage.setText(tem.getAge());
if(tem.getSex().equals("男"))
{
repairradiomen.setChecked(true);
}
else
{
repairradiowomen.setChecked(true);
}
int n=0;
String pro=tem.getPro();
if(pro.equals("计算机应用")){
n=0;
}else if(pro.equals("计算机网络")){
n=1;
}else if(pro.equals("移动互联开发")){
n=2;
}else if(pro.equals("WEB前端开发")){
n=3;
}else{
n=4;
}
this.repairpro.setSelection(n);
this.repaireditmark.setText(tem.getMark());
}
/**
*
*/
private void deleteAction(){
String num=ComData.item.getNum();
//调用方法 删除相关信息
AddStudentInfoDao adao=new AddStudentInfoDao(this);
long n=adao.deleteById(num);
String mes="学生信息删除失败";
if(n>0){
mes="学生信息删除成功";
}
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
}
/**
*
*/
private void saveAction(){
//1.获取用户输入的信息(用户修改的信息)
String num=this.repaireditnum.getText().toString();
String name=this.repaireditname.getText().toString();
String sex="男";
if(this.repairradiowomen.isChecked()){
//
sex="女";
}
String age=this.repaireditage.getText().toString();
String pro=this.repairpro.getSelectedItem().toString();
String mark=this.repaireditmark.getText().toString();
//修改公共数据库相关信息
ComData.item.setNum(num);
ComData.item.setName(name);
ComData.item.setSex(sex);
ComData.item.setAge(age);
ComData.item.setPro(pro);
ComData.item.setMark(mark);
//调用 相关方法 修改数据库
AddStudentInfoDao adao=new AddStudentInfoDao(this);
long n=adao.updateById(ComData.item);
//根据结果显示
String mes="学生信息修改失败";
if(n>0){
mes="学生信息修改成功";
}
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.repair_student_info, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,131 @@
package cn.edu.myapplication;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import cn.edu.myapplication.bean.StudentScore;
import cn.edu.myapplication.dao.AddStudentScoreDao;
import cn.edu.myapplication.dao.ComData;
public class RepairStudentScoreActivity extends Activity {
TextView repairnum,repairname;
EditText repandroid,repjava,rephtml;
Button repbut,delbut;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_repair_student_score);
//调用方发 初始化 声明控件对象
this.init();
//调用方法 公共数据区 获取数据并显示
this.showOldStudentData();
//保存修改按钮
this.repbut.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
saveAction();
}
});
//删除成绩按钮
this.delbut.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
deleteAction();
}
});
}
//初始化 声明的控件 对象
private void init(){
this.repairnum=(TextView) findViewById(R.id.repscorenumtext);
this.repairname=(TextView) findViewById(R.id.repscorenametext);
this.repandroid=(EditText) findViewById(R.id.repscoreandroidtext);
this.repjava=(EditText) findViewById(R.id.repscorejavatext);
this.rephtml=(EditText) findViewById(R.id.repscorehtmltext);
this.repbut=(Button) findViewById(R.id.repscorebutton);
this.delbut=(Button) findViewById(R.id.repdelscorebutton);
}
/**
*
*
*/
private void showOldStudentData(){
//获取存储的数据
StudentScore tem= ComData.stem;
//显示获取的数据
this.repairnum.setText(tem.getNum());
this.repairname.setText(tem.getName());
this.repandroid.setText(tem.getAndroid());
this.repjava.setText(tem.getJava());
this.rephtml.setText(tem.getHtml());
}
/**
*
*/
private void deleteAction(){
String num=ComData.stem.getNum();
//调用方法 删除相关信息
AddStudentScoreDao adao=new AddStudentScoreDao(this);
long n=adao.deleteById(num);
String mes="学生成绩删除失败";
if(n>0){
mes="学生成绩删除成功";
}
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
}
/**
*
*/
private void saveAction(){
//1.获取用户输入的成绩(用户修改的成绩)
String num=this.repairnum.getText().toString();
String name=this.repairname.getText().toString();
String android=this.repandroid.getText().toString();
String java=this.repjava.getText().toString();
String html=this.rephtml.getText().toString();
//修改公共数据库相关成绩
ComData.stem.setNum(num);
ComData.stem.setName(name);
ComData.stem.setAndroid(android);
ComData.stem.setJava(java);
ComData.stem.setHtml(html);
//调用 相关方法 修改数据库
AddStudentScoreDao adao=new AddStudentScoreDao(this);
long n=adao.updateById(ComData.stem);
//根据结果显示
String mes="学生成绩修改失败";
if(n>0){
mes="学生成绩修改成功";
}
Toast.makeText(this, mes, Toast.LENGTH_LONG).show();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.repair_student_score, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,128 @@
package cn.edu.myapplication;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import cn.edu.myapplication.bean.StudentInfo;
import cn.edu.myapplication.dao.AddStudentInfoDao;
public class ShowStudentInfoActivity extends Activity {
//成员变量
Button butall,butshow;
TextView numedit;
ListView listshow;
ArrayList<StudentInfo> adata;//存储 查询的结果
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_show_student_info);
//调用方法进行初始化
this.init();
//showdata在方法初始化之后调用进入直接进行显示学生的信息
// this.showData();
//为查询所有学生信息按钮事件添加监听
this.butall.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
//showdata在按钮监听事件里调用 点击查询进行查询全部
showData();
}
});
//根据学号查询所有学生信息按钮添加监听
this.butshow.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String num=numedit.getText().toString();
shownumData(num);
}
});
}
/*
*
*/
private void init(){
this.butall=(Button) findViewById(R.id.showallbutton);
this.butshow=(Button) findViewById(R.id.showbutton);
this.numedit=(TextView) findViewById(R.id.numedit);
this.listshow=(ListView) findViewById(R.id.listView1);
}
/**
*
*type
*/
private void showData(){
//1.调用 相关方法 插寻数据
AddStudentInfoDao adao=new AddStudentInfoDao(this);
this.adata=adao.getStudentData();
//2.构建列表搜需要的数据源
ArrayList<String> sdata=new ArrayList<String>();
for(int i=0;i<this.adata.size();i++){
//从仓库中 读取 第i条 记录
StudentInfo tem=this.adata.get(i);
//构建列表 每行显示内容
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getSex()+"\t\t"+tem.getAge()+"\t\t"+tem.getPro()+"\t\t"+tem.getMark();
//添加数据源
sdata.add(str);
}
//数据源 与 列表 “桥”
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
//设置列表的配置器
this.listshow.setAdapter(adapter);
}
/**
*
* type
*/
public void shownumData(String num){
//1.调用 相关方法 查询数据
AddStudentInfoDao adao=new AddStudentInfoDao(this);
this.adata=adao.getStudentnumData(num);
//2.构建列表搜需要的数据源
ArrayList<String> sdata=new ArrayList<String>();
for(int i=0;i<this.adata.size();i++){
//从仓库中 读取 第i条 记录
StudentInfo tem=this.adata.get(i);
//构建列表 每行显示内容
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getSex()+"\t\t"+tem.getAge()+"\t\t"+tem.getPro()+"\t\t"+tem.getMark();
//添加数据源
sdata.add(str);
}
//数据源 与 列表 “桥”
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
//设置列表的配置器
this.listshow.setAdapter(adapter);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.show_student_info, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,126 @@
package cn.edu.myapplication;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import cn.edu.myapplication.bean.StudentScore;
import cn.edu.myapplication.dao.AddStudentScoreDao;
public class ShowStudentScoreActivity extends Activity {
//成员变量
Button butscoreall,butscoreshow;
TextView scoreedit;
ListView listshow;
ArrayList<StudentScore> adata;//存储 查询的结果
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_show_student_score);
//调用方法进行初始化
this.init();
//showdata在方法初始化之后调用进入直接进行显示学生的信息
// this.showData();
//为查询所有学生信息按钮事件添加监听
this.butscoreall.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
//showdata在按钮监听事件里调用 点击查询进行查询全部
showscoreData();
}
});
//根据学号查询所有学生信息按钮添加监听
this.butscoreshow.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String num=scoreedit.getText().toString();
shownumscoreData(num);
}
});
}
/*
*
*/
private void init(){
this.butscoreall=(Button) findViewById(R.id.showallbutton);
this.butscoreshow=(Button) findViewById(R.id.showscorebutton);
this.scoreedit=(TextView) findViewById(R.id.numscoreedit);
this.listshow=(ListView) findViewById(R.id.listView11);
}
/**
*ListView
*type
*/
private void showscoreData(){
//1.调用 相关方法 插寻数据
AddStudentScoreDao adao=new AddStudentScoreDao(this);
this.adata=adao.getallscoreData();
//2.构建列表搜需要的数据源
ArrayList<String> sdata=new ArrayList<String>();
for(int i=0;i<this.adata.size();i++){
//从仓库中 读取 第i条 记录
StudentScore tem=this.adata.get(i);
//构建列表 每行显示内容
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getAndroid()+"\t\t"+tem.getJava()+"\t\t"+tem.getHtml();
//添加数据源
sdata.add(str);
}
//数据源 与 列表 “桥”
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
//设置列表的配置器
this.listshow.setAdapter(adapter);
}
/**
* ListView
* type
*/
public void shownumscoreData(String num){
//1.调用 相关方法 查询数据
AddStudentScoreDao adao=new AddStudentScoreDao(this);
this.adata=adao.getScorenumData(num);
//2.构建列表搜需要的数据源
ArrayList<String> sdata=new ArrayList<String>();
for(int i=0;i<this.adata.size();i++){
//从仓库中 读取 第i条 记录
StudentScore tem=this.adata.get(i);
//构建列表 每行显示内容
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getAndroid()+"\t\t"+tem.getJava()+"\t\t"+tem.getHtml();
//添加数据源
sdata.add(str);
}
//数据源 与 列表 “桥”
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
//设置列表的配置器
this.listshow.setAdapter(adapter);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.show_student_score, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,118 @@
package cn.edu.myapplication;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;
import cn.edu.myapplication.bean.StudentInfo;
import cn.edu.myapplication.dao.AddStudentInfoDao;
import cn.edu.myapplication.dao.ComData;
public class WeihuStudentInfoActivity extends Activity {
//成员变量
Button butshow;
TextView numedit;
ListView listshow;
ArrayList<StudentInfo> adata;//存储 查询的结果
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_weihu_student_info);
//调用方法进行初始化
this.init();
//为根据学号进行查询按钮添加事件监听
this.butshow.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String num=numedit.getText().toString();
shownumData(num);
}
});
//为 listshow 控件添加 监听
this.listshow.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
listAction(arg2);
}
});
}
/*
*
*/
private void init(){
this.butshow=(Button) findViewById(R.id.showbutton);
this.numedit=(TextView) findViewById(R.id.numedit);
this.listshow=(ListView) findViewById(R.id.listView1);
}
/**
*
*type
*/
public void shownumData(String num){
//1.调用 相关方法 查询数据
AddStudentInfoDao adao=new AddStudentInfoDao(this);
this.adata=adao.getStudentnumData(num);
//2.构建列表搜需要的数据源
ArrayList<String> sdata=new ArrayList<String>();
for(int i=0;i<this.adata.size();i++){
//从仓库中 读取 第i条 记录
StudentInfo tem=this.adata.get(i);
//构建列表 每行显示内容
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getSex()+"\t\t"+tem.getAge()+"\t\t"+tem.getPro()+"\t\t"+tem.getMark();
//添加数据源
sdata.add(str);
}
//数据源 与 列表 “桥”
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
//设置列表的配置器
this.listshow.setAdapter(adapter);
}
/**
*
*/
private void listAction(int num){
//1.从数据中 获取第 num的数据
StudentInfo tem=this.adata.get(num);
//2.将获取的数据存储到公共数据区 ---在学生信息维护界面 获取
ComData.item=tem;
//3.跳转到 信息修改 删除界面
Intent intent=new Intent(this,RepairStudentInfoActivity.class);
startActivity(intent);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.weihu_student_info, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,118 @@
package cn.edu.myapplication;
import java.util.ArrayList;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.AdapterView.OnItemClickListener;
import cn.edu.myapplication.bean.StudentScore;
import cn.edu.myapplication.dao.AddStudentScoreDao;
import cn.edu.myapplication.dao.ComData;
public class WeihuStudentScoreActivity extends Activity {
//成员变量
Button weihuscorebut;
TextView weihuscoreedit;
ListView listView;
ArrayList<StudentScore> adata;//存储 查询的结果
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_weihu_student_score);
//调用方法进行初始化
this.init();
//为根据学号进行查询按钮添加事件监听
this.weihuscorebut.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
String num=weihuscoreedit.getText().toString();
shownumscoreData(num);
}
});
//为 listshow 控件添加 监听
this.listView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> arg0, View arg1, int arg2,
long arg3) {
// TODO Auto-generated method stub
listAction(arg2);
}
});
}
/*
*
*/
private void init(){
this.weihuscorebut=(Button) findViewById(R.id.showscorebutton);
this.weihuscoreedit=(TextView) findViewById(R.id.numscoreedit);
this.listView=(ListView) findViewById(R.id.listView12);
}
/**
* ListView
*type
*/
public void shownumscoreData(String num){
//1.调用 相关方法 查询数据
AddStudentScoreDao adao=new AddStudentScoreDao(this);
this.adata=adao.getScorenumData(num);
//2.构建列表搜需要的数据源
ArrayList<String> sdata=new ArrayList<String>();
for(int i=0;i<this.adata.size();i++){
//从仓库中 读取 第i条 记录
StudentScore tem=this.adata.get(i);
//构建列表 每行显示内容
String str=tem.getNum()+"\t\t"+tem.getName()+"\t\t"+tem.getAndroid()+"\t\t"+tem.getJava()+"\t\t"+tem.getHtml();
//添加数据源
sdata.add(str);
}
//数据源 与 列表 “桥”
ArrayAdapter adapter=new ArrayAdapter(this, android.R.layout.simple_list_item_1, sdata);
//设置列表的配置器
this.listView.setAdapter(adapter);
}
/**
*
*/
private void listAction(int num){
//1.从数据中 获取第 num的数据
StudentScore tem=this.adata.get(num);
//2.将获取的数据存储到公共数据区 ---在学生成绩维护界面 获取
ComData.stem=tem;
//3.跳转到 成绩修改 删除界面
Intent intent=new Intent(this,RepairStudentScoreActivity.class);
startActivity(intent);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.weihu_student_score, menu);
return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}

@ -0,0 +1,54 @@
package cn.edu.myapplication.bean;
public class StudentInfo {
private int id;
private String num;
private String name;
private String sex;
private String age;
private String pro;
private String mark;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNum() {
return num;
}
public void setNum(String num) {
this.num = num;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getAge() {
return age;
}
public void setAge(String age) {
this.age = age;
}
public String getPro() {
return pro;
}
public void setPro(String pro) {
this.pro = pro;
}
public String getMark() {
return mark;
}
public void setMark(String mark) {
this.mark = mark;
}
}

@ -0,0 +1,46 @@
package cn.edu.myapplication.bean;
public class StudentScore {
private int id;
private String num;
private String name;
private String android;
private String java;
private String html;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getNum() {
return num;
}
public void setNum(String num) {
this.num = num;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getAndroid() {
return android;
}
public void setAndroid(String android) {
this.android = android;
}
public String getJava() {
return java;
}
public void setJava(String java) {
this.java = java;
}
public String getHtml() {
return html;
}
public void setHtml(String html) {
this.html = html;
}
}

@ -0,0 +1,33 @@
package cn.edu.myapplication.bean;
/**
*
*
* @author k01
*
*/
public class UserInfo {
private int id;//编号
private String username;//用户名
private String userpass;//密码
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
public String getUserpass() {
return userpass;
}
public void setUserpass(String userpass) {
this.userpass = userpass;
}
}

@ -0,0 +1,192 @@
package cn.edu.myapplication.dao;
import java.util.ArrayList;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import cn.edu.myapplication.bean.StudentInfo;
/**
*
* @author k01
*
*/
public class AddStudentInfoDao {
//成员变量
MySqitHelper myhelper;//数据库的连接
SQLiteDatabase st;//数据库管理员
String TB_NAME="AddInfotb";//学生的信息表
String COL1="_id";
String COL2="num";
String COL3="name";
String COL4="sex";
String COL5="age";
String COL6="pro";
String COL7="mark";
//构造方法
public AddStudentInfoDao(Context context){
//创建打开数据库
this.myhelper=new MySqitHelper(context);
//连接,初始化管理员
try {
this.st=this.myhelper.getWritableDatabase();
} catch (Exception e) {
this.st=this.myhelper.getReadableDatabase();
}
//创建表
try {
String sql="create table if not exists "+TB_NAME+"("+COL1+" integer primary key autoincrement , "+
COL2+" varchar(10),"+COL3+" varchar(10),"+COL4+" varchar(10),"+COL5+"" +
" varchar(10),"+COL6+" varchar(100) ,"+COL7+" varchar(200) )";
//发送指令
this.st.execSQL(sql);
} catch (Exception e) {
// 数据表 创建 异常
Log.e("学生信息表创建异常",e.toString());
}
}
/**
*
* @param num,name,sex,age,pro,mark--- StudentInfo
* @return long
*/
public long addStudentInfo(StudentInfo tem){
ContentValues values=new ContentValues();
values.put(COL2, tem.getNum());
values.put(COL3, tem.getName());
values.put(COL4, tem.getSex());
values.put(COL5, tem.getAge());
values.put(COL6, tem.getPro());
values.put(COL7, tem.getMark());
//发送管理员指令
long n=this.st.insert(TB_NAME, null, values);
this.free();
return n;
}
/**
*
*@parma all
*@return ArrayList<StudentInfo>
*/
public ArrayList<StudentInfo> getStudentData(){
//初始化一个对象
ArrayList<StudentInfo> adata=new ArrayList<StudentInfo>();
//查询添加的学生信息表中所有的学生信息
String sql="select * from "+TB_NAME;
//管理员 发送查寻指令
Cursor cursor=this.st.rawQuery(sql, null);
//从结果中逐条 取出 相关记录
while(cursor.moveToNext()){
//取出当前记录
int id=cursor.getInt(cursor.getColumnIndex(COL1));
String num=cursor.getString(cursor.getColumnIndex(COL2));
String name=cursor.getString(cursor.getColumnIndex(COL3));
String sex=cursor.getString(cursor.getColumnIndex(COL4));
String age=cursor.getString(cursor.getColumnIndex(COL5));
String pro=cursor.getString(cursor.getColumnIndex(COL6));
String mark=cursor.getString(cursor.getColumnIndex(COL7));
//创建一个对象进行初始化学生信息的相关bean
StudentInfo tem=new StudentInfo();
//用初始化的字段进行设置 相关的信息
tem.setId(id);
tem.setNum(num);
tem.setName(name);
tem.setSex(sex);
tem.setAge(age);
tem.setPro(pro);
tem.setMark(mark);
//将相关的数据进行添加到初始化的学生信息表的相关存储中...
adata.add(tem);
}
cursor.close();//关闭查询
this.st.close();//关闭管理员命令
this.myhelper.close();//关闭数据库连接
return adata;//
}
/**
*
*@parma num0
*@return ArrayList<StudentInfo>
*/
public ArrayList<StudentInfo> getStudentnumData(String num0){
ArrayList<StudentInfo> adata=new ArrayList<StudentInfo>();
//根据用户输入的学号查询单个学生信息
String sql="select * from "+TB_NAME+" where "+COL2+"=?";
//管理员 发送查寻指令
Cursor cursor=this.st.rawQuery(sql, new String[]{num0});
//从结果中逐条 取出 相关记录
if(cursor.moveToNext()){
//查询成功取出当前记录
int id=cursor.getInt(cursor.getColumnIndex(COL1));
String num=cursor.getString(cursor.getColumnIndex(COL2));
String name=cursor.getString(cursor.getColumnIndex(COL3));
String sex=cursor.getString(cursor.getColumnIndex(COL4));
String age=cursor.getString(cursor.getColumnIndex(COL5));
String pro=cursor.getString(cursor.getColumnIndex(COL6));
String mark=cursor.getString(cursor.getColumnIndex(COL7));
//
StudentInfo tem=new StudentInfo();
//
tem.setId(id);
tem.setNum(num);
tem.setName(name);
tem.setSex(sex);
tem.setAge(age);
tem.setPro(pro);
tem.setMark(mark);
//
adata.add(tem);
}
cursor.close();
this.st.close();
this.myhelper.close();
return adata;
}
/**
*
* @param num
* @return long
*/
public long deleteById(String num){
long n=this.st.delete(TB_NAME, COL2+"=?", new String[]{num});
this.st.close();
this.myhelper.close();
return n;
}
/**
*
* @param num,name,sex,age,pro,mark--- StudentInfo
* @return long
*/
public long updateById(StudentInfo tem){
ContentValues values=new ContentValues();
//设置要进行 修改的字段值
values.put(COL2, tem.getNum());
values.put(COL3, tem.getName());
values.put(COL4, tem.getSex());
values.put(COL5, tem.getAge());
values.put(COL6, tem.getPro());
values.put(COL7, tem.getMark());
//通过管理员 发指令 where 列 1= 设置参数 String.values整形数 将整形数 转换为字符串
long n=this.st.update(TB_NAME, values, COL2+"=?", new String[]{ String.valueOf( tem.getNum()) });
this.free();
return n;
}
/**
*
*/
public void free(){
this.st.close();
this.myhelper.close();
}
public static void main(String args[]){
// AddStudentInfoDao adao=new AddStudentInfoDao();
}
}

@ -0,0 +1,183 @@
package cn.edu.myapplication.dao;
import java.util.ArrayList;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import cn.edu.myapplication.bean.StudentScore;
/**
*
* @author k01
*
*/
public class AddStudentScoreDao {
//成员变量
MySqitHelper myhelper;
SQLiteDatabase st;//
String TB_NAME="AddScoretb";
String COL1="_id";
String COL2="num";
String COL3="name";
String COL4="android";
String COL5="java";
String COL6="html";
//构造方法
public AddStudentScoreDao(Context context){
//创建打开数据库
this.myhelper=new MySqitHelper(context);
//连接,初始化管理员
try {
//当内存足够用读写的方式进行打开
this.st=this.myhelper.getWritableDatabase();
} catch (Exception e) {
//当内存不足时就只用只读的方式进行打开
this.st=this.myhelper.getReadableDatabase();
}
//创建表
try {
String sql="create table if not exists "+TB_NAME+"("+COL1+" integer primary key autoincrement , "+
COL2+" varchar(10),"+COL3+" varchar(10),"+COL4+" varchar(10),"+COL5+"" +
" varchar(10),"+COL6+" varchar(10))";
//发送指令
this.st.execSQL(sql);
} catch (Exception e) {
// 数据表 创建 异常
Log.e("学生成绩表创建异常",e.toString());
}
}
/**
*
* StudentScore
* @return long
*/
public long addStudentScore(StudentScore tem){
ContentValues values=new ContentValues();
values.put(COL2, tem.getNum());
values.put(COL3, tem.getName());
values.put(COL4, tem.getAndroid());
values.put(COL5, tem.getJava());
values.put(COL6, tem.getHtml());
//发送管理员指令
long n=this.st.insert(TB_NAME, null, values);
this.free();
return n;
}
/**
*
*@parma all
*@return ArrayList<StudentScore>
*/
public ArrayList<StudentScore> getallscoreData(){
ArrayList<StudentScore> adata=new ArrayList<StudentScore>();
//查询添加的学生成绩表中所有的学生成绩
String sql="select * from "+TB_NAME;
//管理员 发送查寻指令
Cursor cursor=this.st.rawQuery(sql, null);
//从结果中逐条 取出 相关记录
while(cursor.moveToNext()){
//取出当前记录
int id=cursor.getInt(cursor.getColumnIndex(COL1));
String num=cursor.getString(cursor.getColumnIndex(COL2));
String name=cursor.getString(cursor.getColumnIndex(COL3));
String android=cursor.getString(cursor.getColumnIndex(COL4));
String java=cursor.getString(cursor.getColumnIndex(COL5));
String html=cursor.getString(cursor.getColumnIndex(COL6));
//
StudentScore tem=new StudentScore();
//
tem.setId(id);
tem.setNum(num);
tem.setName(name);
tem.setAndroid(android);
tem.setJava(java);
tem.setHtml(html);
//
adata.add(tem);
}
cursor.close();
this.st.close();
this.myhelper.close();
return adata;
}
/**
*
*@parma num1
*@return ArrayList<StudentScore>
*/
public ArrayList<StudentScore> getScorenumData(String num0){
ArrayList<StudentScore> adata=new ArrayList<StudentScore>();
//根据学号查询单个学生信息
String sql="select * from "+TB_NAME+" where "+COL2+"=?";
//管理员 发送查寻指令
Cursor cursor=this.st.rawQuery(sql, new String[]{num0});
//从结果中逐条 取出 相关记录
if(cursor.moveToNext()){
//查询成功取出当前记录
int id=cursor.getInt(cursor.getColumnIndex(COL1));
String num=cursor.getString(cursor.getColumnIndex(COL2));
String name=cursor.getString(cursor.getColumnIndex(COL3));
String android=cursor.getString(cursor.getColumnIndex(COL4));
String java=cursor.getString(cursor.getColumnIndex(COL5));
String html=cursor.getString(cursor.getColumnIndex(COL6));
//
StudentScore tem=new StudentScore();
//
tem.setId(id);
tem.setNum(num);
tem.setName(name);
tem.setAndroid(android);
tem.setJava(java);
tem.setHtml(html);
//
adata.add(tem);
}
cursor.close();
this.st.close();
this.myhelper.close();
return adata;
}
/**
*
* @param num
* @return long
*/
public long deleteById(String num){
long n=this.st.delete(TB_NAME, COL2+"=?", new String[]{num});
this.st.close();
this.myhelper.close();
return n;
}
/**
*
* StudentScore
* @return long
*/
public long updateById(StudentScore tem){
ContentValues values=new ContentValues();
//设置要进行 修改的字段值
values.put(COL2, tem.getNum());
values.put(COL3, tem.getName());
values.put(COL4, tem.getAndroid());
values.put(COL5, tem.getJava());
values.put(COL6, tem.getHtml());
//通过管理员 发指令 where 列 1= 设置参数 String.values整形数 将整形数 转换为字符串
long n=this.st.update(TB_NAME, values, COL2+"=?", new String[]{ String.valueOf( tem.getNum()) });
this.free();
return n;
}
/**
*
*/
public void free(){
this.st.close();
this.myhelper.close();
}
}

@ -0,0 +1,16 @@
package cn.edu.myapplication.dao;
import cn.edu.myapplication.bean.StudentInfo;
import cn.edu.myapplication.bean.StudentScore;
import cn.edu.myapplication.bean.UserInfo;
/**
*
*
*/
public class ComData {
public static UserInfo utem=null;//登陆成功的用户信息
static public StudentInfo item=null;//存储在学生信息维护中 点击列表 显示的信息
static public StudentScore stem=null;//存储在学生成绩维护中 点击列表 显示的信息
}

@ -0,0 +1,27 @@
package cn.edu.myapplication.dao;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class MySqitHelper extends SQLiteOpenHelper {
//
static String DB_NAME="studentsystem.db";
static int version=1;
//构造方法
public MySqitHelper(Context context){
super(context,DB_NAME,null,version);
}
@Override
public void onCreate(SQLiteDatabase arg0) {
// TODO Auto-generated method stub
}
@Override
public void onUpgrade(SQLiteDatabase arg0, int arg1, int arg2) {
// TODO Auto-generated method stub
}
}

@ -0,0 +1,154 @@
package cn.edu.myapplication.dao;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import cn.edu.myapplication.bean.UserInfo;
import cn.edu.myapplication.dao.MySqitHelper;
/**
*
*
* @author k01
*
*/
public class UserDao {
//
MySqitHelper myhelper;
SQLiteDatabase st;//
String TB_NAME="userinfo";
String COL1="_id";
String COL2="username";
String COL3="userpass";
//
public UserDao(Context context){
//打开数据库
this.myhelper=new MySqitHelper(context);
//连接数据库,--初始化 管理员
try {
// 数据库的读
this.st=this.myhelper.getWritableDatabase();
} catch (Exception e) {
// 数据库的写
this.st=this.myhelper.getReadableDatabase();
}
//表创建(判断表是否存在)、
String sql="create table if not exists "+TB_NAME+"("+COL1+" integer primary key autoincrement , "+
COL2+" vachar(20),"+COL3+" varchar(20))";
try {
//通过管理员发送指令
this.st.execSQL(sql);
} catch (Exception e) {
Log.e("user表创建异常",e.toString());
}
}
/**
*
* @param username userpass
* @return long
*/
public long addUser(String username,String userpass){
ContentValues valuse=new ContentValues();
//
valuse.put(COL2,username);
valuse.put(COL3,userpass);
//通过st发送指令
long n=this.st.insert(TB_NAME,null,valuse);
return n;
}
/**
* --
* @param name,pass
* @return UserInfo
*/
public UserInfo checkUser(String name, String pass){
UserInfo utem=null;
String sql="select * from "+TB_NAME+" where "+COL2+"=? and "+COL3+"=?";
//发送 查询语句进行查询
Cursor cursor=this.st.rawQuery(sql, new String[]{name,pass});
//判断 结果集是否有数据
if(cursor.moveToNext()){
//取出当前记录
int _id=cursor.getInt(cursor.getColumnIndex(COL1));
//初始化 utem
utem=new UserInfo(); //本句执行 完后 utem值不等于null
//设置属性
utem.setId(_id);
utem.setUsername(name);
utem.setUserpass(pass);
}
return utem;
}
/**
* id
* @param id,pass
* @return long
*/
public long repairPassById(int id,String pass){
ContentValues values=new ContentValues();
values.put(COL3, pass);
long n=this.st.update(TB_NAME, values, COL1+"=?", new String[]{String.valueOf(id)});
return n;
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 211 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 423 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

@ -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: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

@ -0,0 +1,187 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg3" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="43dp"
android:text="学生信息添加"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="36dp" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="学\t\t号" />
<EditText
android:id="@+id/addnumedit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" >
<requestFocus />
</EditText>
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout01"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout3"
android:layout_below="@+id/linearLayout3"
android:layout_marginTop="59dp" >
<TextView
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center|center_horizontal"
android:text="专\t\t业" />
<Spinner
android:id="@+id/spinner1"
android:layout_width="wrap_content"
android:layout_height="44dp"
android:spinnerMode="dialog" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout02"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/LinearLayout01"
android:layout_below="@+id/linearLayout3"
android:layout_marginTop="12dp" >
<TextView
android:id="@+id/TextView04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="年\t\t龄" />
<EditText
android:id="@+id/addageedit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout03"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/LinearLayout01"
android:layout_alignTop="@+id/LinearLayout01"
android:layout_marginTop="52dp"
android:gravity="center|center_horizontal" >
<TextView
android:id="@+id/TextView05"
android:layout_width="wrap_content"
android:layout_height="41dp"
android:gravity="center"
android:text="备\t\t注" />
<EditText
android:id="@+id/addmarkedit"
android:layout_width="match_parent"
android:layout_height="53dp"
android:ems="10"
android:inputType="textMultiLine" />
</LinearLayout>
<LinearLayout
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/LinearLayout03"
android:layout_below="@+id/LinearLayout03"
android:layout_marginTop="14dp" >
<Button
android:id="@+id/addbutton"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="添\t\t加" />
<Button
android:id="@+id/resbutton"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="清\t\t空" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout2"
android:layout_below="@+id/linearLayout2"
android:layout_marginTop="19dp"
android:gravity="center|center_horizontal" >
<TextView
android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:text="性\t\t别" />
<RadioGroup
android:id="@+id/radioGroup1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal" >
<RadioButton
android:id="@+id/addradioman"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:checked="true"
android:text="男" />
<RadioButton
android:id="@+id/addradiowoman"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="女" />
</RadioGroup>
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_below="@+id/linearLayout1"
android:layout_marginTop="19dp" >
<TextView
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="姓\t\t名" />
<EditText
android:id="@+id/addnameedit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,184 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.bysj.yrj.AddStudentScoreActivity" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="24dp"
android:text="学生成绩添加"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout2"
android:layout_alignRight="@+id/linearLayout2"
android:layout_below="@+id/linearLayout2"
android:layout_marginTop="10dp" >
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center|center_horizontal"
android:text="学\t\t\t\t号" />
<TextView
android:id="@+id/addscorenumtext"
android:layout_width="match_parent"
android:layout_height="40dp"
android:text="" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_below="@+id/linearLayout1"
android:layout_marginTop="19dp" >
<TextView
android:id="@+id/TextView5"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center|center_horizontal"
android:text="姓\t\t\t\t名" />
<TextView
android:id="@+id/addscorenametext"
android:layout_width="match_parent"
android:layout_height="40dp"
android:text="" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout5"
android:layout_alignRight="@+id/linearLayout3"
android:layout_below="@+id/linearLayout3"
android:layout_marginTop="18dp" >
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center|center_horizontal"
android:text="Android应用开发" />
<EditText
android:id="@+id/addscoreandroidtext"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/linearLayout4"
android:layout_marginLeft="13dp"
android:layout_marginTop="17dp" >
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="31dp"
android:gravity="center|center_horizontal"
android:text="JAVA高级应用" />
<EditText
android:id="@+id/addscorejavatext"
android:layout_width="210dp"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout5"
android:layout_below="@+id/linearLayout5"
android:layout_marginTop="18dp" >
<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="29dp"
android:gravity="center|center_horizontal"
android:text="HTML移动WEB" />
<EditText
android:id="@+id/addscorehtmltext"
android:layout_width="211dp"
android:layout_height="wrap_content" >
<requestFocus />
</EditText>
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="26dp" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="请输入学号:" />
<EditText
android:id="@+id/numeditscore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
<Button
android:id="@+id/showbuttonscore"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="查询" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout6"
android:layout_alignRight="@+id/linearLayout4"
android:layout_below="@+id/linearLayout6"
android:layout_marginTop="34dp" >
<Button
android:id="@+id/addscorebutton"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="添\t\t加" />
<Button
android:id="@+id/resscorebutton"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="清\t\t空" />
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,98 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg1"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".LoginActivity" >
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_alignRight="@+id/linearLayout1"
android:layout_below="@+id/linearLayout1"
android:layout_marginTop="20dp" >
<EditText
android:id="@+id/logeditpass"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableLeft="@drawable/pass"
android:ems="10"
android:hint="请输入密码"
android:inputType="textPassword" >
<requestFocus />
</EditText>
</LinearLayout>
<Button
android:id="@+id/logbutredister"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:background="@android:color/transparent"
android:text="新用户注册"
android:textColor="#4682b4" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="400dp"
android:layout_height="wrap_content"
android:layout_below="@+id/imageView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="39dp" >
<EditText
android:id="@+id/loginditname"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:drawableLeft="@drawable/user"
android:ems="10"
android:hint=" 请输入用户名" />
</LinearLayout>
<ImageView
android:id="@+id/imageView1"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp"
android:src="@drawable/tx" />
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout2"
android:layout_below="@+id/linearLayout2"
android:layout_marginLeft="12dp" >
<CheckBox
android:id="@+id/checkBox1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="20dp"
android:checked="true"
android:text="记住密码" />
</LinearLayout>
<Button
android:id="@+id/Logbutloging"
android:layout_width="400dp"
android:layout_height="wrap_content"
android:layout_alignRight="@+id/logbutredister"
android:layout_below="@+id/linearLayout3"
android:background="#5F9EA0"
android:text="\t\t\t登\t\t录\t\t\t"
android:textColor="#ffffff" />
</RelativeLayout>

@ -0,0 +1,19 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".MainActivity"
android:background="@color/white">
<GridView
android:id="@+id/gridView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:numColumns="3"
android:verticalSpacing="70dp">
</GridView>
</RelativeLayout>

@ -0,0 +1,105 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.bysj.yrj.PassRepairActivity"
android:background="@drawable/bg3">
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="89dp"
android:text="用户密码修改"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="45dp" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="\t原密码" />
<EditText
android:id="@+id/paeditpass1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" >
<requestFocus />
</EditText>
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_centerVertical="true" >
<TextView
android:id="@+id/repairnumtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="\t新密码" />
<EditText
android:id="@+id/paeditpass2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="250dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout2"
android:layout_below="@+id/linearLayout2"
android:layout_marginTop="19dp" >
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="密码重复:" />
<EditText
android:id="@+id/paeditpass3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
<Button
android:id="@+id/psbutsave"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout3"
android:layout_below="@+id/linearLayout3"
android:layout_marginTop="40dp"
android:text="保存" />
<Button
android:id="@+id/psbutres"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:layout_alignBaseline="@+id/psbutsave"
android:layout_alignBottom="@+id/psbutsave"
android:layout_alignRight="@+id/linearLayout3"
android:text="重置" />
</RelativeLayout>

@ -0,0 +1,101 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg1"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context=".RegisterActivity" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="62dp"
android:text="@string/str_reg_title"
android:textColor="@color/black"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="30dp" >
<TextView
android:id="@+id/pseditpass1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="用\t户\t名"
android:textColor="@color/black"
/>
<EditText
android:id="@+id/regeditname"
android:layout_width="184dp"
android:layout_height="wrap_content" >
<requestFocus />
</EditText>
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/linearLayout1"
android:layout_centerHorizontal="true"
android:layout_marginTop="24dp" >
<TextView
android:id="@+id/repairnumtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/str_reg_pass1"
android:textColor="@color/black"/>
<EditText
android:id="@+id/regditpass1"
android:layout_width="184dp"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout2"
android:layout_alignRight="@+id/linearLayout1"
android:layout_below="@+id/linearLayout2"
android:layout_marginTop="27dp" >
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/str_reg_pass2"
android:textColor="@color/black"/>
<EditText
android:id="@+id/regditpass2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
</LinearLayout>
<Button
android:id="@+id/regbutsave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout3"
android:layout_alignRight="@+id/linearLayout3"
android:layout_below="@+id/linearLayout3"
android:layout_marginTop="47dp"
android:text="@string/str_reg_save" />
</RelativeLayout>

@ -0,0 +1,179 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/bg3" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="43dp"
android:text="学生信息修改"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="36dp" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="学\t\t号" />
<TextView
android:id="@+id/repairnumtext"
android:layout_width="250dp"
android:layout_height="40dp"
android:text="" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout01"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout3"
android:layout_below="@+id/linearLayout3"
android:layout_marginTop="59dp" >
<TextView
android:id="@+id/TextView03"
android:layout_width="wrap_content"
android:layout_height="43dp"
android:gravity="center"
android:text="专\t\t业" />
<Spinner
android:id="@+id/spinner1"
android:layout_width="wrap_content"
android:layout_height="43dp"
android:entries="@array/proname"
android:spinnerMode="dialog" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout02"
android:layout_width="300dp"
android:layout_height="40dp"
android:layout_alignLeft="@+id/LinearLayout01"
android:layout_below="@+id/linearLayout3"
android:layout_marginTop="12dp" >
<TextView
android:id="@+id/TextView04"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="年\t\t龄" />
<EditText
android:id="@+id/repairageedit"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:layout_weight="1" />
</LinearLayout>
<LinearLayout
android:id="@+id/LinearLayout03"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/LinearLayout01"
android:layout_alignTop="@+id/LinearLayout01"
android:layout_marginTop="52dp"
android:gravity="center|center_horizontal" >
<TextView
android:id="@+id/TextView05"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:gravity="center"
android:text="备\t\t注" />
<EditText
android:id="@+id/repairmarkedit"
android:layout_width="match_parent"
android:layout_height="40dp"
android:ems="10"
android:inputType="textMultiLine" />
</LinearLayout>
<LinearLayout
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/LinearLayout03"
android:layout_below="@+id/LinearLayout03"
android:layout_marginTop="14dp" >
<Button
android:id="@+id/repairsavebutton"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="保存修改" />
<Button
android:id="@+id/repairdelbutton"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="删除信息" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout2"
android:layout_below="@+id/linearLayout2" >
<TextView
android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:gravity="center"
android:text="性\t\t别" />
<RadioGroup
android:id="@+id/radioGroup1"
android:layout_width="match_parent"
android:layout_height="40dp"
android:orientation="horizontal" >
<RadioButton
android:id="@+id/repairradiomen"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:checked="true"
android:text="男" />
<RadioButton
android:id="@+id/repairradiowoman"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="女" />
</RadioGroup>
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_below="@+id/linearLayout1" >
<TextView
android:id="@+id/TextView01"
android:layout_width="wrap_content"
android:layout_height="40dp"
android:text="姓\t\t名" />
<TextView
android:id="@+id/repairnametext"
android:layout_width="match_parent"
android:layout_height="40dp" />
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,148 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.bysj.yrj.RepairStudentScoreActivity"
android:background="@drawable/bg3">
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="61dp" >
<Button
android:id="@+id/repscorebutton"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="保存修改" />
<Button
android:id="@+id/repdelscorebutton"
android:layout_width="150dp"
android:layout_height="wrap_content"
android:text="删除成绩" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/linearLayout2"
android:layout_centerHorizontal="true"
android:layout_marginBottom="45dp" >
<TextView
android:id="@+id/textView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="HTML移动WEB" />
<EditText
android:id="@+id/repscorehtmltext"
android:layout_width="211dp"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/linearLayout6"
android:layout_alignRight="@+id/linearLayout6"
android:layout_marginBottom="20dp" >
<TextView
android:id="@+id/textView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="JAVA高级应用" />
<EditText
android:id="@+id/repscorejavatext"
android:layout_width="211dp"
android:layout_height="wrap_content" >
<requestFocus />
</EditText>
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout4"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_above="@+id/linearLayout5"
android:layout_alignLeft="@+id/linearLayout5"
android:layout_alignRight="@+id/linearLayout2"
android:layout_marginBottom="11dp" >
<TextView
android:id="@+id/textView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Android应用开发" />
<EditText
android:id="@+id/repscoreandroidtext"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="0.63" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_above="@+id/linearLayout3"
android:layout_alignLeft="@+id/linearLayout3"
android:layout_marginBottom="21dp" >
<TextView
android:id="@+id/textView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="学\t\t\t\t\t号" />
<TextView
android:id="@+id/repscorenumtext"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout3"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_above="@+id/linearLayout4"
android:layout_alignRight="@+id/linearLayout5"
android:layout_marginBottom="13dp" >
<TextView
android:id="@+id/TextView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="姓\t\t\t\t\t名" />
<TextView
android:id="@+id/repscorenametext"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_above="@+id/linearLayout1"
android:layout_centerHorizontal="true"
android:layout_marginBottom="31dp"
android:text="学生成绩修改"
android:textSize="30sp" />
</RelativeLayout>

@ -0,0 +1,73 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.bysj.yrj.ShowStudentInfoActivity" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="学生信息查询"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="21dp" >
<Button
android:id="@+id/showallbutton"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="查询所有学生信息" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_below="@+id/linearLayout1"
android:layout_marginTop="12dp" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="请输入学号:" />
<EditText
android:id="@+id/numedit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
<Button
android:id="@+id/showbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="查询" />
</LinearLayout>
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/linearLayout2"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp" >
</ListView>
</RelativeLayout>

@ -0,0 +1,73 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg3"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.bysj.yrj.ShowStudentScoreActivity" >
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:text="学生成绩查询"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="21dp" >
<Button
android:id="@+id/showallbutton"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:text="查询所有学生成绩" />
</LinearLayout>
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/linearLayout1"
android:layout_below="@+id/linearLayout1"
android:layout_marginTop="12dp" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="请输入学号:" />
<EditText
android:id="@+id/numscoreedit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
<Button
android:id="@+id/showscorebutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="查询" />
</LinearLayout>
<ListView
android:id="@+id/listView11"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/linearLayout2"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp" >
</ListView>
</RelativeLayout>

@ -0,0 +1,57 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.bysj.yrj.WeihuStudentInfoActivity"
android:background="@drawable/bg3">
<ListView
android:id="@+id/listView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/linearLayout2"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp" >
</ListView>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="59dp"
android:text="学生信息维护"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="24dp" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="请输入学号:" />
<EditText
android:id="@+id/numedit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
<Button
android:id="@+id/showbutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="查询" />
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,57 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingBottom="@dimen/activity_vertical_margin"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
tools:context="com.bysj.yrj.WeihuStudentScoreActivity"
android:background="@drawable/bg3">
<ListView
android:id="@+id/listView12"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/linearLayout2"
android:layout_centerHorizontal="true"
android:layout_marginTop="15dp" >
</ListView>
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:layout_marginTop="59dp"
android:text="学生成绩维护"
android:textSize="30sp" />
<LinearLayout
android:id="@+id/linearLayout2"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="24dp" >
<TextView
android:id="@+id/textView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="请输入学号:" />
<EditText
android:id="@+id/numscoreedit"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1" />
<Button
android:id="@+id/showscorebutton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="查询" />
</LinearLayout>
</RelativeLayout>

@ -0,0 +1,21 @@
<?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" >
<ImageView
android:id="@+id/gridimage"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/addinfo"
android:layout_gravity="center_horizontal"/>
<TextView
android:id="@+id/gridtext"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="TextView"
android:layout_gravity="center_horizontal"/>
</LinearLayout>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.AddInfoActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.AddStudentScoreActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

@ -0,0 +1,9 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.loginActivity" >
<item
android:id="@+id/action_exit"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/menu_main_exit"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.MainActivity" >
<item
android:id="@+id/action_exit"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/menu_main_exit"/>
</menu>

@ -0,0 +1,10 @@
<menu 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"
tools:context="cn.edu.myapplication.MainActivity">
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:title="@string/action_settings"
app:showAsAction="never" />
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.PassRepairActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.RegisterActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/menu_main_exit"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.RepairStudentInfoActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.RepairStudentScoreActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.ShowStudentInfoActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.ShowStudentScoreActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.WeihuStudentInfoActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

@ -0,0 +1,11 @@
<menu xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
tools:context="com.bysj.yrj.WeihuStudentScoreActivity" >
<item
android:id="@+id/action_settings"
android:orderInCategory="100"
android:showAsAction="never"
android:title="@string/action_settings"/>
</menu>

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

Loading…
Cancel
Save