Android GridView full screen -


I have GridView and I have to customize the BaseAdapter Use text in my GridView I have a problem, when I run my app, my 'Gridview' left, right, top and bottom margins. I do not need these margins.

This is my xml source:

  & lt; GridView xmlns: android = "http: // schemas.android.com/apk/res/android" android: id = "@ + id / strada_grid_view" Android: layout_width = "match_parent" Android: layout_height = "match_parent" Android: Background = "# D6d6d6" Android: Gravity = "Center" Android: Horizontal Location = "1 DP" Android: numColumns = "2" Android: verticalSpacing = "1dp" & gt; & Lt; / GridView & gt;   

GridView adapter XML code:

   & Lt; TextView android: id = "@ + id / stradaID" Android: Layout_width = "Wrap_content" Android: Layout_height = "Wrap_content" Android: layout_alignLeft = "@ + id / desc1" Android: layout_alignParentBottom = "true" android: text = "Tekstwu "Android: text collar =" # 000000 "Android: visibility =" gone "/> & Lt; imageView android: id = "@ + id / photo1" Android: layout_width = "wrap_content" Android: layout_height = "wrap_content" Android: layout_alignParentTop = "true" Android: layout_centerHorizontal = "true" Android: layout_marginTop = "38dp" / & gt ; & Lt; / RelativeLayout & gt; & Lt; / RelativeLayout & gt;   

How can I solve my problem?

I have set the project location /res/values/dimens.xml Default margin 0 and this works for me

& lt; Resources & gt;

  & lt; Dimen name = "activity_horizontal_margin" & gt; 0dp & lt; / Dimen & gt; & Lt; Dimen name = "activity_vertical_margin" & gt; 0dp & lt; / Dimen & gt;   

& lt; / Resources & gt;

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -