Questions tagged [xml-layout]

Android uses xml files to layout its components on a window.

Android uses xml files to layout its components on a window.

187 questions
0
votes
0 answers

Aligning to bottom in TableLayout stretches row

I want to achieve that kind of layout in Android (which I almost did): Here is the xml I've produced:
lukaleli
  • 3,427
  • 3
  • 22
  • 32
0
votes
3 answers

My code works on small devices but its not working on large screen devices above 5' inch

My code works on small devices but it doesn't work on large screen devices above 5 inches. The layout folders structure is the…
AndroidDevM10
  • 141
  • 2
  • 12
0
votes
1 answer

2nd child linear layout will not appear

I'm trying to setup two linear layouts - one set horizontally the other set vertically - however for some reason nothing in my 2nd child linear layout will appear when I load it. It just disappears for some strange reason. XML
user3063132
  • 133
  • 2
  • 14
0
votes
2 answers

android:layout_width="fill_parent" on YouTubeThumbnailView does not fill parent

I'm not sure exactly why but I'm attempting to set the size of my thumbnails to fill parent however it does not appear they are doing so and I'm unsure why. I've set the parameters as (I believe) they should be but the thumbnail still will not…
JavaNoob
  • 75
  • 4
  • 15
0
votes
1 answer

Vertical linear layout doesn't show up, but horizontal does in java xml file

I've just started Java programming in school, and my first assignment is to recreate an app I was working on using an xml layout instead of programmatically creating the elements. I have two separate linear layouts I want to appear, one is…
DaveyDaVinci
  • 37
  • 1
  • 6
0
votes
1 answer

View doesn't match it's parent

I am really struggling with my xml layout, even though I have over a year of experience working on android :). Anyway I need to create an xml layout as following: I tried with this:
prowebphoneapp
  • 87
  • 1
  • 11
0
votes
1 answer

Android - Adding custom surfaceView to xml defined surfaceView not working

I am trying to add a custom surfaceView class to a surfaceView that has been declared in a xml layout. The problem is that I cannot get the custom class add the the xml defined surfaceView. Some how it just does not start. This is my…
DijkeMark
  • 1,284
  • 5
  • 19
  • 41
0
votes
1 answer

Looping/Repeating scrollable layout

So I have a layout thats fairly complex and has some layout nesting . The layout holds 8 items, but if my api response returns say 32 items id like to loop the same xml layout over and over and make it scrollable. Would this be possible? I…
ChuckKelly
  • 1,742
  • 5
  • 25
  • 54
0
votes
1 answer

How can I stop my Ads being repeated per list item in my Android listview

I have a list which displays information taken form my SQLite Database, everything works fine. I want to place an advert banner at the top of the List and have it in the XML layout as I do with my other activity's but the adverts are treated like…
deucalion0
  • 2,422
  • 9
  • 55
  • 99
0
votes
1 answer

Music Player library ListView populating issue

I have a music player app that should open and show a list of tracks on your phone/sdcard but when I launch the application it shows me nothing.. I followed a tutorial so im not completely clear on what everything is supposed to do. Especially with…
Timmo
  • 2,266
  • 4
  • 34
  • 54
0
votes
1 answer

Android ImageView is not bring to front

android ImageView is not bringing to front in RelativeLayout Tried to call bringtofront() didn't work tried setting visibility to true didn't work XML CODE