-
-
Save nsadisha/457a1d8bedd4458bd0b14d7b68224b58 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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" | |
xmlns:tools="http://schemas.android.com/tools"> | |
<data> | |
<variable | |
name="viewModel" | |
type="com.nsadisha.mvvmtest_2.viewModel.FirstViewModel" /> | |
</data> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".view.FirstFragment"> | |
<TextView | |
android:id="@+id/textview_first" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:text="@{viewModel.data.toString()}" | |
android:textSize="24sp" | |
app:layout_constraintBottom_toTopOf="@id/button_first" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintHorizontal_bias="0.498" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintVertical_bias="0.421" /> | |
<Button | |
android:id="@+id/button_first" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:onClick="@{() -> viewModel.increase()}" | |
android:text="@string/next" | |
app:layout_constraintBottom_toBottomOf="parent" | |
app:layout_constraintEnd_toEndOf="parent" | |
app:layout_constraintHorizontal_bias="0.498" | |
app:layout_constraintStart_toStartOf="parent" | |
app:layout_constraintTop_toTopOf="parent" | |
app:layout_constraintVertical_bias="0.301" /> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment