The difference between Android Tv app and mobile app interface

Source: Internet
Author: User

one of the company's projects is the Android TV's Xie Pian daily Summary:the difference between Android TV app rendering UI and mobile app
The main differences between Android TV app and mobile app are in performance form1, focus on the movement of the processingIt is clear from the code that there is a focus-fetching process everywhere, which is not needed by mobile apps. the different operation mode of the touch screen and the remote control determines: the TV remote operation mode is to get the focus first (the remote control to decide the focus movement) and then get the click, while the mobile touch mode is direct click Get together with focus acquisition usually only need to handle click Get 2. Layout boundary processingremote control and touch operation, resulting in the use of the ListView GridView ScrollView such as pull-out layout, will appear half of the phenomenon, this in mobile app is not needed to deal with, hand-pulled how much is how much, followed by hand run. But the TV remote operation, the focus is a block run, the appearance of the item shows that half of the situation is not in line with expectations. There are also some layout files that inherit the layout of the system and modify the focus rendering method 3, card rendering Alternative list rendering methodmobile app is a list of the world, the electronic trading company in particular, many of the apps are various lists, nested list of the presentation. But mobile apps see more of the use of card-style presentation, and flat design is consistent with the way tablets are presented. It also determines that many existing and system-provided controls are not available. There are many third-party cool controls on GitHub that are not suitable for TVs. This is a difficult and time-consuming place to implement the TV interface . 4. Details of the difference in hand gesture distributionmobile app gesture is dispathtouchevent when it is distributedTV app gesture is rewritten when it is dispathkeyeventIt is also possible to see the difference between remote and touch operations If you understand the above summary, please note that

The difference between Android Tv app and mobile app interface

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.