I am a novice;
In a recent study done ImageView, import your own pictures methods are directly under the res pictures onto drawable_mdpi file folder;
Layout layout layout files written under the.
When src under main.java, and wanted to write an array of a picture id, and easy to use
int [] images = new int [] {
R.drawable.bump_mdpi,
R.drawable.calculator_mdpi,
R.drawable.calendar_mdpi,
R.drawable.camcorder_mdpi
};
bump_mdpi, calculator_mdpi, calendar_mdpi, camcorder_mdpi these four images are placed in the drawable. But R.drawable.xxx in (automatic text box does not display the pictures I wanted id); Here is my way to import pictures wrong? . Java file does not automatically generate a variable of this image;
But I
in xmlandroid: id = "@ + id / plus"
android: layout_width = "wrap_content"
android: layout_height = "wrap_content"
android: background = "@ drawable / alarm_mdpi"
/>
Not missing an error
I imported the wrong way or what the details of it leaked. . . Daniel seeking guidance guide
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->Reply:
Do yourself Dingding Shen ah

Reply:
clear to see if there is no error
Reply:
Look, there are no R.java generated several id.
The Build Automatically open.
Reply:
Landlord Eclipse yet? First save, compile it, and then not clean re-compile.
The way you put the picture right, but IDE problems.
No comments:
Post a Comment