Top "Viewgroup" questions

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

Android ViewGroup crash: Attempt to read from field 'int android.view.View.mViewFlags' on a null object reference

We have found several cases for this kind of crashes reported by backend logging monitoring. It seems the crashes do …

java android viewgroup
Add and remove a TextView dynamically in Android

I have set up a FrameLayout which has a TextView on top of a ListView. Now, in the MainActivity, after …

android arraylist android-framelayout viewgroup
Loop through all subviews of an Android view?

I’m working on a game for Android. To help implement it, my idea is to create a subclass of …

android view viewgroup android-viewgroup
custom ViewGroup example?

I searched here on SO, on Google, on the android docs... But I cannot find a single snippet of code …

android viewgroup
How to bring a view to front without calling bringToFront()?

There is apparently a bug in Android which breaks View.bringToFront. If I have Views arranged in a GridView and …

android layout view z-index viewgroup
Use of dispatchDraw(Canvas canvas)

What is the use of dispatchDraw(Canvas canvas) method in ViewGroup class??

android viewgroup
Getting a reference to the parent ViewGroup

I am creating a scalable shape by adding a shape and handles as separate views to a ViewGroup. Once a …

android shapes viewgroup
Using <include> with <merge> in ConstraintLayout

I am having trouble using tags <include> and <merge> inside a ConstraintLayout. I want to create …

android android-layout viewgroup android-constraintlayout
Android, How to set animation listener for view group?

I have an image view which acts as menu. When user click it a view group (including 5 other image view) …

android animation listener viewgroup
move Android fragment to a different container Can't change container ID of fragment

Here is what I would like my application to do on a tablet. Fragment (0) has some menu that would display …

android android-fragments viewgroup fragmenttransaction