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?


Source: android

Leave a Reply