Android TV Development Summary (ii) build a TV Metro interface (imitation Thai-Czech video tv edition)

Source: Internet
Author: User

Preface: The previous article is to introduce the construction of TV app to know some things, the development of Android TV and mobile phone is not much different in nature, screen large, focus processing, button processing, is different from the real difference between mobile phone and pad. Today, we introduce the Metro UI style in TV and illustrate it with examples.

Android TV can not develop without the Metro UI, first look at the latest Tetier TV member area effect, belongs to the typical Metro style, as follows:

What is the Metro UI:

Metro's design idea stems from the Traffic bureau bus stop sign Airport and the subway signs to the Microsoft design team inspiration, the design team said that Metro is from the U.S. state of Washington King County Traffic Bureau (King County Metro) Logo design, its style is large in large font, To attract the attention of the audience. Microsoft thinks the metro design [2] theme should be: "Smooth, fast, modern." Metro's icon design will also be different from Android and iOS.

Metro UI Software

Metro is a development platform provided by Microsoft to help developers write Metro-style programs, and can call the Microsoft WINRT exposed interface to write Metro-style programs. The Metro style controls [3] extend the WIN8 standard control methods and properties to implement some new features, such as Component one studio for WinRT Xaml,component one studio for WinJS. The Windows Application Marketplace, open in Windows8, also uses and recommends Metro-style interface applications.

Metro interface, first after the first view of the interface, the personal feeling is mainly for the touch screen device design, but in the TV is also easy to use. The programs we install in desktop and the apps that we download in the store are displayed in Metro, so we want to group, sort, and organize them regularly or irregularly, so that we can make our operations and the aesthetics of the interface easier. The Metro interface also provides convenient options to make the operation more convenient.

Case effect

To emulate and implement this Metro interface today, here's what I realized:

GIF graph: (There is no good screen recorder on TV, the box system is generally less than 5.0, some manufacturers have risen to 5.0, I use i71, very old box, based on API 17, 4.2.2 System)



SOURCE Analysis

Look at the layout of one of the Metroitem:




Each metroitemframelayout contains a number of sub-view,imageview is the corresponding picture, Cornervew represents the upper and lower corners of the corner, TextView represents the description below, these visual specific circumstances to choose.




? Other relevant code, the next blog specific analysis. Case is open source to GitHub, corresponding link: https://github.com/hejunlin2013/TVSample. Like can star.

License

Copyright (C) .Hejunlinlicensed under the Apache License, Version2.0(The"License"); not  UseThisfileExceptinchCompliance withThe license.you may obtain a copy ofThe License athttp://www.apache.org/licenses/license-2.0Unless required by applicableorAgreed to inchWriting, softwaredistributed under the License isDistributed onAn" as is"Basis,without WarrantiesORCONDITIONS ofAny KIND, either expressorImplied. See the License forThe specific language governing permissions andLimitations under the License.

The first time to get blog update reminders, as well as more Android dry, source code Analysis , Welcome to follow my public number, sweep the bottom QR code or long press to identify two-dimensional code, you can pay attention to.




If you feel good, easy to praise, but also to the author's affirmation, can also share this public number to you more people, original not easy

Android TV Development Summary (ii) build a TV Metro interface (imitation Thai-Czech video tv edition)

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.