forked from hzuapps/android-labs-2018
-
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
8 changed files
with
185 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...80902129/app3/src/main/java/com/example/administrator/soft1614080902129/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,25 @@ | ||
package com.example.administrator.soft1614080902129; | ||
|
||
import android.content.Intent; | ||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.view.View; | ||
|
||
public class MainActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_main); | ||
|
||
setContentView(R.layout.my_layout); | ||
findViewById(R.id.btnStarAnotherAty).setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View view) { | ||
startActivity(new Intent(MainActivity.this,Soft1614080902129MainActivity.class)); | ||
} | ||
}); | ||
|
||
|
||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
.../main/java/com/example/administrator/soft1614080902129/Soft1614080902129MainActivity.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,13 @@ | ||
package com.example.administrator.soft1614080902129; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class Soft1614080902129MainActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_soft1614080902129_main); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions
17
soft1614080902129/app3/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,17 @@ | ||
<?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="com.example.administrator.soft1614080902129.MainActivity"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="nihao!" | ||
app:layout_constraintBottom_toBottomOf="parent" | ||
app:layout_constraintLeft_toLeftOf="parent" | ||
app:layout_constraintRight_toRightOf="parent" | ||
app:layout_constraintTop_toTopOf="parent" /> | ||
</android.support.constraint.ConstraintLayout> |
112 changes: 112 additions & 0 deletions
112
soft1614080902129/app3/src/main/res/layout/activity_soft1614080902129_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,112 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout 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=".Soft1614080902129MainActivity"> | ||
|
||
|
||
<RelativeLayout | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
android:background="@drawable/soft1614080902129" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentLeft="true" | ||
android:layout_alignParentStart="true"> | ||
|
||
<ImageView | ||
android:id="@+id/imageView" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" | ||
android:layout_above="@+id/imageView4" | ||
android:layout_alignLeft="@+id/imageView4" | ||
android:layout_alignStart="@+id/imageView4" | ||
android:layout_marginBottom="12dp" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView2" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_alignParentStart="true" | ||
android:layout_alignTop="@+id/imageView" | ||
android:layout_marginStart="154dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView3" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" | ||
android:layout_alignTop="@+id/imageView2" | ||
android:layout_alignRight="@+id/imageView9" | ||
android:layout_alignEnd="@+id/imageView9" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView4" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" | ||
android:layout_alignTop="@+id/imageView5" | ||
android:layout_toLeftOf="@+id/imageView8" | ||
android:layout_toStartOf="@+id/imageView8" | ||
android:layout_marginRight="24dp" | ||
android:layout_marginEnd="24dp" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView5" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" | ||
android:layout_above="@+id/imageView7" | ||
android:layout_centerHorizontal="true" | ||
android:layout_marginBottom="11dp" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView6" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" | ||
android:layout_alignTop="@+id/imageView5" | ||
android:layout_alignLeft="@+id/imageView3" | ||
android:layout_alignStart="@+id/imageView3" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView7" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignStart="@+id/imageView4" | ||
android:layout_marginBottom="105dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView8" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignStart="@+id/imageView2" | ||
android:layout_marginBottom="97dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" /> | ||
|
||
<ImageView | ||
android:id="@+id/imageView9" | ||
android:layout_width="70dp" | ||
android:layout_height="70dp" | ||
android:layout_alignParentEnd="true" | ||
android:layout_alignTop="@+id/imageView8" | ||
android:layout_marginEnd="66dp" | ||
android:layout_weight="1" | ||
app:srcCompat="@drawable/jingyu" /> | ||
</RelativeLayout> | ||
|
||
</RelativeLayout> |
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,18 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<Button | ||
android:id="@+id/btnStarAnotherAty" | ||
android:layout_width="143dp" | ||
android:layout_height="338dp" | ||
android:layout_marginTop="74dp" | ||
android:drawableTop="@drawable/jingyu" | ||
android:text="开始游戏" | ||
android:gravity="center" | ||
android:layout_alignParentTop="true" | ||
android:layout_centerHorizontal="true" /> | ||
</RelativeLayout> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.