Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
hebinhai committed Apr 20, 2016
1 parent 2cbcc62 commit d13b369
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {
public class com1314080901110Activity extends AppCompatActivity {
private Button toPlay;
private Button setDifficulty;
public String level="10";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
setContentView(R.layout.activity_com131408090110);
// 布置ToPlayGame按钮监听事件
toPlay=(Button)findViewById(R.id.toPlay);
toPlay.setOnClickListener(new View.OnClickListener() {
Expand Down
39 changes: 39 additions & 0 deletions app/src/main/res/layout/activity_com13140809011110.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<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"
android:background="#f0f0f0"
tools:context=".con131408090110Activity">
<ImageButton
android:id="@+id/image"
android:layout_marginTop="30dp"
android:layout_centerHorizontal="true"
android:scaleType="fitXY"
android:layout_width="300dp"
android:layout_height="300dp"
android:src="@drawable/image1"/>
<Button
android:id="@+id/toPlay"
android:layout_below="@+id/image"
android:layout_marginTop="15dp"
android:layout_centerHorizontal="true"
android:layout_width="280dp"
android:layout_height="wrap_content"
android:background="@drawable/buttonstyle"
android:textColor="#ffffff"
android:textSize="18sp"
android:textAllCaps="false"
android:text="@string/to_play_game"/>
<Button
android:id="@+id/setDifficulty"
android:layout_below="@+id/toPlay"
android:layout_marginTop="15dp"
android:layout_centerHorizontal="true"
android:layout_width="280dp"
android:layout_height="wrap_content"
android:background="@drawable/buttonstyle"
android:textColor="#ffffff"
android:textSize="18sp"
android:textAllCaps="false"
android:text="@string/setDifficulty"/>
</RelativeLayout>

0 comments on commit d13b369

Please sign in to comment.