Questions tagged [rootview]

In view based mobile application(iOS/Android) rootview provides interface between window and otherview.

148 questions
1
vote
1 answer

iOS switch rootViewController not working

I have a login view that checks to see if there are default settings, then syncs data. If there are no default settings, the view waits for the user to login. if there are settings and the data syncs correctly, it should switch to my split view. The…
Tyler Kiser
  • 921
  • 8
  • 14
1
vote
2 answers

How to remove View from Activity RootView

I'm trying to remove an inflated view. This is how I inflate the view: ViewGroup vg = (ViewGroup)findViewById(android.R.id.content).getRootView(); mOverflowMenuView = View.inflate(this, R.layout.overflow_menu, vg); And this is how I try to…
Henrik
  • 1,983
  • 3
  • 28
  • 52
1
vote
2 answers

android screen capture without layout root view

Actually in android mobiles when we press the home button and the side button at a time we can make a screenshot. which event is running at the time of pressing? In the camera event we fire android.provider.MediaStore.ACTION_IMAGE_CAPTURE.
kranti
  • 93
  • 2
  • 9
1
vote
3 answers

how can i change programmatically the rootViewController using Storyboards?

I'm using storyBoards in xcode and I am making an alertView which will act as a Disclaimer. When the selected button is pressed (yes/no) I want to switch and save the rootViewController. By this I mean that when yes is pressed i want the next time…
snksnk
  • 1,566
  • 4
  • 21
  • 46
0
votes
2 answers

iPhone objective c how to choose which view controller to load at app start

I know there are quite a few threads about that topic, and I tried every single option. But nothing works. So, here what I have, a loginviewcontroller and a tabbarviewcontroller. If the device is already registered, the tabbar should appear, if not…
0
votes
2 answers

reinitialize root view in iOS

One would think I can easily find an answer to this question, and perhaps I missed it, but here goes. My app contains a few views of which the main view displays a bunch of information it progressively collects from a user, the mic and and the…
Rasman
  • 5,349
  • 1
  • 25
  • 38
0
votes
1 answer

Objective-C : Change splitView orientation

I currently have an authentication view controller defined as the rootViewController when the app starts. When the user is authenticated, the authentication view controller changes the rootViewController of the main windows to a split view…
Titouan de Bailleul
  • 12,920
  • 11
  • 66
  • 121
0
votes
1 answer

iOS 5 Upgrade Needing rootViewController

The App I created for iOS 4 does not work once run on iOS 5. I am receiving the following error: "Applications are expected to have a root view controller at the end of application launch" How can I update the following code to fix this error? -…
JulianF
  • 59
  • 2
  • 8
0
votes
0 answers

Add View to android rootView application without permission

I want to add an overlay to the application rootView or BaseActivity without permission. And it should be displayed on top of BottomSheetDialog or on top of Copy Cut Paste ContextMenu in EditText I have tried multiple ways but didn't successed. …
Taimoor Khan
  • 541
  • 4
  • 20
0
votes
0 answers

React native app always crashes when first opened, work every time after that

I get this crash log in console. I thought it was just a weird dev bug. I would try to launch the app, it would give this error, then I would launch again and it would load fine. I am using Expo and the app has the same crash behavior in…
0
votes
2 answers

Create different RootViewController instances depending on the target

I want to instance the RootViewController with different objects depending on the target I'm the running. For example, I have 3 RootViewControllers (RVCBase, RVCA, RCB) and 4 targets (T1, T2, T3, T4). I want that whenever T1 is running, RVCA shows…
mikywan
  • 1,495
  • 1
  • 19
  • 38
0
votes
2 answers

having problem in a fragment view (View Root) in android studio

''' public class HomeFragment extends Fragment { public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View root …
jj840
  • 1
0
votes
1 answer

how do i find the root view in my android studio project?

i'm using a template for a navigation menu provided by android studio and i noticed the main activity sets the content view to a root view but I'm not sure which XML file that would be? I'm assuming it might be the XML view that first loads when i…
0
votes
1 answer

How can i anchor a Snackbar to the android soft navigation bar?

Thank you in advance! I decided to implement a Snackbar with this method (which will later be called in onClick method): public void showSnackbar(int selector, int textSelector){ String sOne = (String)…
Dorian Feyerer
  • 258
  • 5
  • 14
0
votes
1 answer

Xcode 4 won't show app's main screen

After switching to Xcode 4, I thought I would be able to build and run my application exactly like I could in Xcode 3. Turns out I can't. Xcode 4 has a funny way of never showing the app's view controller, which is strange. I can tell Apple's going…
Jack Greenhill
  • 10,240
  • 12
  • 38
  • 70