roopesh007 / adipart

Automatically exported from code.google.com/p/adipart
0 stars 0 forks source link

RG #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
    private void setImageStation()
    {
        String radiogrupoID = null;
        ImageView radiogrupoImage = (ImageView) findViewById(R.id.ImageView02);

    switch (Global.StationIndex) {

      case 1: radiogrupoID = radiogrupoImage.setBackgroundResource(R.drawable.magia101);break;
      case 2: radiogrupoID = radiogrupoImage.setBackgroundResource(R.drawable.lapoderosa);break;
      case 3: radiogrupoID = radiogrupoImage.setBackgroundResource(R.drawable.radiobi);break;
      case 4: radiogrupoID = radiogrupoImage.setBackgroundResource(R.drawable.digital);break;
      case 5: radiogrupoID = radiogrupoImage.setBackgroundResource(R.drawable.larancherita);break;
    }
    }  

Original issue reported on code.google.com by seba...@gmail.com on 12 Oct 2010 at 1:16

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
ESTE ES EL BUENO

    private void setImageStation()
    {

          int resid = 0;
          switch (Global.StationIndex) {

          case 1: resid = R.drawable.magia101;break;
          case 2: resid = R.drawable.lapoderosa;break;
          case 3: resid = R.drawable.radiobi;break;
          case 4: resid = R.drawable.digital;break;
          case 5: resid = R.drawable.larancherita;break;
          default:  textState.setText("Primero Seleciona la Estación" );break;
    }    
          ImageView radiogrupoImage = (ImageView) findViewById(R.id.ImageView02);
          radiogrupoImage.setBackgroundResource(resid);
    } 

Original comment by seba...@gmail.com on 12 Oct 2010 at 1:46