forked from hzuapps/android-labs-2019
-
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
14 changed files
with
98 additions
and
102 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
27 changes: 0 additions & 27 deletions
27
.../app/src/main/java/edu/hzuapps/androidlabs/com1709081602330/Com1709081602330Activity.java
This file was deleted.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
...709081602330/app/src/main/java/edu/hzuapps/androidlabs/com1709081602330/MainActivity.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,28 @@ | ||
package edu.hzuapps.androidlabs.com1709081602330; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
import android.widget.Button; | ||
import android.widget.TextView; | ||
import android.widget.Toast; | ||
|
||
public class MainActivity extends AppCompatActivity { | ||
private Button select_sort; | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_main); | ||
Button select_sort = (Button) findViewById(R.id.select_sort); | ||
select_sort.setOnClickListener(new View.OnClickListener(){ | ||
@Override | ||
public void onClick(View v){ | ||
Intent intent = new Intent(MainActivity.this,Sports_sort.class); | ||
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
30 changes: 30 additions & 0 deletions
30
students/com1709081602330/app/src/main/res/layout/activity_main.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,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<TableLayout 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=".MainActivity"> | ||
|
||
<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" /> | ||
<Button | ||
android:id="@+id/select_sort" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="选择分类" | ||
/> | ||
<ImageView | ||
android:id="@+id/image_view" | ||
android:layout_height="wrap_content" | ||
android:layout_width="wrap_content" | ||
android:src = "@drawable/img_1" | ||
/> | ||
|
||
</TableLayout> |
31 changes: 31 additions & 0 deletions
31
students/com1709081602330/app/src/main/res/layout/activity_sports_sort.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,31 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout 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" | ||
android:orientation="vertical" | ||
|
||
|
||
tools:context=".Sports_sort"> | ||
|
||
<Button | ||
android:id="@+id/basketball" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:text="篮球"/> | ||
<Button | ||
android:id="@+id/football" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:text="足球"/> | ||
<Button | ||
android:id="@+id/tennis" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_gravity="center_horizontal" | ||
android:text="网球"/> | ||
|
||
</LinearLayout> |
29 changes: 0 additions & 29 deletions
29
students/com1709081602330/app/src/main/res/layout/com_1709081602330_activity.xml
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
students/com1709081602330/app/src/main/res/layout/com_1709081602330_activity2.xml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
students/com1709081602330/app/src/main/res/values/strings.xml
This file was deleted.
Oops, something went wrong.
11 changes: 0 additions & 11 deletions
11
students/com1709081602330/app/src/main/res/values/styles.xml
This file was deleted.
Oops, something went wrong.