adding a recording audio visualizer

This commit is contained in:
tibbi
2020-03-30 19:43:45 +02:00
parent afb76aa3e2
commit dde911e1de
5 changed files with 52 additions and 8 deletions

View File

@@ -1,10 +1,27 @@
<?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:id="@+id/recorder_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.visualizer.amplitude.AudioRecordView
android:id="@+id/visualizer"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/recording_duration"
android:layout_marginTop="@dimen/activity_margin"
android:layout_marginEnd="@dimen/activity_margin"
android:layout_marginBottom="@dimen/activity_margin"
app:chunkAlignTo="center"
app:chunkMaxHeight="200dp"
app:chunkMinHeight="2dp"
app:chunkRoundedCorners="true"
app:chunkSoftTransition="true"
app:chunkSpace="1dp"
app:chunkWidth="3dp" />
<TextView
android:id="@+id/recording_duration"
android:layout_width="wrap_content"