Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1 #2 实验和报告修改,#3 第三次实验,#4 第四次实验 #2532

Merged
merged 17 commits into from
Jun 2, 2018
Binary file added soft1614080902434/1.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902434/2.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions soft1614080902434/2.app/2.app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="edu.hzuapps.androidlabs.soft1614080902434">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Soft1614080902434_Activity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package soft1614080902434.androidlabs.hzuapps.edu.soft1614080902434;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

public class Second_Activity extends AppCompatActivity implements View.OnClickListener {
TextView t[] = new TextView[12];
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_second_);
}
public void RegisterEcent(){
t[0]=(TextView) findViewById(R.id.n_0);
t[1]=(TextView) findViewById(R.id.n_1);
t[2]=(TextView) findViewById(R.id.n_2);
t[3]=(TextView) findViewById(R.id.n_3);
t[4]=(TextView) findViewById(R.id.n_4);
t[5]=(TextView) findViewById(R.id.n_5);
t[6]=(TextView) findViewById(R.id.n_6);
t[7]=(TextView) findViewById(R.id.n_7);
t[8]=(TextView) findViewById(R.id.n_8);
t[9]=(TextView) findViewById(R.id.n_9);
t[10]=(TextView) findViewById(R.id.n_10);
t[11]=(TextView) findViewById(R.id.n_11);
t[12]=(TextView) findViewById(R.id.n_12);
t[13]=(TextView) findViewById(R.id.n_13);
t[14]=(TextView) findViewById(R.id.n_14);
t[15]=(TextView) findViewById(R.id.n_15);
t[16]=(TextView) findViewById(R.id.n_16);
for(int i=0;i<17;i++){
t[i].setOnClickListener(this);
}

}

@Override
public void onClick(View v) {

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package edu.hzuapps.androidlabs.soft1614080902434;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Soft1614080902434_Activity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft1614080902434_);
}
}
197 changes: 197 additions & 0 deletions soft1614080902434/2.app/2.app/src/main/res/layout/activity_second_.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,197 @@
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Second_Activity">

<TextView
android:layout_width="match_parent"
android:layout_height="304dp"
android:layout_x="0dp"
android:layout_y="2dp"
android:background="#EBEBEB"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="0dp" />

<Button
android:id="@+id/n_1"
android:layout_width="78dp"
android:layout_height="wrap_content"
android:layout_x="2dp"
android:layout_y="320dp"
android:text="1"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="420dp" />

<Button
android:id="@+id/n_2"
android:layout_width="75dp"
android:layout_height="wrap_content"
android:layout_x="97dp"
android:layout_y="322dp"
android:text="2"
tools:layout_editor_absoluteX="102dp"
tools:layout_editor_absoluteY="420dp" />

<Button
android:id="@+id/n_3"
android:layout_width="67dp"
android:layout_height="wrap_content"
android:layout_x="187dp"
android:layout_y="320dp"
android:text="3"
tools:layout_editor_absoluteX="204dp"
tools:layout_editor_absoluteY="420dp" />

<Button
android:id="@+id/n_4"
android:layout_width="68dp"
android:layout_height="wrap_content"
android:layout_x="6dp"
android:layout_y="378dp"
android:text="4"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="482dp" />

<Button
android:id="@+id/n_5"
android:layout_width="72dp"
android:layout_height="wrap_content"
android:layout_x="98dp"
android:layout_y="379dp"
android:text="5"
tools:layout_editor_absoluteX="99dp"
tools:layout_editor_absoluteY="482dp" />

<Button
android:id="@+id/n_6"
android:layout_width="66dp"
android:layout_height="wrap_content"
android:layout_x="190dp"
android:layout_y="381dp"
android:text="6"
tools:layout_editor_absoluteX="204dp"
tools:layout_editor_absoluteY="482dp" />

<Button
android:id="@+id/n_7"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:layout_x="12dp"
android:layout_y="433dp"
android:text="7"
tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="539dp" />

<Button
android:id="@+id/n_8"
android:layout_width="69dp"
android:layout_height="wrap_content"
android:layout_x="103dp"
android:layout_y="438dp"
android:text="8"
tools:layout_editor_absoluteX="100dp"
tools:layout_editor_absoluteY="538dp" />

