-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1823 from cruiji/master
- Loading branch information
Showing
17 changed files
with
283 additions
and
82 deletions.
There are no files selected for viewing
38 changes: 29 additions & 9 deletions
38
soft1614080902442/app/java/soft1614080902442main1Activity.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 |
---|---|---|
@@ -1,24 +1,44 @@ | ||
package edu.hzuapps.androidlabs.soft1614080902442; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.app.Activity; | ||
import android.content.Intent; | ||
import android.view.View; | ||
import android.widget.Button; | ||
|
||
public class soft1614080902442main1Activity extends AppCompatActivity implements View.OnClickListener{ | ||
import edu.hzuapps.androidlabs.soft1614080902442.soft1614080902442main1Activity; | ||
import edu.hzuapps.androidlabs.soft1614080902442.R; | ||
|
||
public class soft1614080902442main1Activity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_soft1614080902442main1); | ||
Button bt1 = (Button)findViewById(R.id.button); | ||
bt1.setOnClickListener(this); | ||
} | ||
|
||
@Override | ||
public void onClick(View v) { | ||
final Activity thisActivity = this; | ||
final Button btnOpen1 = (Button) findViewById(R.id.button_open1); | ||
final Button btnOpen2 = (Button) findViewById(R.id.button_open2); | ||
|
||
btnOpen1.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
if(v.equals(btnOpen1)) { | ||
Intent intent = new Intent(thisActivity,soft1614080902442main2Activity.class); | ||
thisActivity.startActivity(intent); | ||
} | ||
} | ||
}); | ||
|
||
Intent intent = new Intent(this,soft1614080902442main2Activity.class); | ||
startActivity(intent); | ||
btnOpen2.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View v) { | ||
if(v.equals(btnOpen2)) { | ||
Intent intent = new Intent(thisActivity,soft1614080902442main3Activity.class); | ||
thisActivity.startActivity(intent); | ||
} | ||
} | ||
}); | ||
} | ||
} |
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
19 changes: 19 additions & 0 deletions
19
soft1614080902442/app/java/soft1614080902442main3Activity.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,19 @@ | ||
package edu.hzuapps.androidlabs.soft1614080902442; | ||
|
||
import android.os.Bundle; | ||
import android.support.design.widget.FloatingActionButton; | ||
import android.support.design.widget.Snackbar; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.support.v7.widget.Toolbar; | ||
import android.view.View; | ||
|
||
public class soft1614080902442main3Activity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_soft1614080902442main3); | ||
|
||
} | ||
|
||
} |
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
Binary file not shown.
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
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
60 changes: 60 additions & 0 deletions
60
soft1614080902442/app/res/layout/activity_soft1614080902442main3.xml
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,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<android.support.design.widget.CoordinatorLayout 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=".soft1614080902442main3Activity"> | ||
|
||
|
||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical" | ||
tools:layout_editor_absoluteX="0dp" | ||
tools:layout_editor_absoluteY="0dp"> | ||
|
||
|
||
<ImageButton | ||
android:id="@+id/imageButton2" | ||
android:layout_width="80dp" | ||
android:layout_height="wrap_content" | ||
app:srcCompat="@android:drawable/ic_search_category_default" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:orientation="horizontal" | ||
android:background="#ffffff"> | ||
|
||
<TextView | ||
android:id="@+id/textView2" | ||
android:layout_width="wrap_content" | ||
android:layout_height="50dp" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:text="热门搜索:" /> | ||
|
||
</LinearLayout> | ||
|
||
<ListView | ||
android:layout_width="match_parent" | ||
android:layout_height="200dp" /> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="horizontal"> | ||
|
||
<Button | ||
android:id="@+id/button" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_weight="1" | ||
android:text="每日推荐" /> | ||
</LinearLayout> | ||
|
||
</LinearLayout> | ||
|
||
</android.support.design.widget.CoordinatorLayout> |
11 changes: 11 additions & 0 deletions
11
soft1614080902442/app/res/layout/content_soft1614080902442main3.xml
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,11 @@ | ||
<?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" | ||
app:layout_behavior="@string/appbar_scrolling_view_behavior" | ||
tools:context=".soft1614080902442main3Activity" | ||
tools:showIn="@layout/activity_soft1614080902442main3"> | ||
|
||
</android.support.constraint.ConstraintLayout> |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<resources> | ||
<string name="app_name">soft1614080902442睡眠大师</string> | ||
<resources> | ||
<string name="app_name">soft16140809024421睡眠大师</string> | ||
<string name="title_activity_soft1614080902442main2">soft1614080902442main2Activity</string> | ||
|
||
<string name="title_activity_soft1614080902442main3">soft1614080902442main3Activity</string> | ||
|
||
</resources> |
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
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
Oops, something went wrong.