Skip to content

Commit

Permalink
hzuapps#2 hzuapps#192 第二次实验
Browse files Browse the repository at this point in the history
  • Loading branch information
jaydjxing committed Oct 5, 2020
1 parent 003c553 commit 4202cf0
Show file tree
Hide file tree
Showing 5 changed files with 165 additions and 0 deletions.
28 changes: 28 additions & 0 deletions students/net1814080903317/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.foundit">

<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=".controller.activity.Net1814080903317RegisterActivity" />
<activity android:name=".controller.activity.Net1814080903317LoginActivity" />
<activity android:name=".controller.activity.foundIt.Net1814080903317FoundItAddActivity"/>
<activity android:name=".controller.activity.foundIt.Net1814080903317FoundItMainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".controller.activity.foundIt.Net1814080903317FoundItMyActivity"/>
<activity android:name=".controller.activity.MainActivity">

</activity>
</application>

</manifest>
20 changes: 20 additions & 0 deletions students/net1814080903317/Net1814080903317FoundItAddActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.example.foundit.controller.activity.foundIt;

import android.app.Activity;
import android.os.Bundle;

import com.example.foundit.R;

/**
* author: djx
* created on: 2020/9/28 15:25
* description:失物招领发布的页面
*/
public class Net1814080903317FoundItAddActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_foundit_add);
}
}
54 changes: 54 additions & 0 deletions students/net1814080903317/Net1814080903317FoundItMainActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package com.example.foundit.controller.activity.foundIt;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.example.foundit.R;

/**
* author: djx
* created on: 2020/9/28 15:23
* description:失物招领主页面
*/
public class Net1814080903317FoundItMainActivity extends Activity {

private ImageView myIv;
private TextView publicTv;

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_foundit_main);
initView();
initListener();
}

private void initListener() {
myIv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Net1814080903317FoundItMainActivity.this,Net1814080903317FoundItMyActivity.class);
startActivity(intent);
}
});
publicTv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent=new Intent(Net1814080903317FoundItMainActivity.this,Net1814080903317FoundItAddActivity.class);
startActivity(intent);
}
});


}

private void initView() {
myIv = findViewById(R.id.foundit_my_iv);
publicTv = findViewById(R.id.foundit_public_tv);
}

}
20 changes: 20 additions & 0 deletions students/net1814080903317/Net1814080903317FoundItMyActivity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.example.foundit.controller.activity.foundIt;

import android.app.Activity;
import android.os.Bundle;

import com.example.foundit.R;

/**
* author: djx
* created on: 2020/9/28 15:25
* description:失物招领个人页面
*/
public class Net1814080903317FoundItMyActivity extends Activity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_foundit_my);
}
}
43 changes: 43 additions & 0 deletions students/net1814080903317/activity_foundit_main.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"

android:layout_height="match_parent">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="50dp">
<ImageView
android:id="@+id/foundit_my_iv"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentLeft="true"
android:src="@mipmap/my"
android:layout_marginLeft="10dp"
android:layout_centerVertical="true"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="失 物 招 领"
android:textColor="@android:color/holo_orange_light"
android:textSize="20sp"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:padding="5dp"
android:gravity="center"/>
<TextView
android:id="@+id/foundit_public_tv"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:text="发 布"
android:padding="5dp"
android:textSize="18sp"
android:textColor="@color/colorPrimary"
android:layout_alignParentRight="true"
android:gravity="center"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
/>
</RelativeLayout>

</LinearLayout>

0 comments on commit 4202cf0

Please sign in to comment.