Added view original signature

This commit is contained in:
M66B
2022-02-06 11:03:36 +01:00
parent 823b2fde92
commit 9d87fe8f6c
7 changed files with 143 additions and 60 deletions

View File

@@ -43,6 +43,7 @@ import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;
import androidx.annotation.NonNull;
@@ -61,6 +62,7 @@ public class ActivitySignature extends ActivityBase {
private ViewGroup view;
private TextView tvHtmlRemark;
private EditTextCompose etText;
private ImageButton ibFull;
private BottomNavigationView style_bar;
private BottomNavigationView bottom_navigation;
@@ -84,6 +86,7 @@ public class ActivitySignature extends ActivityBase {
tvHtmlRemark = findViewById(R.id.tvHtmlRemark);
etText = findViewById(R.id.etText);
ibFull = findViewById(R.id.ibFull);
style_bar = findViewById(R.id.style_bar);
bottom_navigation = findViewById(R.id.bottom_navigation);
@@ -114,6 +117,21 @@ public class ActivitySignature extends ActivityBase {
}
});
ibFull.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Bundle args = new Bundle();
args.putString("html", getHtml());
args.putBoolean("overview_mode", false);
args.putBoolean("safe_browsing", false);
args.putBoolean("force_light", true);
FragmentDialogOpenFull dialog = new FragmentDialogOpenFull();
dialog.setArguments(args);
dialog.show(getSupportFragmentManager(), "signature");
}
});
style_bar.setOnNavigationItemSelectedListener(new BottomNavigationView.OnNavigationItemSelectedListener() {
@Override
public boolean onNavigationItemSelected(@NonNull MenuItem item) {