Differences between Android TV app and mobile app: androidapp
One of the company's projects is for android TV. Thanks to the daily report, summary: android TV app presents the difference between the ui and mobile app.
The main differences between android TV app and mobile app are in the form of representation. 1. Focus mobile processing clearly shows that focus retrieval is everywhere in the code, this is not required by mobile apps. The different operation modes of the touch screen and remote control determine that the TV remote control mode gets the focus first on the screen (the remote control determines the Focus movement) and then the click, the mobile touch method is the direct click acquisition and focus acquisition. Generally, you only need to process click acquisition. 2. The layout boundary handles the differences between remote control and touch operations, as a result, when using the listView gridView scrollView and other la S, half of the la s will be displayed. This is not needed in the mobile app, but the number of hands pulled is what, run with your hands. However, for TV remote control operations, the focus is to run in blocks, and half of items are displayed as expected. Some layout files inherit the layout of the system and modify the focus rendering mode. 3. The card rendering mode replaces the list rendering mode. mobile app is the list world, e-commerce social apps are especially represented by various lists and nested lists. However, mobile apps are more likely to see the use of card-based rendering. The flat design is consistent with the presented method recommended by the tablet. At the same time, many existing and system-provided controls cannot be used. Currently, many third-party cool controls on github are not suitable for TV. This is a difficulty in implementing the TV interface, difference from time-consuming scenarios 4. Delivery of detailed gestures mobile app gestures are rewritten when dispathTouchEventtv app gestures are distributed. dispathKeyEvent is overwritten, and remote control and touch operations can be seen. the difference between the above summary. If you have a wrong understanding, please point it out.