java - how can i have a list of icons in my android app; -


can 1 suggest how can have list of icons browser icon,email icon , contacts icon upon clicking on should lead android browser,email , contacts apps respectively...right have done it, upon clicking buttons. want icons(with image , text) instead of buttons.

i think need use this:

<linearlayout android:orientation="vertical">     <imageview android:src="@drawable/icon" android:onclick="launchapp" />     <textview android:text="@string/icon_name" android:onclick="launchapp" /> </linearlayout> 

and in code should have corresponding method:

public void launchapp(view view) {  // } 

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -