android - Where to best use setRequestedOrientation inside a Fragment? -
i want utilize setrequestedorientation( activityinfo.screen_orientation_portrait); within class extends fragmnet, should best used? within oncreateview(), onactivitycreated or oncreate()? , how? because when tried utilize it, eclipse underline reddish squiggle.
i think should precede
setrequestedorientation( activityinfo.screen_orientation_portrait); getactivity() can instance of current activity fragment associated with.
and, think utilize within oncreateview()
android fragment
No comments:
Post a Comment