Home » Author Archives: Chathura Wijesinghe

Author Archives: Chathura Wijesinghe

Android Dialog – Android Custom Dialog

android-logo

In this tutorial I am going to describe how to create Android Custom Dialg. Android Dialog Create Android Project AndroidDialog ; File -> New -> Android Project Android Layout activity_android_dialog.xml <RelativeLayout xmlns:android='http://schemas.android.com/apk/res/android' xmlns:tools='http://schemas.android.com/tools' android:layout_width='match_parent' android:layout_height='match_parent' > <Button android:id='@+id/btn_launch' android:layout_width='wrap_content' android:layout_height='wrap_content' android:layout_alignParentTop='true' android:layout_centerHorizontal='true' android:layout_marginTop='115dp' android:text='Launch Dialog' /> <TextView android:id='@+id/textView1' android:layout_width='wrap_content' android:layout_height='wrap_content' android:layout_alignParentLeft='true' android:layout_alignParentTop='true' android:layout_marginLeft='28dp' android:layout_marginTop='54dp' android:[email protected]/app_desc' android:textAppearance='?android:attr/textAppearanceLarge' /> </RelativeLayout> Dialog Layout ...

Read More »

Android ListView example with Image and Text

android-logo

In this tutorial I am going to show you how to create an Android ListView with images and text. You will learn how to load an image from a resource and how to set text to TextView . Here is the screenshot of the finished ListView. Android List View example on Samsung Galaxy Y s5360 ItemDetails class will help us ...

Read More »

Want to take your Java skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • Spring Interview QnA
  • Multithreading & Concurrency QnA
  • JPA Minibook
  • JVM Troubleshooting Guide
  • Advanced Java
  • Java Interview QnA
  • Java Design Patterns