Posts

Showing posts from August, 2013

Creating a HorizontalScrollView of Images like Galery from Drawable

First, we have to create layout for display images in the horizontal view  <LinearLayout 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"     android:orientation="vertical">     <HorizontalScrollView         android:layout_width="match_parent"         android:layout_height="wrap_content" >         <LinearLayout             android:id="@+id/mygallery"             android:layout_width="wrap_content"             android:layout_height="wrap_content"     ...

Creating a Gallery image in android

public class PicSelectActivity extends Activity {         private final int PICKER = 1;     private int currentPic = 0;     //private PicAdapter imgAdapt;     private Gallery picGallery;     private ImageView picView;      Bitmap[] bitmaps;         @Override     public void onCreate(Bundle savedInstanceState) {                  Log.v("******************","process1");         super.onCreate(savedInstanceState);         setContentView(R.layout.imagedat);                               NotesDbAdapter objndb = new NotesDbAdapter(this);     ...