Top "Viewgroup" questions

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

Difference between View and ViewGroup in Android

What is the difference between a View and a ViewGroup in Android programming?

android view viewgroup
Fixed aspect ratio View

How would I go implementing a fixed aspect ratio View? I'd like to have items with 1:1 aspect ratio in a …

android view aspect-ratio viewgroup
Preventing/catching "IllegalArgumentException: parameter must be a descendant of this view" error

I have a ListView with some focusable components inside (mostly EditTexts). Yeah, I know this isn't exactly recommended, but in …

android viewgroup illegalargumentexception viewroot
How to use addView to add view to layout?

I have read probably all posts and documentation but I still can't solve this issue. I want to use addView() …

android layout view viewgroup adview
Android: get Viewgroup from the view?

Is there any way to get the ViewGroup from a view? I'm trying to create a custom array adapter and …

android view viewgroup
Fullscreen in WindowManager

This is my code: params = new WindowManager.LayoutParams( WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.TYPE_SYSTEM_…

android android-activity viewgroup android-windowmanager
Android Custom Layout - onDraw() never gets called

public class MainActivity extends Activity { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TableView tv = new TableView(this); tv.…

android layout view viewgroup
Why go for Constraints layout as we already have Relative Layout?

Why RelativeLayout replaced to ConstraintLayout in the default layout file of an android empty activity. I need to know why …

android android-layout viewgroup android-constraintlayout
How does one Animate Layout properties of ViewGroups?

I have the following layout: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/…

android animation viewgroup android-3.1-honeycomb
Programmatically add fragments to viewgroup

basically this is my app(idea) for a tablet landscape orientation: Two Fragments, left fragment is a listfragment populated by …

android android-fragments viewgroup