Skip to content

Instantly share code, notes, and snippets.

@lukelorusso
Last active July 25, 2020 16:31
Show Gist options
  • Save lukelorusso/d2c0cd1d8e6bd090713a005746cb6edf to your computer and use it in GitHub Desktop.
Save lukelorusso/d2c0cd1d8e6bd090713a005746cb6edf to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<androidx.core.widget.NestedScrollView 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"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity"><!-- vertical scrolling purpose -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:text="@string/base10"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/base10RecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:itemCount="10"
tools:listitem="@layout/item_base10" />
<Space
android:layout_width="wrap_content"
android:layout_height="50dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:text="@string/binary"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/binaryRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:itemCount="10"
tools:listitem="@layout/item_binary" />
<Space
android:layout_width="wrap_content"
android:layout_height="50dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="15dp"
android:text="@string/hexadecimal"
android:textStyle="bold" />
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/hexadecimalRecyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:itemCount="10"
tools:listitem="@layout/item_hexadecimal" />
<Space
android:layout_width="wrap_content"
android:layout_height="50dp" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment