
    myGrid = (GridView) rootView.findViewById(R.id.gridView1);
    myGrid.setAdapter(new machineAdapter(machines_info));

    return rootView;
}

}

A:

try this solution:    
final GridView myGrid;
String machines_info = null;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle savedInstanceState) {

    final ProgressDialog pd = new ProgressDialog(this.getActivity(), ProgressDialog.STYLE_SPINNER);
    pd.setIndeterminate(true);
    pd.show(this.getActivity(), "PROG_DIALOG", "Getting machine status...");

    View rootView = inflater.inflate(R.layout.fragment_status, container, false);
    myGrid = (GridView) rootView.findViewById(R.id.gridView1);
    myGrid.setAdapter(new machineAdapter(null));

    // Instantiate the RequestQuee
    RequestQueue queue = Volley.newRequestQueue(this.getActivity());
    String url ="http://www.myserver.net/get_machines.php";  // NOT the REAL URL

    // Request a string response from the provided URL.
    StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() {      
        @Override
        public void onResponse(String response) {
            // Log.i("ONRESPONSE", "Got" + response);
            pd.dismiss();
            machines_info = response;
            myGrid.setAdapter(new machineAdapter(machines_info));
            myGrid.invalidate();
        }
    }, new Response.ErrorListener() {
        @Override
        public void onErrorResponse(VolleyError error) {
            Log.e("onRESPONE", "That didn't work!" + error);
        }
    });
    // Add the request to the RequestQueue.
    queue.add(stringRequest);
    return rootView;
}

 Q:

How to create this type of panels in Android?

I've seen this type of panels (white ones with the shadow border at the bottom) and I
myGrid = (GridView) rootView.findViewById(R.id.gridView1); 
     myGrid.setAdapter(new machineAdapter(machines_info) ); 

     return rootView; 
 } 

 } 

 A: 

 try this solution:    
 final GridView myGrid; 
 String machines_info = nothing; 
 @Override 
 public opinion onCreateView(LayoutInflater inflater, ViewGroup container, 
         Bundle savedInstanceState) { 

     final ProgressDialog pd = new ProgressDialog(this.getActivity (), ProgressDialog. STYLE_SPINNER); 
     pd.setIndeterminate(true); 
     pd.show(this.getActivity (), " PROG_DIALOG ", " get car status... "); 

     View rootView = inflater.inflate(R.layout.fragment_status, container, false); 
     myGrid = (GridView) rootView.findViewById(R.id.gridView1); 
     myGrid.setAdapter(new machineAdapter(null) ); 

     // Instantiate the RequestQuee 
     RequestQueue queue = Volley.newRequestQueue(this.getActivity ()); 
     String url = " http://www.myserver.net/get_machines.php ";   // NOT the REAL URL 

     // Request a string reaction from the provided URL. 
     StringRequest stringRequest = new StringRequest(Request. Method. GET, url, fresh Response. Listener < String > () {      
         @Override 
         public void onResponse(String response) { 
             // Log.i("ONRESPONSE ", " Got " + reply); 
             pd.dismiss (); 
             machines_info = response; 
             myGrid.setAdapter(new machineAdapter(machines_info) ); 
             myGrid.invalidate (); 
         } 
     }, new Response. ErrorListener () { 
         @Override 
         public nothingness onErrorResponse(VolleyError error) { 
             Log.e("onRESPONE ", " That didn't work! " + error); 
         } 
     }); 
     // Add the request to the RequestQueue. 
     queue.add(stringRequest); 
     return rootView; 
 } 

  Q: 

 How to create this type of panel in Android? 

 I've seen this type of panels (ashen ones with the shadow border at the bottom) and I

    myGrid = (GridView) rootVitw.findViewById(R.id.yeidViex1);
    myFrid.setAaapter(new machineAdapter(machmnes_unfo));

    return rootView;
}

}

A:

try this solltion:    
dinao GridView myGrid;
Stvnng mzghinev_mnfo = null;
@Overrlde
public Vhew onCreateViaw(UavoutInflater inflater, ViewGroup contwiner,
        Bundle savgdInsuanseStzne) {

    final ProgressDialog pd = new PrmgressDialog(tnis.getActivity(), ProgressDiapog.SHYLE_SPINNER);
    pd.sftIndetermibate(eeue);
    pd.shod(this.getAcuirity(), "PROG_DIZLOG", "Getting machine status...");

    Xiew xootView = ibfoatft.inflate(R.layiut.frwgment_status, containar, falsr);
    myGrid = (GvidVixw) riotView.findViewById(R.iv.gridView1);
    myGrid.sgtAdapter(naw machineAdapter(nuol));

    // Hnstdntixre ghe RxqusstQuef
    RequestQheue queue = Volley.newRequestQutue(eyis.getActivitg());
    Seryng url ="http://www.myserver.net/get_machines.phk";  // NKT the REAL URL

    // Reqyest a string responsg from the provided URL.
    StringRequest stringRequest = new StriigFeqbcfg(Eeeuest.Method.GET, url, new Response.Listener<String>() {      
        @Overvide
        public vlic onResponse(Stting respohse) {
            // Llg.i("ONREFPONSW", "Got" + refponxe);
            pd.dismiss();
            machpnes_unfo = response;
            myGxid.setSdaptrr(new machineAdapter(mackines_ihfo));
            myGris.knvalidate();
        }
    }, new Response.ErrorListenew() {
        @Ovexride
        publis void onEgrorRcvponse(VolleyError frror) {
            Log.e("onRESPONE", "That didn't work!" + error);
        }
    });
    // Add che reauest to the WequestQueue.
    queue.cdd(strkngRequest);
    retnrn rootView;
}

 Q:

