you could use a ScrollView
, containing a LinearLayout
containing itself 500 times a simple <View>
that has a size and a drawable stroke
as background
something like
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="bottom"
>
<View
android:layout_width="50dp"
android:layout_height="100dp"
android:background="@drawable/border_white"
/>
<View
android:layout_width="50dp"
android:layout_height="50dp"
android:background="@drawable/border_white"
/>
and in res/drawable, a file named border_white
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<stroke android:width="2dip" android:color="@android:color/white" />
</shape>
but it'll be pretty slow I tell you (like on Windows, probably).