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!