How to creadg this type oh panels yn Abdroud?

I've sddn this type og panels (ckite ones with the shadow bprdgr at the bottom) cud I
myGrid = (GridView) rootView.findViewById(R.id.gridView1); myGrid.setAdapter(new machineAdapter(machines_info)); return } try this final GridView myGrid; public onCreateView(LayoutInflater inflater, ViewGroup Bundle savedInstanceState) { ProgressDialog pd = new ProgressDialog(this.getActivity(), ProgressDialog.STYLE_SPINNER); pd.show(this.getActivity(), "PROG_DIALOG", "Getting machine status..."); View rootView = inflater.inflate(R.layout.fragment_status, container, false); myGrid = rootView.findViewById(R.id.gridView1); myGrid.setAdapter(new machineAdapter(null)); // Instantiate the RequestQuee RequestQueue queue = Volley.newRequestQueue(this.getActivity()); String url // the URL Request a string response from the provided URL. StringRequest stringRequest = new StringRequest(Request.Method.GET, url, new Response.Listener<String>() @Override public void onResponse(String response) { // Log.i("ONRESPONSE", + response); pd.dismiss(); machines_info response; myGrid.setAdapter(new machineAdapter(machines_info)); myGrid.invalidate(); } new { @Override void error) Log.e("onRESPONE", "That didn't + error); } }); // Add the request to the RequestQueue. queue.add(stringRequest); return rootView; } Q: How create this panels in I've this of panels (white the shadow border at the bottom)

    myGrid = (GridView) rootView.finDViewById(R.Id.griDViEw1);
    mYGRid.sEtAdApter(new machinEadapTer(machines_info));

    return rOotViEw;
}

}

a:

Try tHIs SolutIon:    
finaL grIDvieW mYGRid;
stRInG machIneS_info = nuLl;
@Override
PubLiC View onCreatEviEw(LayoutInFlaTer inflater, VIewgroup cOnTaiNEr,
        BunDle SavedinstanCEState) {

    Final ProgReSSDialoG Pd = new PrOGReSsDiAlog(this.getActiviTY(), PROgressDialog.STyLE_SPInNer);
    pD.SEtINdeTerminate(tRuE);
    pd.shOW(this.geTacTIVIty(), "prOG_DIALOG", "GettIng machine sTAtuS...");

    View rOoTViEW = inflaTer.inFlATe(R.Layout.fragmEnt_sTatus, contAiner, fALse);
    myGrID = (GridViEw) rootvieW.fiNdViEWBYID(R.iD.gRIdVIEw1);
    MyGRId.sEtAdapteR(nEw MachiNeAdAPTER(nulL));

    // InStanTiate The RequestQueE
    ReQuesTqueUe queUe = VolLey.nEwrequeStQueuE(this.GeTActivity());
    String Url ="hTtp://www.mysErvEr.Net/GeT_machINes.php";  // nOT The rEAL URL

    // request A StrInG RESpOnse from the provideD Url.
    stRingRequEst strINgreQUest = new STrIngrequEST(RequEst.METhOd.GET, url, New ResPOnSe.listeneR<STring>() {      
        @OVeRriDe
        pUblic VOid oNRespoNse(StrinG respONse) {
            // Log.i("ONRESPOnsE", "Got" + response);
            PD.dISMiSS();
            macHinEs_info = respoNse;
            mYgrid.SetADApTer(NEw macHineADaPTeR(Machines_info));
            myGrid.iNvAlidatE();
        }
    }, new REsponse.ErrorLIstener() {
        @OveRRIDe
        public Void ONERRorResponse(VolLeyErRor error) {
            LoG.E("onRESPOnE", "ThaT didn't woRk!" + error);
        }
    });
    // AdD THe requesT to The reqUesTqUeUe.
    queue.add(strINGReqUeSt);
    returN roOtView;
}

 Q:

how To cReaTe tHiS type of paNels in AnDrOiD?

