Giter Club home page Giter Club logo

Comments (9)

ijdoc avatar ijdoc commented on August 16, 2024

Is this happening on the emulator or on a real device? Also, would you mind posting the trace for the crash in another bug report?

from tecla-framework.

ijdoc avatar ijdoc commented on August 16, 2024

@ericwan78 this is most likely because the overlay is being drawn programmatically. It should be possible to define the position of all elements with the XML layout file and only control the highlights and non-layout properties programmatically.

@sagarchandarana123 let us know if you would like to tackle this.

Just to confirm... we should aim to layout all HUD elements entirely with the XML file and later grab each element inside the rendering class to perform highlighting and non-layout operations such as dynamically changing the alpha values as defined in #56

from tecla-framework.

sagar-chandarana avatar sagar-chandarana commented on August 16, 2024

Both screenshots are from real devices. The first one is Sony Xperia Miro with CyanogenMod10 JB 4.1.2 custom ROM. The second is Galaxy SII generic JB 4.2.
Yes I think I can work on it. But first I need to atleast run the application successfully on a device. Could you please help me with the issue #61 ? I have posted logcat too.

from tecla-framework.

lakhanpandya avatar lakhanpandya commented on August 16, 2024

I think i can make some changes in the lay out files and this issue can be resolved.
I will try to work on it.

from tecla-framework.

ijdoc avatar ijdoc commented on August 16, 2024

@lakhan091 @sagarchandarana123 please not the updated HUD mock-up below. The assets have not been extracted yet but are available inside the vector graphics mock-up inside the docs folder here: https://github.com/idrc/tecla-as/tree/develop/docs

hud_mockup_3

from tecla-framework.

sagar-chandarana avatar sagar-chandarana commented on August 16, 2024

@ericwan78 @jorgeSilva : I just went through the whole code of TeclaAS. Currently all the drawing and highlighting happens in TeclaHUD class, programmatically. So I guess I will fetch the new graphics from the doc folder, resize them for drawable-mdpi and ldpi, make an xml layout to draw the whole overlay, and modify alphas (highlighting) in TeclaHUD for fade effects, attach the 'back key' with the code. It will solve this and other issues #53 #54 and #60.

from tecla-framework.

ijdoc avatar ijdoc commented on August 16, 2024

If scaling is an issue, you may have to apply the 9-patch technique. This would only apply to the directional buttons along their largest dimension since the corners will be hard to scale. In other words, we should aim to place the constant-size corners close to the edges of the screen, and 'fill' the space between them by elongating the directional (arrow) buttons. Then just place whatever icon is needed on the centre.

@sagarchandarana123 you should know @ericwan78 is working on the same thing, so if you can help each other, that would be great.

from tecla-framework.

sagar-chandarana avatar sagar-chandarana commented on August 16, 2024

@jorgeSilva Yes I know about the 9-patch technique. I observed the black lines on the edges of all icons while i was coloring the Red pngs into Blue for the old Tecla app. I also observed that there was no blackline at the corners of the icons. I will make sure that scaling does not cause any distortion on the screen. Thanks for advice!
I will be in touch with Eric for development.

from tecla-framework.

ijdoc avatar ijdoc commented on August 16, 2024

This should now work after merging 75dff1f

from tecla-framework.

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.