user interface - How do I give a gridLayout the ability to scroll vertically and horizontally at the start of the application in android? -


so imagine view 9 tiles looks this:

(tile1) (tile2) (tile3)

(tile4) (tile5) (tile6)

(tile7) (tile8) (tile9)

one tile takes of screen. have set horizontalscrollgroup nested inside scrollgroup enable both horizontal , vertical scrolling problem view starts off tile1 in center of screen. want view start off tile 5 in center , give user ability scroll up, down, left, right, , diagonally. how can implement this? guess main issue centering view on tile5. way implement both horizontal , vertical scrolling or there more proper way of doing this?

sorry i'm beginner mobile ui programming.

try :

 <scrollview         android:layout_width="match_parent"         android:layout_height="wrap_content">         <horizontalscrollview             android:layout_width="wrap_content"             android:layout_height="match_parent">               </horizontalscrollview>     </scrollview> 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -