Trying to use the GridView view no real success

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Trying to use the GridView view no real success

Postby Killswitch » Tue Dec 18, 2007 12:27 am

trying to build a GridView

how can i control the look so it looks like a grid with border

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <?xml version="1.0" encoding="utf-8"?>
  2.  
  3.  
  4.  
  5. <GridView xmlns:android="http://schemas.android.com/apk/res/android"
  6.  
  7. ????
  8.  
  9. </GridView>
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


im fairly used to the relativelayout and tablelayout but trying to get this grid is weird im trying to show the borders of the grid... trying to make a crossword type app
Killswitch
Freshman
Freshman
 
Posts: 5
Joined: Fri Nov 23, 2007 11:27 am

Top

Postby plusminus » Tue Dec 18, 2007 12:49 am

Hello Killswitch,

I think(!) that i've read somewhere that there is no attribute like 'android:drawGridLines="true"'.
But you could do like the following:
  • Set the BackGround of the GridView to Black.
  • Set 1-2 pixels to 'android:horizontalSpacing' and 'android:verticalSpacing'.
  • Set The BackGroud of the View-Elements to White.

This will result in a kind of GridLines.

Let us know if it helped you.

Regards,
plusminus

PS: If you finished your CrossWords-App feel free to Promote it here on anddev.org.
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Postby Killswitch » Tue Dec 18, 2007 6:43 am

well i decided to opt for maybe for a nice field of buttons lol

just need to tie them to a db

cheers
Attachments
Picture0001.png
Picture0001.png (59.34 KiB) Viewed 1744 times
Killswitch
Freshman
Freshman
 
Posts: 5
Joined: Fri Nov 23, 2007 11:27 am

1 more thing

Postby Killswitch » Tue Dec 18, 2007 6:45 am

this droiddraw is great for drawing your gui in xml

i didnt write the code but heres their website

http://www.droiddraw.org/
Killswitch
Freshman
Freshman
 
Posts: 5
Joined: Fri Nov 23, 2007 11:27 am

Postby plusminus » Tue Dec 18, 2007 8:48 am

Hello killswitch,

DroidDraw is also embedded in the Board.

Regards,
plusminus
Image
Image | Android Development Community / Tutorials
User avatar
plusminus
Site Admin
Site Admin
 
Posts: 2688
Joined: Wed Nov 14, 2007 8:37 pm
Location: Schriesheim, Germany

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: No registered users and 5 guests