Created
March 7, 2020 20:27
-
-
Save oreganoli/d65179b119277f5f82ed1d83995addd2 to your computer and use it in GitHub Desktop.
Layout and strings
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="page" | |
type="String" /> | |
</data> | |
<androidx.constraintlayout.widget.ConstraintLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
tools:context=".MainActivity"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical"> | |
<LinearLayout | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:gravity="bottom" | |
android:orientation="horizontal"> | |
<Button | |
android:id="@+id/firstButton" | |
style="@style/Widget.AppCompat.Button.Borderless" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
tools:text="@string/nav_first" /> | |
<Button | |
android:id="@+id/prevButton" | |
style="@style/Widget.AppCompat.Button.Borderless" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
tools:text="@string/nav_prev" /> | |
<TextView | |
android:id="@+id/textView" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
android:textStyle="bold" | |
tools:text="@{page}" /> | |
<Button | |
android:id="@+id/nextButton" | |
style="@style/Widget.AppCompat.Button.Borderless" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
tools:text="@string/nav_next" /> | |
<Button | |
android:id="@+id/lastButton" | |
style="@style/Widget.AppCompat.Button.Borderless" | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" | |
android:layout_weight="1" | |
tools:text="@string/nav_last" /> | |
</LinearLayout> | |
</LinearLayout> | |
</androidx.constraintlayout.widget.ConstraintLayout> | |
</layout> |
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
<resources> | |
<string name="app_name">Exhibitor Rērum</string> | |
<string name="nav_first">First</string> | |
<string name="nav_prev">Previous</string> | |
<string name="nav_next">Next</string> | |
<string name="nav_last">Last</string> | |
</resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment