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.setScaleX() cause the view to be clipped

I use NineOldAndroids library to scale my custom layout. public class MyLayout extends FrameLayout { // LayoutParams.MATCH_PARENT and all. ... @Override …

java android zooming scale viewgroup
Android button on top of Camera preview

I would like to add button on Android CameraPreview. Basically the hierarchy is following: Activity ViewGroup SurfaceView ViewGroup is wrapper …

android android-layout surfaceview viewgroup
Android -- Hiding Views

Okay, so I've done some looking around and I see how you are SUPPOSED to do it, but for me, …

android transparency android-relativelayout viewgroup
Set GestureDetector to all child views

I would like to add a GestureDetector to all views (view groups) of an activity without assigning it manually to …

android viewgroup gesturedetector onfling
Views inside a custom ViewGroup not rendering after a size change

I'm running into a problem that has me stumped and I was hoping someone could give me some pointers. I'm …

android resize rendering custom-view viewgroup
how to add a pin marker on image view in android

i am working on a project where i need to add pins on image view as shown in below image. …

java android android-imageview android-view viewgroup
How to handle click in the child Views, and touch in the parent ViewGroups?

In my layout I have a structure like that: --RelativeLayout | --FrameLayout | --Button, EditText... I want to handle touch events in …

android ontouchlistener viewgroup
How to remove View in Android?

I have two Buttons which is in main layout. If Add Button is clicked it has to add EditText dynamically(…

android android-view layout-inflater viewgroup android-inflate
Tutorial on creating custom layouts for Android?

I'm at my wits end trying to figure this out and hope there is someone out there who has a …

android layout viewgroup
Adding Views to an Android Viewgroup Programmatically

This seems to be a common question yet documentation is very hard to find. I'm looking for examples that show …

android views viewgroup