Questions tagged [android-layoutparams]

The base LayoutParams class just describes how big the view wants to be for both width and height. For each dimension, it can specify one of:

  • FILL_PARENT (renamed MATCH_PARENT in API Level 8 and higher), which means that the view wants to be as big as its parent (minus padding)
  • WRAP_CONTENT, which means that the view wants to be just big enough to enclose its content (plus padding) an exact number

There are subclasses of LayoutParams for different subclasses of ViewGroup. For example, AbsoluteLayout has its own subclass of LayoutParams which adds an X and Y value.

Useful links

123 questions
-2
votes
1 answer

Android add editText proggramatically onClick

so I know the onClick part is quite useless, but just in case it does change anything, ive put it there. so ive got the onClick, and I would like it to add the editText to the current activity, which is called activity_calculation. I currently have…
-4
votes
1 answer

How to show Toast when I click on the LayoutParams TextView

This is single TextView which is containing values form database. So I want when I click on the TextView, it should show Toast the same text in the position I clicked. The image showing the text view
MaLik Farooq
  • 55
  • 1
  • 7
-4
votes
2 answers

Custom Dialog not showing View

I made a simple project if button click custom dialog appears but when I think something is missing in it? Toast message appears when i click on button but dialog not showing and also no error occurs and app not crash. source code private void…
1 2 3
8
9