Android Entry-Level tutorial "The first line of code" problems encountered

Source: Internet
Author: User

1, custom toolbar, we need to turn off actionbar, so we usually add the following code:

<item name="Windowactionbar" >false</item>

<item name="Windownotitle" >true</item>

You need to turn off some of the system's settings to avoid bugs when using custom headers

There will be a number of functions between different versions of Android, as well as changes in the code logic, in which programming is to pay extra attention

<resources> <!--This should be the function part of specifying the system status bar color above version 21-<!--This is not mentioned in the first line of code-<style name="Fruitactivitytheme"Parent="Apptheme"> <item name="Windowactionbar">false</item> <item name="Windownotitle">true</item> <item name="Android:statusbarcolor"> @android:color/transparent</item> </style></resources>

Android Entry-Level tutorial "The first line of code" problems encountered

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.