I have developed an activity using the following layout:
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2007 The Android Open Source Project Licensed
under
the
Apache License, Version 2.0 (the "License"); you may not use
this
file
except in compliance with the License. You may obtain a copy of
the
License at http://www.apache.org/licenses/LICENSE-2.0 Unless
required
by applicable law or agreed to in writing, software distributed
under
the License is distributed on an "AS IS" BASIS, WITHOUT
WARRANTIES
OR
CONDITIONS OF ANY KIND, either express or implied. See the
License
for
the specific language governing permissions and limitations
under
the
License.
<TextView android:id="@+id/titlebar2"
android:layout_width="320px"
android:layout_height="40px"
android:background="@drawable/banner2"
android:adjustViewBounds="true"
android:gravity="center_vertical"
android:paddingLeft="20dip"
android:textAppearance="?android:attr/
textAppearanceMedium"
40px
/>
-->
<TableLayout xmlns:android="http://schemas.android.com/apk/res/
android"
android:orientation="vertical" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="@drawable/
splash">
<TableRow android:paddingTop="0px">
<ImageView android:id="@+id/titlebar"
android:layout_width="320px"
android:layout_height="40px"
android:src="@drawable/banner"
android:adjustViewBounds="true"
/>
</TableRow>
<TableRow android:paddingTop="0px">
<ListView android:id="@+id/subuilist"
android:layout_height="356px"
android:layout_width="320px"
/>
</TableRow>
<TableRow android:paddingBottom="0px">
<ImageButton android:id="@+id/basebar2" android:src="@drawable/
basebar"
android:layout_width="320px"
android:layout_height="40px"
android:adjustViewBounds="true"
/>
</TableRow>
</TableLayout>
Clearly This will have a title bar, a bottom bar and a scrolling list
in between. The Top bar is image and the bottom bar is an ad bar
ImageButton clicking on which a browser will launch using a predefined
URL.
Now when I scroll the list, the list goes black. It is visible with
the image background and the items on clicking on it.
Please help me find a solution.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---