Skip to content

Commit

Permalink
Audio sending file
Browse files Browse the repository at this point in the history
  • Loading branch information
tien-awair committed Apr 22, 2022
1 parent 820375f commit f56b0da
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,8 @@ public void onFinish(long recordTime, boolean limitReached) {

@Override
public void onLessThanSecond() {

binding.vgInputBox.setInputMode(MessageInputView.Mode.DEFAULT);
audioRecorder.stopRecording();
}
});
binding.vgInputBox.setOnAudioLongClickListener();
Expand Down
5 changes: 5 additions & 0 deletions uikit/src/main/res/drawable/bg_circle_record.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<shape android:shape="oval" xmlns:android="http://schemas.android.com/apk/res/android">

<solid android:color="@color/primary_400" />
</shape>
9 changes: 5 additions & 4 deletions uikit/src/main/res/layout/sb_view_message_input.xml
Original file line number Diff line number Diff line change
Expand Up @@ -172,15 +172,16 @@

<com.devlomi.record_view.RecordButton
android:id="@+id/record_button"
android:layout_width="@dimen/sb_size_24"
android:layout_height="@dimen/sb_size_24"
android:layout_width="@dimen/sb_size_36"
android:layout_height="@dimen/sb_size_36"
android:layout_marginStart="@dimen/sb_size_12"
android:layout_marginLeft="@dimen/sb_size_12"
android:layout_marginEnd="@dimen/sb_size_0"
android:layout_marginRight="@dimen/sb_size_0"
android:padding="@dimen/sb_size_0"
android:padding="@dimen/sb_size_8"
android:src="@drawable/ic_voice"
app:tint="@color/primary_400" />
android:background="@drawable/bg_circle_record"
app:tint="#FFFFFF" />

</LinearLayout>

Expand Down

0 comments on commit f56b0da

Please sign in to comment.