mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-26 19:45:26 +00:00
21f2f86cb8
The implementation itself was moved from fragment to self contained event. The result resolution might be moved to the event as well
50 lines
1.7 KiB
XML
50 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<layout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto">
|
|
|
|
<data>
|
|
|
|
<variable
|
|
name="viewModel"
|
|
type="com.topjohnwu.magisk.redesign.safetynet.SafetynetViewModel" />
|
|
|
|
</data>
|
|
|
|
<FrameLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:fillViewport="true">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<com.google.android.material.button.MaterialButton
|
|
style="?styleButtonText"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:onClick="@{() -> viewModel.attest()}"
|
|
android:text="Attest"
|
|
android:textAllCaps="false"
|
|
app:icon="@drawable/ic_test"
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:background="?colorPrimary">
|
|
|
|
<androidx.appcompat.widget.AppCompatTextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
</FrameLayout>
|
|
|
|
</layout> |