forked from hzuapps/android-labs-2020
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
20
students/net1814080903317/Net1814080903317FoundItAddActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
54
students/net1814080903317/Net1814080903317FoundItMainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
20
students/net1814080903317/Net1814080903317FoundItMyActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |