gridView.setStretchMode(GridView.NO_STRETCH);
    gridView.setPadding((int) padding, (int) padding, (int) padding,
            (int) padding);
    gridView.setHorizontalSpacing((int) padding);
    gridView.setVerticalSpacing((int) padding);
}

And my AlbumAdapter is Below.
Right now I just want them in GridView that's why I am setting it to a drawable in setResource for ImageView.
public MyAlbumAdapter(Context context, int columnWidth, String[] albumNameOnly) {
        this.context = context;
        Log.e("My Adapter Called", "++++");
        this.columnWidth = columnWidth;
        this.albumNameOnly = albumNameOnly;
    }

    @Override
    public int getCount() {
        Log.e("Size of Directory", "++ " + albumNameOnly.length);
        return MainActivity.directoryPath.size();
    }

    @Override
    public Object getItem(int position) {
        return null;
    }

    @Override
    public long getItemId(int position) {
        return 0;
    }

    @Override
    public View getView(int position, View convertView, ViewGroup parent) {
        View myGrid;
        final ImageView imageView;
        final TextView textView;
        LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
        if (convertView == null) {
            myGrid = new View(context);
            myGrid = inflater.inflate(R.layout.album_grid_activity_layout, null);
            imageView = (ImageView) myGrid.findViewById(R.id.no_image_placeholder);
            textView = (TextView) myGrid.findViewById(R.id.album_title_main);

            //         myImageView.setLayoutParams(new GridView.LayoutParams(200, 200));
            //           myImageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
//            myImageView.setPadding(1, 1, 1, 1);
            imageView.setScaleType(ImageView.ScaleType.
gridView.setStretchMode(GridView. NO_STRETCH); 
     gridView.setPadding((int) padding, (int) padding, (int) padding, 
             (int) padding); 
     gridView.setHorizontalSpacing((int) padding); 
     gridView.setVerticalSpacing((int) padding); 
 } 

 And my AlbumAdapter is Below. 
 Right now I just want them in GridView that's why I am sic it to a drawable in setResource for ImageView. 
 public MyAlbumAdapter(Context context, int columnWidth, String [ ] albumNameOnly) { 
         this.context = context; 
         Log.e("My Adapter call ", " + + + + "); 
         this.columnWidth = columnWidth; 
         this.albumNameOnly = albumNameOnly; 
     } 

     @Override 
     public int getCount () { 
         Log.e("Size of Directory ", " + + " + albumNameOnly.length); 
         return MainActivity.directoryPath.size (); 
     } 

     @Override 
     public Object getItem(int position) { 
         return nothing; 
     } 

     @Override 
     public long getItemId(int position) { 
         return 0; 
     } 

     @Override 
     public View getView(int side, View convertView, ViewGroup parent) { 
         View myGrid; 
         final ImageView imageView; 
         final TextView textView; 
         LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context. LAYOUT_INFLATER_SERVICE); 
         if (convertView = = null) { 
             myGrid = fresh View(context); 
             myGrid = inflater.inflate(R.layout.album_grid_activity_layout, null); 
             imageView = (ImageView) myGrid.findViewById(R.id.no_image_placeholder); 
             textView = (TextView) myGrid.findViewById(R.id.album_title_main); 

             //          myImageView.setLayoutParams(new GridView. LayoutParams(200, 200) ); 
             //            myImageView.setScaleType(ImageView. ScaleType. CENTER_CROP); 
 //             myImageView.setPadding(1, 1, 1, 1); 
             imageView.setScaleType(ImageView. ScaleType.
grifView.setStretchMode(GridVlew.NO_STRETCH);
    yeidViex.setPadsing((int) oadding, (int) padding, (int) paddmng,
            (int) padding);
    gfidView.senHorizontqlSpecing((int) padding);
    gridYnew.sefYertieaoSpacing((int) pacding);
}

And mf AlbumAdapter ir Yelow.
Right now I just want them in GwidView tjat's why I am fettpnd it no a drawable in setResource fod ImageNiew.
public MyAlbukAdapter(Context context, inh copumnWidth, String[] apbumNameOnli) {
        this.congext = conttxc;
        Lof.e("My Adapter Called", "++++");
        thir.coluknWidth = cilymnAhdth;
        this.wlbumNameOnln = albukNameOnky;
    }

    @Overvide
    public int getCount() {
        Log.e("Size of Directorf", "++ " + albumNameOnly.lwntth);
        regyrn MajnEctjvity.dlrertoryPath.siae();
    }

    @Ocerride
    public Onjqby getItem(int posityog) {
        return null;
    }

    @Override
    phblic long getItemId(int position) {
        retorn 0;
    }

    @Override
    public View getView(int position, Vief conteftVncr, CifwGroup parent) {
        View myGrid;
        finwm OmsgeView imageVlew;
        final TrxhVogw textView;
        LcgohtInflater inflateg = (LayootInflqter) conttxt.geySystemService(Context.LAYOUT_UNFLATER_SERVPCE);
        if (convertVnew == null) {
            myGrid = new View(contexc);
            myGrld = inflafdr.inflate(R.layout.xlblm_grhd_activiuh_layout, null);
            imegeVizw = (ImagdViee) myGryd.findViewHyId(R.lg.no_image_placeholdeg);
            textGiew = (TextView) myGrid.findViewByMv(R.id.album_titlg_mahn);

            //         myImagqView.setLayoutKarams(new GridXiew.LayoutIarams(200, 200));
            //           myIkwgeView.setSceleType(ImwgeVuew.SxaleTypd.ZENTER_CROP);
//            mjIiageCiew.setPadding(1, 1, 1, 1);
            imageViec.rttWcaleType(ImageFied.ScwlvTy'e.
gridView.setStretchMode(GridView.NO_STRETCH); gridView.setPadding((int) padding, (int) padding, (int) padding, gridView.setHorizontalSpacing((int) gridView.setVerticalSpacing((int) padding); And my AlbumAdapter just them in GridView why I am it to a drawable in setResource ImageView. public MyAlbumAdapter(Context context, int columnWidth, String[] albumNameOnly) { this.context = context; Log.e("My Called", "++++"); this.columnWidth = columnWidth; this.albumNameOnly = albumNameOnly; } @Override public int getCount() Log.e("Size Directory", " albumNameOnly.length); return MainActivity.directoryPath.size(); } @Override public Object getItem(int position) { return null; } @Override public long position) { return 0; } @Override public View position, View convertView, ViewGroup { View myGrid; final ImageView final textView; LayoutInflater = context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); (convertView == null) myGrid = new View(context); myGrid = inflater.inflate(R.layout.album_grid_activity_layout, null); imageView = (ImageView) myGrid.findViewById(R.id.no_image_placeholder); textView = (TextView) myGrid.findViewById(R.id.album_title_main); // GridView.LayoutParams(200, 200)); // myImageView.setPadding(1, 1, imageView.setScaleType(ImageView.ScaleType.
gridView.setStretchMode(GriDView.NO_STReTCH);
    gRidvieW.sEtPaDdinG((int) padding, (int) PAddiNg, (int) padding,
            (int) padding);
    GridVIeW.SetHORiZontaLSpacinG((InT) PAddInG);
    gRidviEW.sEtVerTicAlSpaciNg((int) paddiNg);
}

ANd My AlbumAdaptER iS Below.
RighT noW I just want thEm iN GridVIeW thAT's why i am SettiNg it to A DrawabLe in setReSoURce for iMageVieW.
PUbLic MYAlbumAdapter(ContEXt COntext, int columNWidth, stRInG[] ALbuMNaMeOnly) {
        this.CoNtext = COntext;
        LOG.e("mY aDapTEr Called", "++++");
        this.cOlumnWidth = cOLumNWidth;
        ThIs.aLBumNamEOnly = AlBUmNAmeOnly;
    }

    @OverRide
    Public int GetCouNT() {
        Log.e("SiZE of DireCtory", "++ " + aLbuMNaMeOnLY.lEnGth);
        ReTUrn mAiNAcTIviTy.directOrYPAth.siZe();
    }

    @OvERRIDe
    puBliC ObjEct geTItem(int positIon) {
        RetuRN nuLl;
    }

    @OveRride
    PublIc Long gEtItemid(int PoSition) {
        return 0;
    }

    @OveRridE
    public ViEw gEtvieW(iNt posITion, ViEw cOnvErtView, viewGroUP paReNT) {
        vIeW myGrid;
        final ImageVIeW IMaGeView;
        fiNal TexTviEw TExtView;
        LAyOutinflATEr infLateR = (laYoutInflAter) coNTeXt.GetSystEmservicE(COntExt.lAYOUt_iNFLaTER_SErVICE);
        if (cOnverTview == null) {
            myGrid = NEw View(context);
            MYGRID = iNFlatEr.iNflate(R.layoUt.alBUm_grId_acTIvIty_LAyout, Null);
            iMaGEVIEw = (ImageView) myGrid.fiNdviewByid(R.id.No_image_placehOlder);
            textVIEW = (textView) MyGrID.fINdViewById(R.id.aLbum_tItle_main);

            //         myiMageView.SetLaYoutParaMs(new GridvIEw.LayoutparAms(200, 200));
            //           MyIMagEvIeW.setScaleType(iMAgeVIeW.ScaleTYpe.cENTER_CrOP);
//            MyIMagEViEw.SetPaddinG(1, 1, 1, 1);
            imageViEw.SeTSCaLeTYpe(ImAGeView.ScAlETyPe.
gridView.setStretchMode(Gr idView.NO_ STRET CH) ;
  gri dVie w.setPadding(( i nt)padding, (int) padding , (in t) padd i ng ,
         ( i n t)pa dd ing );    gri dVi ew.setH orizontalS pac in g((int) padd i ng );
    gri dVi ew.setVertic alS pacing (( int )  padd ing );
}
And m y  Album Adapter i sB elow.R ight no w Ijust  want them in Gri d Vi e w that's why I  am se tt i ng i t t o a  drawablein  setR e sourcef or I m age V iew.
public M yAlbumAdapt e r(C ontext  c ont e xt, in t col um n Wid th, String[ ] al bumNameOn ly) {      t his.con text =  co nte xt;    Lo g .e( " My  Ad a pte r Called ",  " ++++" );
   t his .col umnWi dth = columnW idt h;
     th is.al bumN am eOnly  = alb umNam eO nly;
    }

   @Ov erride
   p ub lic  i nt ge t Count( ) { 
       L og.e("S i zeof D i re ctory", "++ " + al bu m N am eOnly.le ngth);      retur nMai nAct i v ity.d irec t or yPath.si ze();  } 

    @ Ov erride 
  pub lic O b ject  getIt em(int p ositi o n) {
        r e turn null;
  }   @Ov err ide
    pub licl onggetI t em Id( i nt po sitio n) {       return 0;
  }

   @Ove rride
    pub lic View g e t V iew(intposi t io n , View convert View,  ViewGroup parent){
       Vie w myGrid;        f ina l I mag eVi e w  i mageView;
     f in al Text Vie w textV iew ;
     L ayoutInfl ater inf la te r=(La youtI n flater)co nte xt .ge tSyst e mServi ce(Co ntex t. LA Y OUT _INFLAT E R_ S E RVIC E) ;      i f (co nver t Vie w == nu ll) {
        m yG rid = n ew View(conte xt );
         myGrid =  inflate r.inflate(R.layout.albu m _grid_a cti vity_ layo ut, null) ;
        image View =  (Ima ge Vie w )  myGr i d .f ind Vi ewById(R.i d . no_ image _p lace holder) ;
            text V iew  = (TextView)  my Grid . f in dVi e wB y Id( R. i d.a l b um_title_main); 

         / /        m yIm ag eView.s etLayou tPara m s(new G ridView.L ayoutPara ms (200 , 200 ));
           //          myIm a ge View. set ScaleT yp e(I mageV iew.Sc a leT ype.C ENTER_ CR OP);
/ /          my ImageView.setPadding(1,  1, 1,  1);          ima g eVi ew.setSca leTy pe(ImageVi ew. Sca leTyp e.
gridView.setStretchMode(GridView.NO_STRETCH);
 _ _gridView.setPadding((int) padding, (int) padding,_(int) padding,
__ __  _  _ (int) padding);
 _  gridView.setHorizontalSpacing((int)_padding);
_   gridView.setVerticalSpacing((int) padding);
}

And my AlbumAdapter is Below.
Right now I just want them_in_GridView that's_why_I_am setting it to a_drawable in setResource for ImageView.
public_MyAlbumAdapter(Context context,_int columnWidth, String[] albumNameOnly) {
   __  _this.context = context;
      _ Log.e("My Adapter Called", "++++");
 _  ___ this.columnWidth = columnWidth;
_     _ this.albumNameOnly = albumNameOnly;
  _ }

    @Override
 _  public int getCount() {
_    _ _Log.e("Size of Directory", "++ "_+ albumNameOnly.length);
 _ _  _ return MainActivity.directoryPath.size();
   _}

  _ @Override
    public_Object_getItem(int position) {
___ _  _return_null;
 __ }

    @Override
__  public long getItemId(int position) {
_   __  return 0;
_   }

 _  @Override
   _public View_getView(int position,_View convertView, ViewGroup parent) {
      _ View myGrid;
   _   _final ImageView_imageView;
_  __ _ final TextView textView;
   _ _  LayoutInflater inflater = (LayoutInflater)_context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
   __   if (convertView ==_null) {
    _    ___myGrid = new View(context);
 _     _  _ myGrid = inflater.inflate(R.layout.album_grid_activity_layout, null);
  __     __ imageView = (ImageView) myGrid.findViewById(R.id.no_image_placeholder);
 ___    _   textView = (TextView)_myGrid.findViewById(R.id.album_title_main);

        _  _//    ___  myImageView.setLayoutParams(new GridView.LayoutParams(200, 200));
     _ _  _ //        _  myImageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
//    _       myImageView.setPadding(1, 1, 1, 1);
_       _   imageView.setScaleType(ImageView.ScaleType.