The difference between Button and ImageButton in Lesson 07: [video tutorial on Android Development] And imagebuttonandroid
Today is the seventh lesson, which focuses on the differences between Button and ImageButton in android.
Playback address:
Click Open Link
For Android videos on whistling:
The biggest feature of this video set is its practicality. I have carefully considered what to say and what to say. There are no imaginary eight-brainers, no lengthy things. Everything is simple, clear, and thorough.
For android resources, the reference ImageButton button = (ImageButton) findViewById (Ridandroid_button );
Is a function, (ImageButton) is a forced type conversion to convert the data obtained by the function to the ImageButton type instance.
In android, how do buttons implement multiple languages? Some buttons are ImageButton with words. What should ImageButton do when switching languages?
Drawable-zh-rCN-mdpi creates different drawble folders based on different languages,
Then the image name is the same (Chinese-English), and the system will automatically find the corresponding image resource