GridView Issue

by Landy » Sat, 03 Jul 2010 15:06:20 GMT


Sponsored Links
 I am trying to show a textview below the gridview but it doesnt seem
to work.
The textview never appears.
Below is the code i am using. Please suggest me how to use a TextView
below the GridView.

<LinearLayout xmlns:android=" http://schemas.android.com/apk/res/ 
android"
android:orientation="vertical"
android:background="@drawable/blue"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

<LinearLayout
android:orientation="vertical"
android:background="@drawable/red"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

<GridView

android:id="@+id/myGrid"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp"
android:verticalSpacing="10dp"

android:horizontalSpacing="10dp"
android:numColumns="auto_fit"
android:columnWidth="60dp"
android:stretchMode="columnWidth"

android:gravity="center"
/>
</LinearLayout>

<TextView
android:background="@drawable/box"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/linear_layout_1_top"/>

</LinearLayout>

Thanks,
Lardy

--



Other Threads

1. general design question

for a particular activity - what is the best way to store data that
needs to be displayed.  the issue is that when the user changes
orientation, you need to be able to re-render your activity -- which
means you need to get back at that data that you use to render.

i understand the MVC design pattern, but I guess I'm wondering where
the M should be stored.

global variables?  static members of your activity?  serialized to
private storage?

tia.

-- 

2. android floating point hardware support

I'm currently developing a application on a HTC Dream aka T-mobile G1.
afaik the processor has a FPU coprocessor, called VFP (Vector Floating
Point) in ARM terms. So far I couldn't find any information about if
the FPU is used for floating point calculations or if those are
emulated in software. does anyone have any information about that?
the opengl implementation supports both fixed point and floating
point. will my applications be slower when I'm using floating point,
because they get transformed into fixed point internally? or is
floating point implemented in hardware?
thanks for any information in advance :D

-- 

3. Problems installing Dev Kit

4. Dragging a particular view in a viewgroup

5. Multiple development environments on a single machine: Problem changing default 8700 port in ADT/DDMS

6. google gdata Calender api problems with android

7. Why on Earth is it so hard to set up the development environment?