I have a custom-made view that extends the View class. I would like 2 instances of my custom view layered directly on top of each other. How should my layout file look to achieve this?
Renders can be separated into layers, to composite them back together afterwards. Some example usages are applying compositing effects to characters separately, blurring the background and foreground layers separately for depth of field, or rendering different lighting variations of the same scene.
Hosted feature layer views are ideal for helping you control access to the same hosted feature data; you can allow editing access to only those users who need it. You can make your hosted feature layer editable and share it with only those groups whose members need to edit the data.
Open Content > My Content, click New item, and click Your device. Find the file on your device. Select the file and click Open. Choose Add <file name> and create a hosted feature layer or table.
Turns out FrameLayout was what I wanted. Just do this in your layout:
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<com.proj.MyView
android:id="@+id/board1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<com.proj.MyView
android:id="@+id/board2"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</FrameLayout>
Use a RelativeLayout
. Later children of the RelativeLayout
will overlap earlier children.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With