posted 12 years ago
I hope you people can share your knowlage about the fallowing questions.
1. I have a Linear Layout with a background image and an ImageView component in it.
is it possible to add a new image that will stand in front of the Image View?
2. I have a Grid Layout containing nine numeric images, each have a white background image behind it:
the problem here is how to scale the white background, but not the image with the number.
I can change the line imageView.setLayoutParams(new GridView.LayoutParams(28, 28));
to something like imageView.setLayoutParams(new GridView.LayoutParams(58, 28));
but this stretch both the number and the white background.
I attach a file with two screen shots. the top one is what I'm trying to achieve and the bottom is what I have now.
3. how do I set an application icon? android documentation says I have to add this line
to my manifest file: <application android:icon="@drawable/icon" >
where drawable/icon refer to a png file named "icon". well, I have that png file, put it in res/drawable
and add that line to the manifest. no result. I don't see my icon but that green default android icon.
what is missing here?