I am making a service much like the softkeyboard sample - the service
UI should be presented in one half of the screen, while the other half
is used by the application, which requests the service (like the soft
keyboard).
The UI is a view derived from SurfaceView and the content is
dynamically rendered - mostly using canvas.drawBitmap.
My problem is, my SurfaceView covers the whole screen. I'm only
drawing in one half of the screen, but rest of the screen is black,
because the size of the surfaceView is the screen dimensions. My
layout file is copied from the softKeyboard sample with few
corrections:
<?xml version="1.0" encoding="utf-8"?>
<com.example.android.softkeyboard.GameView
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/keyboard"
android:layout_alignParentBottom="true"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
How do I control the size of the surfaceview ?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en