Small layout improvement

master
M66B 2 months ago
parent 1a2b4d4e91
commit 1b4e78e205

@ -97,6 +97,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
private ViewGroup view; private ViewGroup view;
private TextView tvWelcome; private TextView tvWelcome;
private TextView tvFree;
private TextView tvPrivacy; private TextView tvPrivacy;
private TextView tvSupport; private TextView tvSupport;
private ImageButton ibWelcome; private ImageButton ibWelcome;
@ -118,7 +119,6 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
private TextView tvExchangeSupport; private TextView tvExchangeSupport;
private TextView tvIdentityWhat; private TextView tvIdentityWhat;
private Button btnInbox; private Button btnInbox;
private TextView tvFree;
private TextView tvNoComposable; private TextView tvNoComposable;
private TextView tvCalendarPermissions; private TextView tvCalendarPermissions;
@ -194,6 +194,7 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
// Get controls // Get controls
tvWelcome = view.findViewById(R.id.tvWelcome); tvWelcome = view.findViewById(R.id.tvWelcome);
tvFree = view.findViewById(R.id.tvFree);
tvPrivacy = view.findViewById(R.id.tvPrivacy); tvPrivacy = view.findViewById(R.id.tvPrivacy);
tvSupport = view.findViewById(R.id.tvSupport); tvSupport = view.findViewById(R.id.tvSupport);
ibWelcome = view.findViewById(R.id.ibWelcome); ibWelcome = view.findViewById(R.id.ibWelcome);
@ -215,7 +216,6 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
tvExchangeSupport = view.findViewById(R.id.tvExchangeSupport); tvExchangeSupport = view.findViewById(R.id.tvExchangeSupport);
tvIdentityWhat = view.findViewById(R.id.tvIdentityWhat); tvIdentityWhat = view.findViewById(R.id.tvIdentityWhat);
btnInbox = view.findViewById(R.id.btnInbox); btnInbox = view.findViewById(R.id.btnInbox);
tvFree = view.findViewById(R.id.tvFree);
tvNoComposable = view.findViewById(R.id.tvNoComposable); tvNoComposable = view.findViewById(R.id.tvNoComposable);
tvCalendarPermissions = view.findViewById(R.id.tvCalendarPermissions); tvCalendarPermissions = view.findViewById(R.id.tvCalendarPermissions);
@ -273,6 +273,14 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
} }
}); });
tvFree.setPaintFlags(tvFree.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvFree.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 19);
}
});
tvPrivacy.setPaintFlags(tvPrivacy.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG); tvPrivacy.setPaintFlags(tvPrivacy.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvPrivacy.setOnClickListener(new View.OnClickListener() { tvPrivacy.setOnClickListener(new View.OnClickListener() {
@Override @Override
@ -551,14 +559,6 @@ public class FragmentSetup extends FragmentBase implements SharedPreferences.OnS
} }
}); });
tvFree.setPaintFlags(tvFree.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);
tvFree.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Helper.viewFAQ(v.getContext(), 19);
}
});
btnPermissions.setOnClickListener(new View.OnClickListener() { btnPermissions.setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View v) { public void onClick(View v) {

@ -130,6 +130,21 @@
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/issue" /> app:layout_constraintTop_toBottomOf="@+id/issue" />
<TextView
android:id="@+id/tvFree"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="12dp"
android:drawableEnd="@drawable/twotone_open_in_new_12"
android:drawablePadding="6dp"
android:text="@string/title_setup_free"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorLink"
app:drawableTint="?android:attr/textColorLink"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/analytics" />
<TextView <TextView
android:id="@+id/tvPrivacy" android:id="@+id/tvPrivacy"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -143,7 +158,7 @@
app:drawableTint="?android:attr/textColorLink" app:drawableTint="?android:attr/textColorLink"
app:layout_constraintEnd_toStartOf="@+id/tvSupport" app:layout_constraintEnd_toStartOf="@+id/tvSupport"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/analytics" /> app:layout_constraintTop_toBottomOf="@id/tvFree" />
<TextView <TextView
android:id="@+id/tvSupport" android:id="@+id/tvSupport"
@ -158,7 +173,7 @@
app:drawableTint="?android:attr/textColorLink" app:drawableTint="?android:attr/textColorLink"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/tvPrivacy" app:layout_constraintStart_toEndOf="@id/tvPrivacy"
app:layout_constraintTop_toBottomOf="@id/analytics" /> app:layout_constraintTop_toBottomOf="@id/tvFree" />
<ImageButton <ImageButton
android:id="@+id/ibWelcome" android:id="@+id/ibWelcome"
@ -592,21 +607,6 @@
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/tvNoComposable" /> app:layout_constraintTop_toBottomOf="@id/tvNoComposable" />
<TextView
android:id="@+id/tvFree"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="18dp"
android:drawableEnd="@drawable/twotone_open_in_new_12"
android:drawablePadding="6dp"
android:text="@string/title_setup_free"
android:textAppearance="@style/TextAppearance.AppCompat.Small"
android:textColor="?android:attr/textColorLink"
app:drawableTint="?android:attr/textColorLink"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/btnInbox" />
</androidx.constraintlayout.widget.ConstraintLayout> </androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView> </androidx.cardview.widget.CardView>

Loading…
Cancel
Save