Summary: We would like to know some numbers on benchmarking `YogaLayout` against other layouts, particularly `LinearLayout`. This implements a `BenchmarkActivity` to fill that need. Reviewed By: emilsjolander Differential Revision: D4565531 fbshipit-source-id: fe1c558beb603c3116ac3d0dd6654b0376dd6b8a
207 lines
8.5 KiB
XML
207 lines
8.5 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<YogaLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:yoga="http://schemas.android.com/apk/res-auto"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_alignItems="center"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_justifyContent="center"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_blue"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="column"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_blue"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="column"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_blue"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_blue"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="column"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_blue"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:background="@color/yoga_grey"
|
|
yoga:yg_marginLeft="10dp"
|
|
/>
|
|
<VirtualYogaLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
yoga:yg_flexDirection="row"
|
|
yoga:yg_flex="1"
|
|
>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</VirtualYogaLayout>
|
|
</YogaLayout>
|