Questions tagged [viewgroup]

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

ViewGroup is the base class for all Android layouts and views containers. This class is designed to be extended so the user can implement his own layout(which arranges the children following the desired logic, one not covered by the standards layouts) or a new view container. More information about the ViewGroup class can be found at the links below:

503 questions
-1
votes
1 answer

ViewGroup read all textview

If I use ViewGroup, Is have any method can read all TextView? ViewGroup viewGroup=(ViewGroup)view.getParent(); int childCount = viewGroup.getChildCount(); for (int i = 0; i < childCount; i++) { TextView…
-1
votes
2 answers

Android Fragment container argument in onCreateView

I wonder where container argument in onCreateView() method of Flagment come from , is that a ViewGroup of the activity which has this fragment or something else ? I wonder it cause i don't know what ViewGroup that xml of fragment attract to in this…
Tú Anh Dư
  • 135
  • 1
  • 10
-1
votes
1 answer

Position a particular view

I am using a frameLayout and adding that to a viewgroup that already consists of a list view. Now the problem that arise is that the frameview is settled a bottom. I want it to come down at the bottom. Here is my code: public void…
Rahul Verma
  • 25
  • 1
  • 8
-1
votes
1 answer

Can't update my view method in android app

I am making an app in which I need to update multiple textviews at once. For example: //Just an example int int number = 0; public void updateViews(View view){ TextView textview = (TextView) findViewById(R.id.my_textview); …
SG123
  • 32
  • 3
-1
votes
2 answers

ViewGroup.addView does not display anything on the screen

I am developing for Android and I ran into a problem. When I use addView method of ViewGroup to add a ViewGroup object, it does not display anything on the screen. Can anyone help me? RelativeLayout fullLayout=new RelativeLayout(this);…
-2
votes
1 answer

How to get position of dynamically created view inside linear layout on click

I created a linear layout and adding dynamic views inside it, i want to get position of dynamic view inside linear layout when clicked, how can i do this Thanks in advance!
blackHawk
  • 6,047
  • 13
  • 57
  • 100
-3
votes
1 answer

i would like to add ads in my pragmatically create layout

i would like to add ads in my pragmatically create layout. below my code here i am use you-tube api but YouTube video open in full screen i want to customize to it i want add advertisement at below side pls help me and thanks in advance.see…
-4
votes
3 answers

i wanted to start a new activity after pressing the three buttons ...please let me know how can i achieve this?

Hi i am creating a simple educational game in which user has to press three images in order to proceed to the next level and in next level user has to press 5 images. i have gone through the on click but i using onIntent intent = new…
1 2 3
33
34