Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/darker_gray"
android:orientation="horizontal"
tools:context=".UglyLayoutActivity">
<ScrollView android:layout_width="match_parent"
android:layout_weight="1"
android:background="@android:color/darker_gray"
android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent"
android:orientation="vertical"
android:background="@android:color/darker_gray"
android:padding="16dp"
android:layout_height="match_parent">
<TextView android:layout_width="match_parent"
android:text="One"
android:gravity="center"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:gravity="center"
android:text="Two"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:gravity="center"
android:text="Three"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:gravity="center"
android:text="Four"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:gravity="center"
android:text="Five"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:text="Six"
android:gravity="center"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:text="Seven"
android:gravity="center"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:text="Eight"
android:gravity="center"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:text="Nine"
android:gravity="center"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp"/>
<TextView android:layout_width="match_parent"
android:text="Ten"
android:layout_marginTop="10dp"
android:background="@android:color/white"
android:alpha="0.8"
android:gravity="center"
android:layout_height="60dp"/>
</LinearLayout>
</ScrollView>
<ScrollView android:layout_width="match_parent"
android:layout_weight="1"
android:background="@android:color/white"
android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent"
android:orientation="vertical"
android:padding="16dp"
android:background="@android:color/darker_gray"
android:layout_height="match_parent">
<LinearLayout android:layout_width="match_parent"
android:gravity="center_vertical"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center_vertical"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center_vertical"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center_vertical"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
<LinearLayout android:layout_width="match_parent"
android:orientation="horizontal"
android:gravity="center_vertical"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:background="@android:color/white"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
<HorizontalScrollView
android:layout_width="match_parent"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content"
android:orientation="horizontal"
android:background="@android:color/white"
android:gravity="center"
android:alpha="0.8"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
</HorizontalScrollView>
<HorizontalScrollView
android:layout_width="match_parent"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content"
android:orientation="horizontal"
android:background="@android:color/white"
android:gravity="center"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
</HorizontalScrollView>
<HorizontalScrollView
android:layout_width="match_parent"
android:gravity="center"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:alpha="0.8"
android:background="@android:color/white"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
</HorizontalScrollView>
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_marginTop="10dp"
android:alpha="0.8"
android:background="@android:color/white"
android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:alpha="0.8"
android:background="@android:color/white"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
</HorizontalScrollView>
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_gravity="center"
android:alpha="0.8"
android:layout_marginTop="10dp"
android:background="@android:color/white"
android:layout_height="wrap_content">
<LinearLayout android:layout_width="wrap_content"
android:orientation="horizontal"
android:gravity="center"
android:background="@android:color/white"
android:alpha="0.8"
android:layout_height="60dp">
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
<ImageView android:layout_width="wrap_content"
android:src="@drawable/ic_iconfinder_apple"
android:layout_height="wrap_content"/>
</LinearLayout>
</HorizontalScrollView>
</LinearLayout>
</ScrollView>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment