mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Convert learn more button into blue TextView
This commit is contained in:
@@ -8,8 +8,8 @@ import android.view.MenuInflater;
|
|||||||
import android.view.MenuItem;
|
import android.view.MenuItem;
|
||||||
import android.view.View;
|
import android.view.View;
|
||||||
import android.view.ViewGroup;
|
import android.view.ViewGroup;
|
||||||
import android.widget.Button;
|
|
||||||
import android.widget.Switch;
|
import android.widget.Switch;
|
||||||
|
import android.widget.TextView;
|
||||||
|
|
||||||
import org.briarproject.bramble.api.db.DatabaseExecutor;
|
import org.briarproject.bramble.api.db.DatabaseExecutor;
|
||||||
import org.briarproject.bramble.api.db.DbException;
|
import org.briarproject.bramble.api.db.DbException;
|
||||||
@@ -97,7 +97,8 @@ public class ConversationSettingsFragment extends BaseFragment {
|
|||||||
viewModel.setAutoDeleteTimerEnabled(value);
|
viewModel.setAutoDeleteTimerEnabled(value);
|
||||||
});
|
});
|
||||||
|
|
||||||
Button buttonLearnMore = contentView.findViewById(R.id.buttonLearnMore);
|
TextView buttonLearnMore =
|
||||||
|
contentView.findViewById(R.id.buttonLearnMore);
|
||||||
buttonLearnMore.setOnClickListener(e -> {
|
buttonLearnMore.setOnClickListener(e -> {
|
||||||
showLearnMoreDialog();
|
showLearnMoreDialog();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -29,12 +29,15 @@
|
|||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/imageViewBomb" />
|
app:layout_constraintTop_toBottomOf="@+id/imageViewBomb" />
|
||||||
|
|
||||||
<Button
|
<TextView
|
||||||
android:id="@+id/buttonLearnMore"
|
android:id="@+id/buttonLearnMore"
|
||||||
style="?android:attr/borderlessButtonStyle"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_marginTop="@dimen/margin_large"
|
||||||
|
android:clickable="true"
|
||||||
|
android:focusable="true"
|
||||||
android:text="@string/learn_more"
|
android:text="@string/learn_more"
|
||||||
|
android:textColor="?android:attr/textColorLink"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/textViewExplanation" />
|
app:layout_constraintTop_toBottomOf="@+id/textViewExplanation" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user