Search Results

Search found 6 results on 1 pages for 'nourdine'.

Page 1/1 | 1 

  • height worked out dynamically at rendering time

    - by nourdine
    hello I have to make a simple layout in android but have problem with the heigh of the central element. basically I have a header, a body and a footer. header and footer have fixed height but I'd like the body to fill the remaining space. this should be screen size independent so I'd like the height of the body to be dynamically worked out when the layout is being rendered. do you guyz know how I can achieve the result? thanks

    Read the article

  • adding the style attribute via code

    - by nourdine
    hello I was wondering how to assign a style via code in adroid. suppose I have a TextView created with the following snippet: TextView myText = new TextView(this); how do I assign the class xxx so that myText will be styled like an hard coded TextView like this: <TextView style="@style/xxx" /> thanks

    Read the article

  • measuring a view before rendering it

    - by nourdine
    hello I need to find out how big a view will be after attaching it to its parent. I have overridden this method: onMeasure(int, int); but it looks like this method is invoked only when I actually add my custom view to it's container using: addView(myView); Do you think there is a way to get this information before rendering the view itself? Basically I need to know the actuall size before attaching it and not attach the view at all if it would take more certain amount of space. anybody?

    Read the article

  • floating image wrapped by text in android

    - by nourdine
    hello I think the title says it all. I need to accomplish this result in android but it looks like there is no easy fix to my problem. Just to clarify a bit more: if I had to do it in html css I would write something like <img src="Image URL" style="float:left; margin-right: 5px;" /> got it? ;) thanks guyz

    Read the article

  • change background of an ImageView (the old image stays there!)

    - by nourdine
    how can I change the background of an ImageView from java? I have an ImageView and at a certain point I need to change the image that it displays (set in the styles). I tried to do it like this: placeHolder.setImageDrawable(myDrawb); but it looks like the old image remains there and it is partially covered but the new one (which in my case has different shape). hope you guys can help! cheers

    Read the article

  • List of images that wraps

    - by nourdine
    I have a LinearLayout with fixed view. I dynamically inject images in it (ImageViews) but I dunno in advance how many of them will be inserted. I'd like to have a layout where images wrap and go to a new line authomatically when they exceed the available width of the father (LinearLayout) how do you recommend I should move? thanks a lot

    Read the article

1