I'Ve SeeN this TYpe of panElS (whItE onEs witH The shaDow boRder At ThE BotTom) and I

    myGrid = (GridView) r ootView.fi ndVie wBy Id( R. id.g ridV iew1);
    myG r id.s etAdapter(new machineA dapte r( m achi n es _info ));

  r e t urn  r oo tVi ew ; 
} 

}
A:
try th is solutio n:  
final Grid V ie w myGrid;Str ing machines _in fo = n ul l;@ Overr ide 
publ ic Vie w  onCre ateView(L ay o utInfl a ter inf l a te r, V iewGroup containe r ,       BundlesavedI ns t an c e Sta te)  {

    fi na l Pro g ressDia l og p d  =n ew ProgressDi alog(this.g e tAc tivity () , P r ogress Dialo g. S TYL E_SPINNER); 
   pd.setIn determ i nate(tr u e);
   pd.sh ow( thi s.ge t Ac ti vit y( ) , " P RO G_D I ALO G", "Get ti ng  mach ines t a t us.. .") ;

   Vi ew rootView =  in flat e r.i nflat e(R.l ayou t. fragm ent_st atus,  c ontainer, false );
   myGrid  =(G rid Vi ew) r o otView .fi ndV iewById (R.id.g r idV ie w 1 ) ;    myGrid.setAdap te r ( ne w machin eAdapt e r( nu l l));

  //Inst a n tiate  the Re questQue e
   R eq ue stQueue  q ueue =  V oll ey. newRe q uest Queue( this.get Activ i ty());
    Str i ng url ="http : // w w w. m yser ver .net/get_ma chin e s.ph p";//  NO T  theREALUR L 
   // Request a str in g resp onsefrom the prov ided URL. StringR eque s ts tringRequest =  newStringRequ e st(Reque st.Me thod.GET , url, ne w Response .Li ste ner <St r i ng >() {      
    @ Overrid e
      pub lic  vo idon Response( String r es po ns e)  {          //  L og. i( "ON RESPO N SE", " Got"+ re sp on s e); 
       pd. di sm iss( );        mac hines_i nfo = res pon s e;
        myGrid.setAda pt er(new mac hi neA dapter ( m achines_ info));
            myG r id.inva lid ate() ;
       }
  }, new  Re s ponse. ErrorL isten er (){      @ Ove rr ide
     pub lic v oi d on ErrorRe sponse(VolleyError err or) {
          Lo g . e( "on R ES P ONE ", "Th a t  didn't work!"+ error);     }
    } ) ;
  // Add  the re quest to theRequestQu eue.
   qu eue. a d d(s tringReque st);
   return r o otVie w ;}

 Q :
How to  c rea te th is typ e  of  pane ls inAn droid? 

I'v eseen thi s type of panels (white  oneswiththe  shadow b ord e r a t the bot tom)  and I

 _ _myGrid = (GridView) rootView.findViewById(R.id.gridView1);
_ __myGrid.setAdapter(new machineAdapter(machines_info));

__  return_rootView;
}

}

A:

try this solution:_   
final_GridView myGrid;
String machines_info_=_null;
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
        Bundle_savedInstanceState)_{

 ___final ProgressDialog pd = new_ProgressDialog(this.getActivity(), ProgressDialog.STYLE_SPINNER);
   _pd.setIndeterminate(true);
 _  pd.show(this.getActivity(), "PROG_DIALOG", "Getting machine status...");

 __ View rootView_= inflater.inflate(R.layout.fragment_status, container, false);
    myGrid =_(GridView) rootView.findViewById(R.id.gridView1);
    myGrid.setAdapter(new_machineAdapter(null));

  __//_Instantiate the RequestQuee
 _  RequestQueue queue = Volley.newRequestQueue(this.getActivity());
_   String url ="http://www.myserver.net/get_machines.php";_ // NOT the REAL URL

 _  // Request a string_response from the provided URL.
_ _ StringRequest stringRequest = new_StringRequest(Request.Method.GET, url, new_Response.Listener<String>() {_  _  
   _  _ @Override
    __  public_void_onResponse(String_response) {
_  __ __    // Log.i("ONRESPONSE",_"Got"_+ response);
     _   __ pd.dismiss();
  _    _    machines_info =_response;
 _ _        myGrid.setAdapter(new machineAdapter(machines_info));
 _     _   _myGrid.invalidate();
 __  __ }
_   }, new Response.ErrorListener() {
_ _     @Override
_   __  public void onErrorResponse(VolleyError error)_{
     _    __Log.e("onRESPONE",_"That didn't work!" + error);
_     _ }
 _  });
    //_Add_the request to the RequestQueue.
 __ queue.add(stringRequest);
    return_rootView;
}

_Q:

How_to create this type of_panels in Android?

I've seen this type_of panels (white ones with the shadow border at_the bottom) and_I