Top "Layoutparams" questions

The LayoutParams is a helper class that stores various layout information related to the Android view for which it is used.

What unit of measure does LayoutParams use?

pI am working with a linear layout and want to set the maximum height of the view. Under "normal" circumstances, …

android android-linearlayout layoutparams
changing the position of ImageView dynamically in android

all I need to change the position of a ImageView dynamically and iam using the following code int x=100,y=100; …

android layoutparams
what to import to resolve "LayoutParams cannot be resolved to a variable"?

I am getting error LayoutParams cannot be resolved to a variable on a line of code which is as follows …

android-layout layoutparams resolve
Setting Button's margin programmatically

I am new to android and stuck in a very basic problem.I am working on an application in which …

android imagebutton layoutparams
Setting margin programmatically to CardView

I have a CardView in my XML layout and I need to set margins to it programmatically (This is because …

android android-layout android-cardview layoutparams android-layoutparams
how to use correct dragging of a view on android

it seems that there are a lot of solutions of how to use dragging of views on android . however, they …

android imageview drag android-framelayout layoutparams
TYPE_SYSTEM_OVERLAY in ICS

In Honeycomb I was able to create a system overlay with TYPE_SYSTEM_OVERLAY and receive touches with FLAG_WATCH_…

android android-4.0-ice-cream-sandwich layoutparams android-windowmanager
After changing a property on a LayoutParams object, do I need to call setLayoutParams again?

I have a View (containing an ad) that I need to scale to fit the screen width at a certain …

android layoutparams
Null Pointer Exception when setting LayoutParams

I created button in activity programmaticaly, not in xml file. Then I wanted to set it LayoutParams like in this …

android nullpointerexception imagebutton layoutparams
android : set margin between buttons with LayoutParams

I want to automatically generate buttons vertically with a bottom margin of 20px between buttons. I try to set margin …

android button layoutparams