February, 2010
Programming Android: Create Icon with Text Using GridView and Layout Inflater
Posted on February 19, 2010 |
How to create Icon With text like home screen, here is my example screen:
![]()
To do something like this we need to use GridView and make The Icon with text using the XML layout and then using LayoutInflater to read the XML and put it into the Adapter. Lets begin with the icon.xml(we put it into /res/layout/) that will be the view to show ImageView and Text together.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/widget44" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical" android:layout_x="201px" android:layout_y="165px" android:gravity="center_horizontal"> <ImageView android:id="@+id/icon_image" android:layout_width="wrap_content" android:layout_height="wrap_content"> </ImageView> <TextView android:id="@+id/icon_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="TextView" android:gravity="center_horizontal" android:textColorHighlight="#656565"> </TextView> </LinearLayout>
Android Concept and Building Block
Posted on February 5, 2010 |
In last past week i learn and see how android work and what is the real advantage that developer and user can get. I got so many new thing after trying build Android Application. There is some interesting concept that android have:
1. Integrate : we can use external application beside our application, so if you build your application. you can use external application such as gmail application, contact application etc Read more


