I found out. There is a little word called "weight". It solved the
problem. :)

/CoRex

On Jan 29, 5:52 pm, KitzyKitt <kitzyk...@gmail.com> wrote:
> Are your GridView and Spinner element all withiin the same element,
> such as a LinearLayout?
>
> If so, try posting your layout file here.
>
> -Kitzy
>
> On Jan 27, 4:45 am, CoRex <mrco...@gmail.com> wrote:
>
> >   Hi all.
>
> > I am new to android-development so please be patient with me. :)
>
> > I am trying to understand the views and the layout-files. I have written
> > some code and now it is about experience and understanding (i think).
>
> > I am trying to set up a GridView and to make a special adapter for it.
> > In that I have succedded. In every cell in the grid, I have a
> > LinearLayout with an ImageView and a TextView added to it. It works.
>
> > My problem is that the height of the GridView is to high. It grows up to
> > the end of the screen. But I have a Spinner right under it and this
> > disappears. My thought was then - how can I set a max-height on the
> > GridView.
>
> > Am I going the right way? I am still confused about the various
> > view-types and how they react to each other.
>
> > Best regards,
>
> > CoRex
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to