Ticker

6/recent/ticker-posts

Exercise of SurfaceView: SurfaceView overlap with a LinearLayout

Further work on the previous exercise "Another exercise of SurfaceView, in a FrameLaout inside another LinearLayout"; the FrameLayout composed of a SurfaceView overlap with another LinearLayout with a Spinner used to select the color of the bouncing dot in the SurfaceView.



main.xml show the details in the layout structure.


android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:id="@+id/showhide"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Toggle The Another Button Show/Hide" />
android:id="@+id/dummy"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="a Button" />
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:id="@+id/myCustomSurface"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
android:orientation="vertical"
android:gravity="bottom"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
android:id="@+id/spinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>





Download the files.








It's a bug here!


Pls. refer to the article
"IllegalThreadStateException in LunarLander"
for details.


I'm Sorry about that! ()



إرسال تعليق

0 تعليقات