title: How to add Material Design on my app
body: <p>I have a big problem.
  With Eclipse (I have latest API and SDK of Android 5.0) I was trying to transform my app with material design. The problem is that Eclipse seems unable to recognize the code.
  I'll try to be very detailed:
  This is my principal code:</p>
  
  <h3>Main Activity.java</h3>
  
  <pre><code>public class MainActivity extends Activity implements OnClickListener {
  
  private final static String RADIO_STATION_URL = "http://178.32.137.180:8665/stream";
  
  private ProgressBar playSeekBar;
  
  private Button buttonPlay;
  
  private Button buttonStopPlay;
  
  private MediaPlayer player;
  
  /** Called when the activity is first created. */
  @Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  
      initializeUIElements();
  
      initializeMediaPlayer();
  }
  
  private void initializeUIElements() {
  
      playSeekBar = (ProgressBar) findViewById(R.id.progressBar1);
      playSeekBar.setMax(100);
      playSeekBar.setVisibility(View.INVISIBLE);
  
      buttonPlay = (Button) findViewById(R.id.buttonPlay);
      buttonPlay.setOnClickListener(this);
  
      buttonStopPlay = (Button) findViewById(R.id.buttonStopPlay);
      buttonStopPlay.setEnabled(false);
      buttonStopPlay.setOnClickListener(this);
  
  }
  
  public void onClick(View v) {
      if (v == buttonPlay) {
          startPlaying();
      } else if (v == buttonStopPlay) {
          stopPlaying();
  
      }
  }
  
  private void startPlaying() {
      buttonStopPlay.setEnabled(true);
      buttonPlay.setEnabled(false);
  
      playSeekBar.setVisibility(View.VISIBLE);
  
      player.prepareAsync();
  
      player.setOnPreparedListener(new OnPreparedListener() {
  
          public void onPrepared(MediaPlayer mp) {
              player.start();
          }
      });
  
  }
  
  private void stopPlaying() {
      if (player.isPlaying()) {
          player.stop();
          player.release();
          initializeMediaPlayer();
      }
  
      buttonPlay.setEnabled(true);
      buttonStopPlay.setEnabled(false);
      playSeekBar.setVisibility(View.INVISIBLE);
  
  }
  
  private void initializeMediaPlayer() {
      player = new MediaPlayer();
      try {
          player.setDataSource(RADIO_STATION_URL);
      } catch (IllegalArgumentException e) {
          e.printStackTrace();
      } catch (IllegalStateException e) {
          e.printStackTrace();
      } catch (IOException e) {
          e.printStackTrace();
      }
  
      player.setOnBufferingUpdateListener(new OnBufferingUpdateListener() {
  
          public void onBufferingUpdate(MediaPlayer mp, int percent) {
              playSeekBar.setSecondaryProgress(percent);
              Log.i("Buffering", "" + percent);
          }
      });
  }
  
  @Override
  protected void onPause() {
      super.onPause();
  
  
  }
  
  
  };
  </code></pre>
  
  <h3>Styles.xml on res/values</h3>
  
  <pre><code>&lt;resources&gt;
  
  &lt;!--
      Base application theme, dependent on API level. This theme is replaced
      by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
  --&gt;
  &lt;style name="AppBaseTheme" parent="@android:style/Theme.Black"&gt;
      &lt;!--
          Theme customizations available in newer API levels can go in
          res/values-vXX/styles.xml, while customizations related to
          backward-compatibility can go here.
      --&gt;
  &lt;/style&gt;
  
  &lt;!-- Application theme. --&gt;
  &lt;style name="AppTheme" parent="AppBaseTheme"&gt;
      &lt;!-- All customizations that are NOT specific to a particular 
           API-level can go here. --&gt;
  &lt;/style&gt;
  
  &lt;/resources&gt;
  </code></pre>
  
  <p>I was trying to follow this guide -> <a href="http://android-developers.blogspot.gr/2014/10/appcompat-v21-material-design-for-pre.html" rel="nofollow">http://android-developers.blogspot.gr/2014/10/appcompat-v21-material-design-for-pre.html</a> but I'm blocked after the first point, the extension of activity into <code>ActionBarActivity</code> (done)...
  Can I have some help? I only want to apply Material Design (black) to my app.. Someone can help me?
  I'm a bit new in this part of android, so, be very detailed.</p>