android - resize icons...

I have a jellybean holder and thats just a graphic and I need to sit an imagebutton on top...but im not sure how to do that...also I have a it possibel to resize it in the android XML code?
LVL 10
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can set an ImageButton on top of your jellybean holder. A solution to the similar isue could be seen at
PFA code snippet from the referred website.

Regarding resizing, it can be done through the XML code in android. You will have to use properties like android:layout_width, android:layout_height.
Also, you may use properties like android:paddingLeft, android:paddingRight to set the view as desired.
<FrameLayout xmlns:android=""    android:layout_width="fill_parent"    android:layout_height="fill_parent">    <ImageView          android:layout_width="fill_parent"         android:layout_height="fill_parent"             android:scaleType="center"        android:src="@drawable/golden_gate" />        <TextView        android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:layout_marginBottom="20dip"        android:layout_gravity="center_horizontal|bottom"        android:padding="12dip"                android:background="#AA000000"        android:textColor="#ffffffff"                android:text="Golden Gate" /></FrameLayout>

Open in new window


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
GlobaLevelProgrammerAuthor Commented:
thanks for the response...I actually am using relative layout because I have an image that is to big and I need to shrink it down..and center in the middle of the screen...but I cant reduce it...but when I alter via the relative layout, you can only see a portion of the image...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.