Comments (9)
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.
@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.
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.
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.
@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
from tecla-framework.
@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.
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.
@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.
This should now work after merging 75dff1f
from tecla-framework.
Related Issues (20)
- Fullscreen single switch does not show keyboard
- Input stays on IME settings upon initial trigger
- Find way to detect current node's type
- Import code to transition from TeclaUNO to TeclaDOS
- Keyboard does not hide on long press disable of fullscreen single switch
- Fix back button on google search bar for the Nexus 4
- Missing BLUETOOTH Android permission HOT 1
- Null pointer exception after Shield connected HOT 1
- Warning to turn on Tecla Next accessibility service comes up when the service is already on HOT 1
- Shield Service calls are being made to the TeclaSettingsApp through a secondary instance
- Instance of settings activity in TeclaApp class should be removed
- getBluetoothAdapter() is a low-level method more apt as part of the Shield Service, not the Shield Manager HOT 1
- Tecla Shield Manager callback implementations are incomplete HOT 1
- Duplicate instance of TeclaVisualOverlay inside TeclaApp is unnecessary HOT 2
- HUD does not show and crashes on enable of fullscreen single switch HOT 1
- Connecting to shield crashes app HOT 1
- Highlighter is drawing on top of HUD
- Highlight does not stay on Google Music's notification controls
- Crash on attempt to start SettingsActivity After Recreating Symlinks HOT 2
- Consider "repurposing" current toggle button on direction keypad to toggle mouse emulation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tecla-framework.