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
0
votes
0 answers

State persistence between child views and controllers

I have a Java FX application with has a main view (FXML) and its controller. I am trying to simulate a tabpane like child views(FXML) with their own controllers. So far so good, I am able to switch between the child views with the following code…
M. Ko
  • 563
  • 6
  • 31
0
votes
1 answer

Would I use reactnative as a child view in a native ui view?

i just want to use ReactNative as a child view in the native layout, can i do that? ex: as an android app, layout A's content view is a native LinerLayout , and there is two child views in layout A, one is a native header view, and the other , i…
Waizau.Tam
  • 111
  • 1
  • 8
0
votes
1 answer

Render a view with a child view?

I am trying to send an email with a specific "layout" (for header/footer) with a specific template (main view of the email, e.g. 2-column layout etc.). The $mainView html has: content ?> but this is always NULL when it should be the…
dan2k3k4
  • 1,388
  • 2
  • 23
  • 48
0
votes
0 answers

Changing child views dynamically in customview, fails in reverting back to previous child view

In my custom view I use the below simple method to change child views dynamically: private void changeChildView(final View oldView, final View newView) { final int viewIndex = indexOfChild(oldView); removeViewAt(viewIndex); …
abedfar
  • 1,989
  • 24
  • 21
0
votes
1 answer

Add fragment to specific view instance

Given a View instance like: View view = layoutInflater.inflate(R.layout.my_fragment, null); Is it possible to add a fragment to this instance? Something like: MyFragment fragment = new MyFragment(); FragmentTransaction fragmentTransaction =…
Thom Thom Thom
  • 1,279
  • 1
  • 11
  • 21
0
votes
0 answers

Set uibarbuttonitem from child view

I have a parent view controller and a child table view controller each embedded in a navigation view controller. It looks like so: I want to make it so when I click the button Done, the Next button is enabled. I have tried to use [self.view…
suntzu
  • 65
  • 3
  • 13
0
votes
3 answers

Complext "button" (LinearLayout with child views) with background drawable - on children click doesn't reflect the "state_pressed"

I have a LinearLayout that has 2 children: a ImageView aligned left and a TextView aligned right. I've set the background of the LinearLayout to be a @drawable XML resource that has two tags. One of them has android:state_pressed="true".…
Dzhuneyt
  • 8,437
  • 14
  • 64
  • 118
0
votes
1 answer

Is there any way to cover an iOS 7 status bar with a UIView temporarily?

I have a bit of a weird scenario here and have been trying to find some help but the solutions don't really solve my problem rather make it worse. I have a container viewController that has three child controllers views inside a horizontal scroll…
0
votes
3 answers

Getting listView child on itemClicked

listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView parent, View view, int position, long id) { //Get childViews here and set their click listener from…
Zar E Ahmer
  • 33,936
  • 20
  • 234
  • 300
0
votes
1 answer

How to get reference for sibling childviews in a group expandablelistview

I am trying to implement a scenario in which user will selection one option among many in a group. See picture below: In figure above, under group named Sauce, there are 3 options. User needs to check only 1 option among these. e.g. If user…
NightFury
  • 13,436
  • 6
  • 71
  • 120
0
votes
2 answers

iOS - Call delegate method on main view from popover inner (pushed) view?

I need to call a delegate method on my main view controller ('showDetails:') from a popover view's pushed view (embedded in navigation controller). This is all from a storyboard setup. The hierarchy is: Main view -> Popover (menu tableview embedded…
JimmyJammed
  • 9,598
  • 19
  • 79
  • 146
-1
votes
2 answers

expandablelistview childview item onclicklistener

I have expandablelistview, each parent have 1 child layout, when I assign onClickListener to ImageView inside childView, application runs but crashes while the fragment opening where imageView is code: public class FragmentA extends Fragment{ …
1 2 3
4