Turritopsis
Turritopsis

Reputation: 21

Android - Is it possible to make the start position of the scroll bar inside the padding top of the gridview?

I have a Gridview with padding top and and an image (with height equal to the padding) in the top. The image overlap Gridview. It looks something like this:

 ----------------
|               .|
|     IMAGE     .|
|               .|
---------------- |
|  ITEM  ITEM    |
|--------------- |
|  ITEM  ITEM    |
|--------------- |
|  ITEM  ITEM    |
|--------------- |
|  ITEM  ITEM    |
 ----------------

I have a problem with scroll bar position when scrolling gridview. The scroll bar is start at the top right, bellow the image.

What should I do for the scroll bar to be like this:

 ----------------
|                |
|     IMAGE      |
|                |
----------------.|
|  ITEM  ITEM   .|
|---------------.|
|  ITEM  ITEM    |
|--------------- |
|  ITEM  ITEM    |
|--------------- |
|  ITEM  ITEM    |
 ----------------

Is it possible to make the start position of the scroll bar like that?

Upvotes: 2

Views: 140

Answers (1)

Hasmukh Barochiya
Hasmukh Barochiya

Reputation: 250

Don't put image in scroll bar.

Use Gridview Below imageView.

It will works.

Upvotes: 2

Related Questions