Top "Viewgroup" questions

ViewGroup is a subclass of the Android View class(parent of all Android graphical widgets) which can contain child views.

Add view to already existing xml viewgroup in code

I would like to be able to add a view to an already existing xml layout in code: LinearLayout ll = (…

android xml layout view viewgroup
Activity.addContentView(View) == ViewGroup.addContentView(View)?

I have a question regarding Android Activitys: An Activity has the Method addContentView(View) while a ViewGroup has a (similar?) …

android view android-activity window viewgroup
My app crashes when using addView()

Im a noob at android. My app keeps crashing whenever I use ViewGroup addView() method but works when I use …

android viewgroup
ConstraintLayout with Barriers; How to constraint to bottom / top of barrier depending on size

I am trying out the new Barrier feature in the 1.1.0-beta1. It works as expected however there is this use-case …

android viewgroup android-constraintlayout
ViewGroup finish inflate event

I have created a custom layout which extends ViewGroup. Everything is working fine and I am getting the layout as …

android android-layout viewgroup
java.lang.IllegalArgumentException: parameter must be a descendant of this view Error

I have a strange Error with a ViewGroup. For my main View I use classes in this links ViewFlow project …

android viewgroup
How do you animate a change in a view's padding?

I want to animate the change in the padding of a view. The resting place of the translation animation is …

android animation view viewgroup
NullPointerException: Attempt to read from field 'int android.view.View.mViewFlags'

My app was working fine, and I then included the support design library in the build.gradle compile 'com.android.…

android nullpointerexception viewgroup
generating a LayoutParams based on the type of parent

I find myself needing to create a View completely in Java without knowing what concrete type the parent is. example: …

android android-layout viewgroup
Android - View.requestLayout doesn't work in OnLayoutChangeListener

I have to use the GridLayout for my application. The problem of GridLayout is the limitation of weight so I …

java android layout viewgroup