Code Monkey home page Code Monkey logo

Comments (7)

tomholub avatar tomholub commented on July 4, 2024

needs more work - wrong logo resolution on login screen

from flowcrypt-android.

tomholub avatar tomholub commented on July 4, 2024

@DenBond7 trying to learn about how to do some basics in Android

  1. in fragment_splash.xml in the root tag, there is tools:showIn="@layout/activity_splash"

This causes me to have a hard time editing the layout, because the layout doesn't show as I edit it, splash shows instead. When I remove it, I can edit fragment_splash easily and it doesn't seem to have any effect when I build the app. What is it for?

  1. all of the mipmap images start with ic_. Is there some meaning to it? Should I just name all images this way?

from flowcrypt-android.

DenBond7 avatar DenBond7 commented on July 4, 2024

all of the mipmap images start with ic_. Is there some meaning to it? Should I just name all images this way?

Use common naming conventions for icon assets
https://developer.android.com/guide/practices/ui_guidelines/icon_design.html

from flowcrypt-android.

tomholub avatar tomholub commented on July 4, 2024

Got it, any naming conventions for non-icon images?

from flowcrypt-android.

DenBond7 avatar DenBond7 commented on July 4, 2024

Got it, any naming conventions for non-icon images?

If it the background image I use bg_ prefix (bg_big_car.png etc.). For other images, you can use what you like name conventions.

from flowcrypt-android.

DenBond7 avatar DenBond7 commented on July 4, 2024

This causes me to have a hard time editing the layout, because the layout doesn't show as I edit it, splash shows instead. When I remove it, I can edit fragment_splash easily and it doesn't seem to have any effect when I build the app. What is it for?

It's Android tools. This is used by Android Studio layout editor. When we use tools:showIn="@layout/activity_splash" we mean that current layout will be displayed in activity_splash.xml (on the main screen). But in activity_splash.xml we have next lines:

<include
        android:id="@+id/signInView"
        layout="@layout/content_splash"
        android:visibility="gone" />

android:visibility="gone" mean that layout="@layout/content_splash" will not be visible.

That's why you can not see the content in the fragment_splash.xml. More precisely, not even so. You see the layout splash_after_auth.xml because that layout is visible in activity_splash.xml. This situation has happened through the logic that is described in SplashActivity.java.

from flowcrypt-android.

tomholub avatar tomholub commented on July 4, 2024

This will take me some time to get used to. Thanks.

from flowcrypt-android.

Related Issues (20)

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.