Skip to content

Commit

Permalink
set max lines
Browse files Browse the repository at this point in the history
  • Loading branch information
litongjava committed Oct 24, 2023
1 parent 0743926 commit 48f1d72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,10 @@ public void transcribeSample(TextView tv, File sampleFile) {
end = System.currentTimeMillis();
if(transcription!=null){
ToastUtils.showLong(transcription.toString());
AlertDialogUtils.showWaringDialog(Utils.getApp(),msg);
msg = "Transcript successful:" + (end - start) + "ms";
outputMsg(tv, msg);

msg = "Transcription:" + transcription.toString();
outputMsg(tv, msg);
outputMsg(tv, transcription.toString());

}else{
msg = "Transcript failed:" + (end - start) + "ms";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@

<TextView
android:id="@+id/sample_text"
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
app:layout_constraintTop_toTopOf="parent"
android:scrollbarAlwaysDrawHorizontalTrack="true"
android:maxLines="999"/>

</LinearLayout>

0 comments on commit 48f1d72

Please sign in to comment.