Skip to content

Commit

Permalink
made the about screen scrollable
Browse files Browse the repository at this point in the history
  • Loading branch information
EasyVector committed Sep 1, 2021
1 parent 0173848 commit 66c9c05
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.text.method.ScrollingMovementMethod;
import android.widget.TextView;

import androidx.annotation.NonNull;
Expand All @@ -44,6 +45,7 @@ public Dialog onCreateDialog(Bundle savedInstanceState) {
tv.setMovementMethod(LinkMovementMethod.getInstance());
tv.setText(Html.fromHtml(message.toString()));
tv.setTextSize(16);
tv.setMovementMethod(new ScrollingMovementMethod());
float density = getResources().getDisplayMetrics().density;
int paddingHorizontal = (int) (density * 20);
int paddingVertical = (int) (density * 14);
Expand Down

0 comments on commit 66c9c05

Please sign in to comment.