Questions tagged [childviews]

Child views are the siblings of parent View Controller.Parent View is the container to hold them and can also inherit the properties.

Child views are the siblings of parent View Controller.Parent View is the container to hold them and can also inherit the properties.

58 questions
1
vote
1 answer

Android when looping through LinearLayout child views it always gives me that child views are the same

In my example i'm adding new LinearLayout which containt 3 views (TextView, EditText, Button) by pressing a button. After adding every LinearLayout i want to loop through his child views, find TextView and EditText and give them some stupid…
NoName
  • 273
  • 7
  • 21
1
vote
1 answer

Child views in ionic 3 tabs shows two headers when child component is viewed

i am building ionic 3 app, i have page that have three tabs, the tab contains orders, when an order is clicked, its details page is viewed but here two headers appear, one header of tab view and the other header of order's detail page. i am adding…
Imdad Ali
  • 727
  • 1
  • 8
  • 18
1
vote
1 answer

Angular2 @ViewChildren returns undefined in other components

Angular newbie here. After searching multiple questions I couldn't find a fix to this one: I'm trying to get the child component out of a template. It works as expected on AfterViewInit but when trying to get it from other components it won't work,…
Sorin Grecu
  • 1,036
  • 11
  • 30
1
vote
1 answer

ui-router child view being multiple named views or unnamed views

How to configure in ui-router a parent/children relationship where siblings coexist in parent page? I can't make child state multiple named views working. This is my parent page:parent.html:
I have two child pages: child page1 detail:…
1
vote
1 answer

Change child of iOS Container View from child interaction

I have a Container View that contains a view. I want to change this view to another, calling a method of the parent view when the user interacts with an object of this child view. How can I do this?
alessionossa
  • 923
  • 2
  • 15
  • 41
1
vote
0 answers

Android ScrollView that automatically implements linearlayout

ScrollViews can only take one child element, and this feels like an oversight to me. Looking at the way I implement layouts I see myself typically making a ScrollView with a LinearLayout child. I can see other people using a different child view…
CQM
  • 42,592
  • 75
  • 224
  • 366
1
vote
1 answer

Android Listview with different child views

In my application i need to show a list of objects. In the first row of listview contains single object, but the second row should contain two objects from list. A sample image for my requirement is attached here please go through this. if any idea…
1
vote
1 answer

Orientation change colapsing children in ExpandableListView

I have created a ExpandableListView. When I expanded it, its children are showing properly. But when I change the orientation from potrait to lanscape or vice-versa the ExpandableListView remains open but its children are not showing. After…
1
vote
1 answer

How do I force Scrollview to start from the top of the child view?

I have a simple ScrollView set up in a landscape layout. When I rotate the device from portrait to landscape mode, the UI screen scrolls down a bit and the topmost portion of the view is no longer visilble. How do I force the view to start at the…
AJW
  • 1,578
  • 3
  • 36
  • 77
1
vote
0 answers

Animate adding child views from addView() method

I'm trying to animate adding child views to a LinearLayout. Just wanted to know if there is a better way to go about this or if this approach have any drawbacks. And if this post helped don't forget to up vote :) Here is what I did: public class…
fahmy
  • 3,543
  • 31
  • 47
1
vote
0 answers

How to prevent the child from affecting parent in expandablelistview android?

Here I have expandablelistview in activity and as child I have dynamic TableView which is added into FrameLayout. When I scroll TableView vertically then it affect its parent scrollview that means whole ExpandableListview scrolled. Now I want that…
Aline
  • 41
  • 4
1
vote
1 answer

Does a CollectionView's childView have to be an ItemView?

I am trying to get a final layout like... Left Column (collectionView) PanelLayout(LayoutView) BannerView (ItemView) ContentView (LayoutView) Section1 (CompositeView) gridRow (ItemView) PanelLayout(LayoutView)…
SegFaultDev
  • 455
  • 1
  • 7
  • 24
1
vote
2 answers

Swift Container control from parent view

I have two views, one is a main view, and another is a container view. What I wish to do is send a variable to the child and for it to execute my function. How do I tell the child view these two things from the parent view? A few problems I have had…
Shinerrs
  • 129
  • 2
  • 13
1
vote
1 answer

Adding a child view to the main view with button inside child view - android

I am trying to add a child view to the main view by pressing a button which is inside the child view but the code doesn't work. Any idea what the problem is. I am beginner in Android This is the main linear layout with the child linear layout in…
user4298456
  • 63
  • 1
  • 6
1
vote
2 answers

Android ExpandableListView using Holder for childViews with SeekBar. childViews are interdepending

I'm trying to realize a layout with an ExpendableListView. There are 4 Group Elements and for each Group 2 Children. The first Group Element does have 0 Children. G G C C G C C G C C Every Group Element has 2 TextViews, 1 ImageView and 1…