UI breaks when changing fragmentsHow to handle screen orientation change when progress dialog and background thread active?How do I disable orientation change on Android?Is quitting an application frowned upon?Error inflating class fragmentfindViewById in FragmentViewPager and fragments — what's the right way to store fragment's state?How to determine when Fragment becomes visible in ViewPagerOnce for all, how to correctly save instance state of Fragments in back stack?Hex transparency in colorsDilemma: when to use Fragments vs Activities:

What is a realistic time needed to get a properly trained army?

How do email clients "send later" without storing a password?

Dehn twist in amalgamated product, preserving a subgroup

Does my opponent need to prove his creature has morph?

What was the motivation for the invention of electric pianos

Sort files in a given folders and provide as a list

A medieval fantasy adventurer lights a torch in a 100% pure oxygen room. What happens?

What does a Light weapon mean mechanically?

Double it your way

What are uses of the byte after BRK instruction on 6502?

Has SHA256 been broken by Treadwell Stanton DuPont?

I asked for a graduate student position from a professor. He replied "welcome". What does that mean?

What does slat and elat (slon, elon) in latitude and longitude values mean?

How do I say "quirky" in German without sounding derogatory?

What jurisdiction do Scottish courts have over the Westminster parliament?

What hard drive connector is this?

Finding the number of digits of a given integer.

Which is the current decimal separator?

Can I toggle Do Not Disturb on/off on my Mac as easily as I can on my iPhone?

Is a suit against a University Dorm for changing policies on a whim likely to succeed (USA)?

What is the purpose of this tool?

Ambiguity in notation resolved by +

Thematic, genred concepts in Ancient Greek?

Why is this weapon searching for a new owner?



UI breaks when changing fragments


How to handle screen orientation change when progress dialog and background thread active?How do I disable orientation change on Android?Is quitting an application frowned upon?Error inflating class fragmentfindViewById in FragmentViewPager and fragments — what's the right way to store fragment's state?How to determine when Fragment becomes visible in ViewPagerOnce for all, how to correctly save instance state of Fragments in back stack?Hex transparency in colorsDilemma: when to use Fragments vs Activities:






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















Hi I am developing an app which works in both orientation.Its working fine,But when I go from fragment A to fragment B in landscape mode fragment B UI breaks.But if are in fragment B and change the orientation it works fine,ie no UI breaking.Why would the UI breaks when it is coming from the previous fragment in landscape mode ?If we are staying in fragment B and change both orientation ,no UI breaks.I don't know what is the issue.I have searched a lot but couldn't find the reason.
this is how it looks in portrait mode:this is how it looks in portrait mode
this how it looks when ui breaks:
enter image description here



this is how it looks when it is fragment B and landscape mode:
enter image description here










share|improve this question


























  • Provide image of UI issue

    – Athira
    Mar 28 at 10:35











  • Are you hardcoding the placement of your images in your layout? Please provide all relevant code.

    – Nikos Hidalgo
    Mar 28 at 10:59











  • @NikosHidalgo i have given android:configChanges="keyboardHidden|orientation|screenSize" in manifest

    – anju jo
    Mar 28 at 11:01











  • Add the code of fragment B here

    – Saeed Entezari
    Mar 28 at 11:52











  • I suppose that UI breaks because of the incorrect timingplacefunction in which you set column's width.

    – Alex Shiganov
    Mar 28 at 14:25

















0















Hi I am developing an app which works in both orientation.Its working fine,But when I go from fragment A to fragment B in landscape mode fragment B UI breaks.But if are in fragment B and change the orientation it works fine,ie no UI breaking.Why would the UI breaks when it is coming from the previous fragment in landscape mode ?If we are staying in fragment B and change both orientation ,no UI breaks.I don't know what is the issue.I have searched a lot but couldn't find the reason.
this is how it looks in portrait mode:this is how it looks in portrait mode
this how it looks when ui breaks:
enter image description here



this is how it looks when it is fragment B and landscape mode:
enter image description here










