parent
65d641109a
commit
8ef761e99a
@ -0,0 +1,233 @@
|
||||
<?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"
|
||||
android:background="@drawable/r9"
|
||||
tools:context=".freeModel.FreemdActivity">
|
||||
|
||||
|
||||
<!--乐谱布局-->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="530dp"
|
||||
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginTop="20dp"
|
||||
android:text="flyi"
|
||||
android:textColor="#000"
|
||||
android:textSize="30sp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/score_kind"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:textSize="17sp"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:text="4/4" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/author"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="right"
|
||||
android:textSize="17sp"
|
||||
android:layout_marginRight="10dp"
|
||||
android:text="111" />
|
||||
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!--使用ScrollView使其可以滚动-->
|
||||
<ScrollView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<com.example.musicwork.freeModel.MusicScoreLayout
|
||||
android:id="@+id/music_score"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
</com.example.musicwork.freeModel.MusicScoreLayout>
|
||||
|
||||
</ScrollView>
|
||||
|
||||
</LinearLayout>
|
||||
<!--功能按钮布局-->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="0dp">
|
||||
|
||||
<Button
|
||||
android:id="@+id/high_note"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="#cdb97a"
|
||||
android:text="升号" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/low_note"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="#cdb97a"
|
||||
android:text="降号" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/inc_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="#cdb97a"
|
||||
android:text="增时线" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/dec_time"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="#cdb97a"
|
||||
android:text="减时线" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<!--音符按键布局-->
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="2"
|
||||
android:orientation="vertical">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Button
|
||||
android:id="@+id/stop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:background="@drawable/buttonback2"
|
||||
android:text="0" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/Do"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:background="@drawable/buttonback2"
|
||||
android:text="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/Re"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:background="@drawable/buttonback2"
|
||||
android:text="2" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/Mi"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:background="@drawable/buttonback2"
|
||||
android:text="3" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/Fa"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:background="@drawable/buttonback2"
|
||||
android:text="4" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/Sol"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:background="@drawable/buttonback2"
|
||||
android:text="5" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/La"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:background="@drawable/buttonback2"
|
||||
android:text="6" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/Si"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:onClick="onClick"
|
||||
android:background="@drawable/buttonback2"
|
||||
android:text="7" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<Button
|
||||
android:id="@+id/Del"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/buttonback3"
|
||||
android:text="删除" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/play_music"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/buttonback3"
|
||||
android:text="播放" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/save_music"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="@drawable/buttonback3"
|
||||
android:text="保存" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
Loading…
Reference in new issue