Coder Social home page Coder Social logo

Landscape Mode about court-counter HOT 7 CLOSED

udacity avatar udacity commented on July 20, 2024
Landscape Mode

from court-counter.

Comments (7)

kt-aakash avatar kt-aakash commented on July 20, 2024 2

Hey guys, I have implemented the same using ConstraintLayout. Incase anyone here is intrested, feel free to checkout

Court-Counter

from court-counter.

LaszloLajosT avatar LaszloLajosT commented on July 20, 2024 2

Thank you @kt20162 .
Your link doesn't work. I think this is the original link for your project

from court-counter.

KaterynaS avatar KaterynaS commented on July 20, 2024 1

Here is the explanation and fix https://medium.com/androiddevelopers/viewmodels-a-simple-example-ed5ac416317e

from court-counter.

LaszloLajosT avatar LaszloLajosT commented on July 20, 2024

Hi,

Thank you the link @KaterynaS !
I tried to do my best to understand the article.
But still I am a bit confused. So the ViewModel should fix the landscape bug?
I tried to implement to my code but when I rotate my phone it looks like the same like before. Did I miss anything?
Here is my project:
project:

Because I don't see any difference, I thought I can "fix" it if I use ScrollView( I already used it once for my first Simple Screen App) but I've got errors and it looks like my XML file here is too complicated :)

Update:
Sorry, my late reaction, I didn't see any notification and I was busy continue my study with full time job. I double checked my link and I fixed the link issue.
Good to come back, I plan to look at this again during the weekend.

from court-counter.

zawawimanja avatar zawawimanja commented on July 20, 2024

@LaszloLajosT where is ur project I cannot see it?

from court-counter.

LaszloLajosT avatar LaszloLajosT commented on July 20, 2024

A few months later, I came back to the link what @KaterynaS shared here.
I started to change my code and use ViewModel. I don't know why but I thought ViewModel will also fix my layout issue if I rotate my phone. Well, that is an another task to do now.

I can tell the ViewModel works fine, and you can find my code here..

from court-counter.

kt-aakash avatar kt-aakash commented on July 20, 2024

Thanks @LaszloLajosT for the correction. I have modified my post to reflect the right link.

from court-counter.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.