<Button
android:id="@+id/n_9"
android:layout_width="66dp"
android:layout_height="wrap_content"
android:layout_x="195dp"
android:layout_y="437dp"
android:text="9"
tools:layout_editor_absoluteX="204dp"
tools:layout_editor_absoluteY="538dp" />

<Button
android:id="@+id/n_0"
android:layout_width="65dp"
android:layout_height="wrap_content"
android:layout_x="273dp"
android:layout_y="384dp"
android:text="0"
tools:layout_editor_absoluteX="298dp"
tools:layout_editor_absoluteY="482dp" />

<Button
android:id="@+id/n_10"
android:layout_width="60dp"
android:layout_height="wrap_content"
android:layout_x="274dp"
android:layout_y="321dp"
android:text="Del"
tools:layout_editor_absoluteX="298dp"
tools:layout_editor_absoluteY="420dp" />

<Button
android:id="@+id/n_11"
android:layout_width="66dp"
android:layout_height="wrap_content"
android:layout_x="273dp"
android:layout_y="437dp"
android:text="符号"
tools:layout_editor_absoluteX="307dp"
tools:layout_editor_absoluteY="339dp" />

<Button
android:id="@+id/n_12"
android:layout_width="64dp"
android:layout_height="43dp"
android:layout_x="269dp"
android:layout_y="262dp"
android:text="发送"
tools:layout_editor_absoluteX="298dp"
tools:layout_editor_absoluteY="538dp" />

<Button
android:id="@+id/n_13"
android:layout_width="70dp"
android:layout_height="38dp"
android:layout_x="0dp"
android:layout_y="72dp"
android:text="小明:"
tools:layout_editor_absoluteX="1dp"
tools:layout_editor_absoluteY="90dp" />

<Button
android:id="@+id/n_14"
android:layout_width="60dp"
android:layout_height="37dp"
android:layout_x="268dp"
android:layout_y="199dp"
android:text="我:"
tools:layout_editor_absoluteX="340dp"
tools:layout_editor_absoluteY="212dp" />

<Button
android:id="@+id/n_15"
android:layout_width="414dp"
android:layout_height="wrap_content"
android:layout_x="0dp"
android:layout_y="2dp"
android:text=" " />


<TextView
android:id="@+id/n_16"
android:layout_width="250dp"
android:layout_height="32dp"
android:layout_x="52dp"
android:layout_y="140dp"

android:textColor="#EEA2AD"

tools:layout_editor_absoluteX="16dp"
tools:layout_editor_absoluteY="342dp" />

<EditText
android:id="@+id/edit_text"
android:layout_width="254dp"
android:layout_height="wrap_content"
android:layout_x="7dp"
android:layout_y="260dp" />


</AbsoluteLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Soft1614080902434_Activity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="微信聊天"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />

</android.support.constraint.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".Wechat">

<TextView
android:layout_width="84dp"
android:layout_height="178dp"
android:layout_x="126dp"
android:layout_y="168dp"
android:text=" Hello world "
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />

<Button
android:id="@+id/but"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="29dp"
android:layout_y="295dp"
android:text="聊天"
tools:layout_editor_absoluteX="18dp"
tools:layout_editor_absoluteY="20dp" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_x="243dp"
android:layout_y="293dp"
android:text="表情包"
tools:layout_editor_absoluteX="262dp"
tools:layout_editor_absoluteY="47dp" />

</AbsoluteLayout>
3 changes: 3 additions & 0 deletions soft1614080902434/2.app/2.app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">微信聊天</string>
</resources>
Binary file added soft1614080902434/3.0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902434/3.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902434/4.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902434/4.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added soft1614080902434/4.3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions soft1614080902434/Soft1614080902434_Activity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package edu.hzuapps.androidlabs.soft1614080902434;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Soft1614080902434_Activity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_soft1614080902434_);
}
}
22 changes: 22 additions & 0 deletions soft1614080902434/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="soft1614080902434.androidlabs.hzuapps.edu.soft1614080902434">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".Wechat">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".Second_Activity"></activity>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package soft1614080902434.androidlabs.hzuapps.edu.soft1614080902434;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class Second_Activity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_second_);
}
}
Loading