A ViewGroup is a special view that can contain other views, called children. The view group is the base class for layouts and views containers
Questions tagged [android-viewgroup]
223 questions
0
votes
2 answers
Linear positioning in Framelayout
Using FrameLayout, how can I position child elements vertically to begin with? I am choosing Framelayout because, eventually, I want to move one child over another, but am unable to position them linearly to begin with.
Begin
End

stackoverflowN
- 447
- 6
- 21
0
votes
1 answer
Pass a android ViewGroup through aidl
Is there a way that i can "convert" a Viewgroup created programatically to parcelable and then send this ViewGroup through and aidl?
I know that may not be a good design or performance, but is there a way how i can do that?
Thats how my ViewGroup is…

WitaloBenicio
- 3,395
- 5
- 25
- 32
0
votes
1 answer
How to interrupt parent touch event
I am writing an custom ViewGroup and following neevek to get touch interruption between parent and Child(ListView). Here Custom ViewGroup help to uplift ListView.
What I need: So once ListView uplift at top, I want to start scroll it for which I…

CoDe
- 11,056
- 14
- 90
- 197
0
votes
1 answer
extended View Group forces the child dimensions
I wrote the following ViewGroup
public class myViewGroup extends ViewGroup{
List qResult;
List qLoc;
ImageView qImage;
public QueryViewLayout(Context context){
super(context);
}
public QueryViewLayout(Context context,…

stopBugs
- 351
- 3
- 10
0
votes
3 answers
Adding view programmatically doesn't work
I have a parent custom layout (child of LinearLayout) that I inflate programmatically.
In the constructor I add another layout to be a child of my parent layout like this:
public ExtendedContentLinearLayout(Context context) {
super(context);
…

Bended
- 494
- 1
- 7
- 22
0
votes
1 answer
Android adapter getView better decoupling with a viewGroup
I'd like to create less work for the getView method of an android list Adapter. I have been reading that we can let a ViewGroup update the view instead of the getView method and thus make scrolling faster. I need some help understanding this…

j2emanue
- 60,549
- 65
- 286
- 456
0
votes
1 answer
How to Bring my Navigation Drawer to Front?
I am using this circular menu for my App.
https://github.com/oguzbilgener/CircularFloatingActionMenu
It is working. But when i open my Navigation Drawer. This Menu is in the front. How can i make the Menu to go Back to the Navigation Drawer.
How…

Arulnadhan
- 923
- 4
- 17
- 46
0
votes
1 answer
How to create reusable viewgroups in XML?
I often use the same LinearLayout with the same properties.
For instance:
... other views &…

Flashbump
- 221
- 3
- 9
0
votes
1 answer
Custom child RelativeLayout to add into ScrollView in Activity
Using RelativeLayout I am trying to create a custom ViewGroup which will be added inside the ScrollView in the Activity. I have created following class to create ViewGroup.
public class MessageView extends RelativeLayout implements MessageType {
…

saikat
- 145
- 1
- 14
0
votes
1 answer
Android: Can we even "design" our own widgets and layouts?
I read this here:
Android provides a number of ready-made views that you can use to
design and organize your layout. "Widgets" are views that provide a
visual (and interactive) elements for the screen, such as a button,
text field, checkbox,…

Solace
- 8,612
- 22
- 95
- 183
0
votes
1 answer
ViewGroup - Add XML content into different container within inflated ViewGroup
Is it possible to inflate a LinearLayout from XML that contains some static objects and another LinearLayout and later when "XML" code is used inside the LinearLayout it's content is being added inside the inner LinearLayout.
Explanation with some…

Deukalion
- 2,516
- 9
- 32
- 50
0
votes
1 answer
Why onMeasure called many time with different mode?
I am creating the custom viewgroup. While executing the code, the onMeasure function of custom viewgroup is called multiple time. And the measure mode also changed while onMeasure call.
For example,(my understanding)
If 'match_parent' is set in…

Jayaprakash Marshal
- 230
- 3
- 18
0
votes
2 answers
Which is better either Viewgroup or Layout
Am creating a grid in android Now am struck with either to use ViewGroup or Layouts (Frame layout /Linear layout) for creating a container in which the cells will be loaded and it would be helpful if provided with links for detailed learning…

Dilmah
- 1,137
- 11
- 14
0
votes
1 answer
Xamarin Android TextView returning null
Despite much searching i can't find the answer to what is probably a very simple problem.
I have a method that creates a pop up window. I then need to access the TextViews of the pop up window's XML and change the text. The problem is my textView…

Can'tCodeWon'tCode
- 543
- 1
- 11
- 36
0
votes
1 answer
Android - Extending ViewGroup than Adding Fragment is showing up Blank
I am extending a Fragment called Scanlist. It is laid out properly and looks how I want it. Problem is I am unable to Override onInterceptTouchEvent on the extended Fragment. So I thought of extending ViewGroup, Override onInterceptTouchEvent and…

K3NN3TH
- 1,458
- 2
- 19
- 31