share|improve this question


























  • Provide image of UI issue

    – Athira
    Mar 28 at 10:35











  • Are you hardcoding the placement of your images in your layout? Please provide all relevant code.

    – Nikos Hidalgo
    Mar 28 at 10:59











  • @NikosHidalgo i have given android:configChanges="keyboardHidden|orientation|screenSize" in manifest

    – anju jo
    Mar 28 at 11:01











  • Add the code of fragment B here

    – Saeed Entezari
    Mar 28 at 11:52











  • I suppose that UI breaks because of the incorrect timingplacefunction in which you set column's width.

    – Alex Shiganov
    Mar 28 at 14:25













0












0








0








Hi I am developing an app which works in both orientation.Its working fine,But when I go from fragment A to fragment B in landscape mode fragment B UI breaks.But if are in fragment B and change the orientation it works fine,ie no UI breaking.Why would the UI breaks when it is coming from the previous fragment in landscape mode ?If we are staying in fragment B and change both orientation ,no UI breaks.I don't know what is the issue.I have searched a lot but couldn't find the reason.
this is how it looks in portrait mode:this is how it looks in portrait mode
this how it looks when ui breaks:
enter image description here



this is how it looks when it is fragment B and landscape mode:
enter image description here










share|improve this question
















Hi I am developing an app which works in both orientation.Its working fine,But when I go from fragment A to fragment B in landscape mode fragment B UI breaks.But if are in fragment B and change the orientation it works fine,ie no UI breaking.Why would the UI breaks when it is coming from the previous fragment in landscape mode ?If we are staying in fragment B and change both orientation ,no UI breaks.I don't know what is the issue.I have searched a lot but couldn't find the reason.
this is how it looks in portrait mode:this is how it looks in portrait mode
this how it looks when ui breaks:
enter image description here



this is how it looks when it is fragment B and landscape mode:
enter image description here







android android-fragments landscape-portrait






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 10:54







anju jo

















asked Mar 28 at 10:30









anju joanju jo

12511 bronze badges




12511 bronze badges















  • Provide image of UI issue

    – Athira
    Mar 28 at 10:35











  • Are you hardcoding the placement of your images in your layout? Please provide all relevant code.

    – Nikos Hidalgo
    Mar 28 at 10:59











  • @NikosHidalgo i have given android:configChanges="keyboardHidden|orientation|screenSize" in manifest

    – anju jo
    Mar 28 at 11:01











  • Add the code of fragment B here

    – Saeed Entezari
    Mar 28 at 11:52











  • I suppose that UI breaks because of the incorrect timingplacefunction in which you set column's width.

    – Alex Shiganov
    Mar 28 at 14:25

















  • Provide image of UI issue

    – Athira
    Mar 28 at 10:35











  • Are you hardcoding the placement of your images in your layout? Please provide all relevant code.

    – Nikos Hidalgo
    Mar 28 at 10:59











  • @NikosHidalgo i have given android:configChanges="keyboardHidden|orientation|screenSize" in manifest

    – anju jo
    Mar 28 at 11:01











  • Add the code of fragment B here

    – Saeed Entezari
    Mar 28 at 11:52











  • I suppose that UI breaks because of the incorrect timingplacefunction in which you set column's width.

    – Alex Shiganov
    Mar 28 at 14:25
















Provide image of UI issue

– Athira
Mar 28 at 10:35





Provide image of UI issue

– Athira
Mar 28 at 10:35













Are you hardcoding the placement of your images in your layout? Please provide all relevant code.

– Nikos Hidalgo
Mar 28 at 10:59





Are you hardcoding the placement of your images in your layout? Please provide all relevant code.

– Nikos Hidalgo
Mar 28 at 10:59













@NikosHidalgo i have given android:configChanges="keyboardHidden|orientation|screenSize" in manifest

– anju jo
Mar 28 at 11:01





@NikosHidalgo i have given android:configChanges="keyboardHidden|orientation|screenSize" in manifest

– anju jo
Mar 28 at 11:01













Add the code of fragment B here

– Saeed Entezari
Mar 28 at 11:52





Add the code of fragment B here

– Saeed Entezari
Mar 28 at 11:52













I suppose that UI breaks because of the incorrect timingplacefunction in which you set column's width.

– Alex Shiganov
Mar 28 at 14:25





I suppose that UI breaks because of the incorrect timingplacefunction in which you set column's width.

– Alex Shiganov
Mar 28 at 14:25












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55395351%2fui-breaks-when-changing-fragments%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55395351%2fui-breaks-when-changing-fragments%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript