Last active
August 14, 2019 17:40
-
-
Save BambangHeriSetiawan/23ac62f6ada4a98a242f81cea359adc1 to your computer and use it in GitHub Desktop.
activity_main.xml
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:tools="http://schemas.android.com/tools"> | |
<data> | |
<variable name="mainVm" type="com.simx.paggingsample.MainVM"/> | |
</data> | |
<RelativeLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity"> | |
<com.google.android.material.textfield.TextInputLayout | |
android:layout_margin="5dp" | |
style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense" | |
android:id="@+id/lyt_input" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<com.google.android.material.textfield.TextInputEditText | |
android:id="@+id/et_input" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"/> | |
</com.google.android.material.textfield.TextInputLayout> | |
<LinearLayout | |
android:padding="5dp" | |
android:layout_margin="5dp" | |
android:layout_below="@id/lyt_input" | |
android:id="@+id/lyt_year" | |
android:orientation="horizontal" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<TextView | |
android:padding="10dp" | |
android:text="2018" | |
android:id="@+id/year_2018" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"/> | |
<TextView | |
android:padding="10dp" | |
android:text="2019" | |
android:id="@+id/year_2019" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content"/> | |
</LinearLayout> | |
<androidx.recyclerview.widget.RecyclerView | |
android:layout_margin="5dp" | |
android:layout_below="@id/lyt_year" | |
android:id="@+id/rcv" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"/> | |
</RelativeLayout> | |
</layout> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment