Skip to content

Commit ad47e9c

Browse files
authored
Update activity_audio_visualization.xml
增加响度
1 parent d7c1940 commit ad47e9c

1 file changed

Lines changed: 26 additions & 17 deletions

File tree

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,29 @@
1-
<!-- res/layout/activity_audio_visualization.xml -->
2-
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3-
android:layout_width="match_parent"
4-
android:layout_height="match_parent"
5-
android:padding="16dp">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout
3+
xmlns:android="http://schemas.android.com/apk/res/android"
4+
android:layout_height="match_parent"
5+
android:layout_width="match_parent"
6+
android:padding="16dp">
67

78
<com.dypho.audiovisualization.WaveformView
8-
android:id="@+id/waveformView"
9-
android:layout_width="match_parent"
10-
android:layout_height="200dp"
11-
android:layout_centerInParent="true"
12-
android:background="#FFFFFF" />
13-
 <TextView
14-
android:id="@+id/frequencyTextView"
15-
android:layout_width="wrap_content"
16-
android:layout_height="wrap_content"
17-
android:text="Frequency: 0 Hz"
18-
android:layout_below="@id/waveformView" />
9+
android:layout_height="200dp"
10+
android:layout_width="match_parent"
11+
android:layout_centerInParent="true"
12+
android:background="#FFFFFF"
13+
android:id="@+id/waveformView" />
1914

20-
</RelativeLayout>
15+
<TextView
16+
android:layout_height="wrap_content"
17+
android:layout_width="wrap_content"
18+
android:layout_below="@id/waveformView"
19+
android:id="@+id/frequencyTextView"
20+
android:text="Frequency: 0 Hz" />
21+
22+
<TextView
23+
android:layout_height="wrap_content"
24+
android:layout_width="wrap_content"
25+
android:layout_below="@id/frequencyTextView"
26+
android:id="@+id/loudnessTextView"
27+
android:text="Loudness: 0 dB" />
28+
29+
</RelativeLayout>

0 commit comments

Comments
 (0)