Workaround for issues encountered after upgrading to AppCompat V7 21.0.2

Source: Internet
Author: User
Tags set background

1) The first is to manually overwrite the file directly under the corresponding Lib project, prompting a number of style cannot be found. The reason is that the old and new versions of the file naming and structure are different, so this problem only need to clear the project directory, re-copy the file can be resolved.

2) found that part of the activity's menu background is transparent, but v20 before the problem, after the investigation of these activity are inherited from the fragmentactivity, only need to modify to Actionbaractivity can be resolved.

3) Only set background can not modify the background color of Actionbar, but v20 before the problem, the solution is to add backgroundstacked and Backgroundsplit.

    <stylename= "Oz_actionbar_style"Parent= "@style/widget.appcompat.actionbar">        <Itemname= "Background">@color/actionbar</Item>        <Itemname= "backgroundstacked">@color/actionbar</Item>        <Itemname= "Backgroundsplit">@color/actionbar</Item>        <Itemname= "TitleTextStyle">@style/actionbartitletextstyle</Item>        <Itemname= "Android:titletextstyle">@style/actionbartitletextstyle</Item>        <Itemname= "Android:background">@color/actionbar</Item>        <Itemname= "android:backgroundstacked">@color/actionbar</Item>        <Itemname= "Android:backgroundsplit">@color/actionbar</Item>    </style>

Workaround for issues encountered after upgrading to AppCompat V7 21.0.2

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.