Chapter 12. (Advanced chapter)
Chapter 4 yesterday completed.
Today, we look at Chapter 5.
Next is to Section 5.1.
Summary of the main points of the 5.1:
1, how to make a common skin button.
Do what I do:
Key 1: How to make a public skin button.
First, create a exml file.
Create a custom skin buttons learned.
The same size rectangular peripheral adjustment and buttons.
Then drag label assembly, instead of the original text button.
Next, in the said book.
I do not know why must change labelDisplay, it tentatively to follow suit.
Well, then also played a good name ID.
And then renewed a tag name.
In this way, exml skin on the well started with a try.
Well, I created a new New.exml file, and drag a default button component.
Next, choose me to do custom buttons.
You can see the effects.
I tried it renamed.
Also it is renamed.
Then I tried to change the id labelDisplay labelDIsplay1.
Unexpected discovery, the Customize button New.exml used in the file can not be renamed.
It seems, labelDisplay this name ID is a fixed format. You can not make change. I did not think there is such a rule.
Egret hope these rules are clear, or really, if you write your own components, it is not know why the pit.
This is the result:
At this point, the end of section 5.1 content.