Reputation: 111
I want to create icons as something like this image or something like on the homepage of quickr. If I use custom gridview for this as in this (of course in my case I need the text below the image ), then adding listeners to that would be difficult I guess. Should I use buttons for that with the image and text below that provided the background is transparent? If so which layout I need to use? Or is there any icon view facility in android like other views such as button and imageviews, so that we can modify as per our requirement.
Upvotes: 3
Views: 374
Reputation: 292
GridView will be the best option to do this and why dont you ask your graphics guy to add text with image.
Upvotes: 0
Reputation: 4258
You should use button for that.
<Button
android:id="@+id/btnIconName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:drawableTop="@drawable/iconimage"
android:text="IconTitle" />
For showing icon you should use android:drawableTop and for iocnTitle use android:text Property.
I hope my answer is helpful to you.
Upvotes: 1