|
|
|
@ -0,0 +1,294 @@
|
|
|
|
|
<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="wrap_content"
|
|
|
|
|
android:background="@drawable/r10"
|
|
|
|
|
tools:context=".chuangguan.GameActivity"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginLeft="15dp"
|
|
|
|
|
android:layout_marginTop="10dp"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/text_username"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="当前用户" />
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/hint"
|
|
|
|
|
android:layout_width="99dp"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:text="当前成绩:" />
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/curgrade"
|
|
|
|
|
android:layout_width="100dp"
|
|
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:textSize="20dp" />
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/gradeinfo"
|
|
|
|
|
android:layout_width="50dp"
|
|
|
|
|
android:layout_height="50dp"
|
|
|
|
|
android:layout_marginLeft="150dp"
|
|
|
|
|
android:layout_marginTop="0dp"
|
|
|
|
|
android:background="@drawable/detail" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/textView2"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_marginTop="15dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:text="播放五组音乐,播放结束后请点击音符。简单模式每组播放2个音符,普通模式每组播放4个音符,困难模式每组播放10个音符。" />
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/startgame"
|
|
|
|
|
android:layout_width="200dp"
|
|
|
|
|
android:layout_height="100dp"
|
|
|
|
|
android:layout_marginLeft="100dp"
|
|
|
|
|
android:layout_marginTop="180dp"
|
|
|
|
|
android:background="@drawable/shape"
|
|
|
|
|
android:text="开始闯关"
|
|
|
|
|
android:textColor="#fff"
|
|
|
|
|
android:textSize="30dp" />
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="360dp"
|
|
|
|
|
android:layout_marginLeft="15dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu1"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button1"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="1"
|
|
|
|
|
android:textSize="0dp"
|
|
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu2"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button2"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="2"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu3"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button3"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="3"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu4"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button4"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="4"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu5"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button5"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="5"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu6"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button6"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="6"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu7"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button7"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="7"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="440dp"
|
|
|
|
|
android:layout_marginLeft="15dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu8"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button8"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="8"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu9"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button9"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="9"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu10"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button10"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="10"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu11"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button11"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="11"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu12"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button12"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="12"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu13"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button13"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="13"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu14"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button14"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="14"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginTop="520dp"
|
|
|
|
|
android:layout_marginLeft="15dp"
|
|
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu15"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button15"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="15"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu16"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button16"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="16"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu17"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button17"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="17"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu18"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button18"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="18"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu19"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button19"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="19"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu20"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button20"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="20"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
<Button
|
|
|
|
|
android:id="@+id/yinfu21"
|
|
|
|
|
android:layout_width="55dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:background="@drawable/button21"
|
|
|
|
|
android:onClick="countPressedBtn"
|
|
|
|
|
android:text="21"
|
|
|
|
|
android:textSize="0dp"/>
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content">
|
|
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
</RelativeLayout>
|