Top "Android-viewgroup" questions

A ViewGroup is a special view that can contain other views, called children.

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
Extending RelativeLayout, and overriding dispatchDraw() to create a zoomable ViewGroup

I've seen a few people ask how to zoom an entire ViewGroup (such as a RelativeLayout) in one go. At …

android android-layout android-relativelayout android-viewgroup
set Toolbar height programmatically Android

I am trying to set the height of toolbar programmatically by this way: toolbar.setLayoutParams(new Toolbar.LayoutParams(LayoutParams.MATCH_…

android android-layout android-xml android-toolbar android-viewgroup
How to fix 'android.view.ViewGroup.jumpDrawablesToCurrentState(ViewGroup.java:5035)' error in android

I have layout with child (NOT as root) element RelativeLayout and then i create ViewPager and insert it as child …

android android-viewpager android-viewgroup
IllegalArgumentException parameter must be a descendant of this view at ViewGroup.offsetRectBetweenParentAndChild

I got following exception from one of my app user in crash logs. Unable to understand from the log trace. …

android android-viewgroup
parent.getContext within RecyclerView.Adapter's onCreateViewHolder method

I have a custom fragment which is attached to my MainActivity. The layout file of the fragment contains the recyclerview …

android android-fragments android-recyclerview android-viewgroup
Unable to set layout width, height and weight of inflated view in XML in Android

I am developing an Android app. In my app, I need to inflate list of views dynamically. I added them …

android android-layout android-view layout-inflater android-viewgroup