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

How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

Convert JSON to MapSimplest way to convert a string representing JSON array into Java array List of key value pairsHow to take String JSON values into HashMapConvert a JSON String to a HashMapCreating BSON object from JSON stringJSONObject - How to get a value ?Better Map ConstructorReading JSON from Url javaUpdate columns if input values are not null otherwise ignore and keep the existing values of column in databaseHow to store object represented as Json string into Couchbase Lite?Go JSON into MapHow do I efficiently iterate over each entry in a Java Map?Sort a Map<Key, Value> by valuesHow to round a number to n decimal places in JavaCan comments be used in JSON?How do I read / convert an InputStream into a String in Java?How can I pretty-print JSON in a shell script?What is the correct JSON content type?How can I deserialize JSON to a simple Dictionary<string,string> in ASP.NET?Why does Google prepend while(1); to their JSON responses?Parse JSON in JavaScript?