Small layout improvement

pull/153/head
M66B 6 years ago
parent 51600e8f33
commit f05ba24c64

@ -19,6 +19,7 @@ package eu.faircode.email;
Copyright 2018-2019 by Marcel Bokhorst (M66B) Copyright 2018-2019 by Marcel Bokhorst (M66B)
*/ */
import android.graphics.Paint;
import android.os.Bundle; import android.os.Bundle;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
@ -38,9 +39,11 @@ public class FragmentAbout extends FragmentBase {
View view = inflater.inflate(R.layout.fragment_about, container, false); View view = inflater.inflate(R.layout.fragment_about, container, false);
TextView tvLimitations = view.findViewById(R.id.tvLimitations);
tvVersion = view.findViewById(R.id.tvVersion); tvVersion = view.findViewById(R.id.tvVersion);
tvVersion.setText(getString(R.string.title_version, BuildConfig.VERSION_NAME)); tvVersion.setText(getString(R.string.title_version, BuildConfig.VERSION_NAME));
tvLimitations.setPaintFlags(tvLimitations.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
return view; return view;
} }

@ -20,11 +20,13 @@ package eu.faircode.email;
*/ */
import android.content.SharedPreferences; import android.content.SharedPreferences;
import android.graphics.Paint;
import android.os.Bundle; import android.os.Bundle;
import android.view.LayoutInflater; import android.view.LayoutInflater;
import android.view.View; import android.view.View;
import android.view.ViewGroup; import android.view.ViewGroup;
import android.widget.Button; import android.widget.Button;
import android.widget.TextView;
import androidx.annotation.NonNull; import androidx.annotation.NonNull;
import androidx.annotation.Nullable; import androidx.annotation.Nullable;
@ -38,9 +40,12 @@ public class FragmentEula extends FragmentBase {
View view = inflater.inflate(R.layout.fragment_eula, container, false); View view = inflater.inflate(R.layout.fragment_eula, container, false);
TextView tvLimitations = view.findViewById(R.id.tvLimitations);
Button btnAgree = view.findViewById(R.id.btnOk); Button btnAgree = view.findViewById(R.id.btnOk);
Button btnDisagree = view.findViewById(R.id.btnCancel); Button btnDisagree = view.findViewById(R.id.btnCancel);
tvLimitations.setPaintFlags(tvLimitations.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
btnAgree.setOnClickListener(new View.OnClickListener() { btnAgree.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {

Loading…
Cancel
Save