Android app to play skin-changing. Application of Translucent Images

Source: Internet
Author: User

Do not know the art of code farming really can not hurt, not to, see how I make a tall on the UI.

Most hate those pure text share Android development article, pro-last picture is so difficult. If it's not the effect I want, you're not wasting my time. Learning about Android has been a while, and recently it's time to come up with a business app coming out. Read countless articles and experience countless similar applications, deep confusion. While holding the anti-compilation artifact, while reading a huge amount of articles, what to do, caller ah, nasty to me, no good solution ah, then summed up a slightly can see the path of the dawn: to find a heart of the application of the anti-compilation, extract the app use resources to achieve their own business. Alas, after a few easy to find, finally found the prototype. After the anti-compilation surprise, the app does not confuse encryption, but also can see the source code. Ok! Take one! Cui Hua, on (uncensored) big picture!

1, Cui Flower, on (uncensored) Large map! Product Appreciation!

2, pro you guessed right, this is not a change of skin, in fact, is to change a background image just.

Where's the tall place? A word, professional art is not the same Ah, the use of semi-transparent pictures of God, we all know that the layer generally has a "transparency" property bar, here is the use of this property to achieve a translucent effect. The code is actually quite simple, using shared global variables between different activity and changing the background of the topmost view.

String Bgoptionvalue = Shareutils.getvalue (sp, "background");         if null && bgoptionvalue.length () > 0) {            Mainview.setbackgroundresource (Integer.parseint ( Bgoptionvalue));             = Integer.parseint (bgoptionvalue);         Else             Mainview.setbackgroundresource (r.drawable.bg_01);

Resource File Disclosure:

It should be understood that only the flexible application of Android's various layouts, the business UI in the center of the location, not only to achieve adaptive also can achieve the simplest skin-changing effects. As this application is tentatively used on Android pad or Android touchscreen, it is now compatible with more than 7 inches of pad. Although the article is not very nutritious, but I would like to say: Ma Ma no longer worry about my painting interface is not good!

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.