![]() ![]() Now I have a pretty good general idea after experimenting with all the suggestions. Again, I didn't know what that was or how to use it. Also, that StateListDrawable had to use the "Focused" command just as DonManfred suggested. The problem was I didn't know what that was at the time and all the examples in the forum were not meant towards my particular problem (Android TVs or D-pads). ![]() The solution was, as sonicmayne suggested at the very beginning, to use a StateListDrawable. but on my apps, you couldn't tell which button withing my app you were moving to with the cursor/focus (on regular phones and tablet, it is not needed since all you do is tap the needed button). ![]() As you know, with the TV control remote, you can navigate the Home menu, select Netflix, or YouTube, or go to the settings, or online with the internet browser, and it shows by enlarging the icon where the cursor is resting upon. Remember, this thread was about bringing into focus, or showing by highlighting, or changing color, or enlarging, or putting a border, or by any means necessary, which button on the Android TV was the "cursor" resting upon. after trying all suggestions and examples, and really trying them on emulators and real devices, specially Android TVs, I've found the following and simple solution. sonicmayne and DonManfred also contributed with their suggestion. I found the solution based on the explanation RandomCoder gave in another post. I'll put for now here the code, but later (in a few days) I'll also give a good and final working sample. If it cannot be done (at the moment with the current version of B4A) it is fine, but please let me know. Listdrawable does the trick to set order when using tabs, so that while using the remote control the EditText boxes go in the desired sequence.Īny more ideas? For a button, that is. Listdrawable only seems to work with EditText. This will tell you which button would be activated if pressing "Enter" on the TV remote control. Picture this: You enter the app, and then you notice that one of the buttons is glowing, or has a white frame around it, or the text on the button is changing colors. It only shows where the "cursor", if you will, is located among all the cells. It does not mean that the cell is being used/edited at the moment. Seriously, isn't there a way to at least change the color of a "BUTTON" or to put a hallo around it to show it as the current active button just like Microsoft Excel does to the active cell? In MS Excel, the active cell is noticed by a black rectangle around the cell. RequestFocus seems to work only with EditText items. How or what's the code to make the buttons on my apps show a "highlight" or "Enlarge" or something indicating that if I tap, click, or press "that" button it will activate, and remain highlighted or enlarged (indicating where the cursor or active button is) until I press another button, just like all other apps in the Android TV do?īy the way, I noticed that many apps on phones/tablets do have this "active" or "current" button status highlighting or enlarging feature. Once my app is running, inside my app, I have to guess which button I am about to press by counting how many times I press the remote control button (either left or right or up or down). On the Sony Android TV, the icon or button I am about to press (like the Netflix icon, or the TV Settings icon/button, etc) becomes highlighted or enlarged as I navigate through the options. They work flawlessly! Thanks Erel! Your programming languages are awesome. I recently bought a Sony Android TV with the intention to use the apps I made with B4A. I searched (maybe not deep enough) through the forum about this question but I didn't find anything. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |