title: Alternative way for implementing a slidingdrawer that has now been deprecated since api 17
body: <p>In my app I have a sliding drawer with image buttons in them and when clicked it displays the image description and info.  So basically I am only using one XML file and one Java file for this.  (But I have noticed that adding more imagebuttons and mages to display it takes a while to load).  And now that since API 17 is deprecating the sliding drawer leaves me a bit worried for future downloads of the app. Now my question is, is there a alternative way to achieve this without using sliding drawer or spinner. I don't really want to create a xml and java file for each image (I'll end up with 100+ xml's and java's)
  Here is my code that I have at the moment.</p>
  
  <p>XML:</p>
  
  <pre><code>&lt;RelativeLayout 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"&gt;
  
  &lt;ScrollView 
     android:layout_width="wrap_content"
     android:layout_height="wrap_content"&gt;
     &lt;RelativeLayout 
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"&gt; 
  
  &lt;ImageView 
      android:id="@+id/iM1"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:scaleType="fitStart"
      android:adjustViewBounds="true"/&gt;
  
  &lt;/RelativeLayout&gt;
  &lt;/ScrollView&gt;
  
  &lt;SlidingDrawer
      android:id="@+id/sD1"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:layout_alignParentTop="true"
      android:layout_centerHorizontal="true"
      android:content="@+id/content"
      android:handle="@+id/handle"&gt;
  
      &lt;Button
          android:id="@+id/handle"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:background="@drawable/icon_1" /&gt;
  
      &lt;RelativeLayout
          android:id="@+id/content"
          android:layout_width="match_parent"
          android:layout_height="match_parent" 
          android:background="@drawable/icon_background1"&gt;
  
          &lt;ScrollView
              android:layout_width="match_parent"
              android:layout_height="match_parent" &gt;
  
              &lt;RelativeLayout
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent" &gt;
  
                  &lt;Button
                      android:id="@+id/asample"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:background="@drawable/imageicon1"/&gt;
                     .....
  </code></pre>
  
  <p>And Java:</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      requestWindowFeature(Window.FEATURE_NO_TITLE); 
      this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); 
      setContentView(R.layout.campsites);
      setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
      final SlidingDrawer slider = (SlidingDrawer) findViewById(R.id.sD1);
      final ImageView imageView = (ImageView) findViewById(R.id.iM1);
      slider.animateOpen();
  
      Button next = (Button) findViewById(R.id.asample);
      Button next1 = (Button) findViewById(R.id.bsample);
      ..........
  
      next.setOnClickListener(new View.OnClickListener() {
  
          public void onClick(View view) {
              imageView.setImageDrawable(getResources().getDrawable(R.drawable.asample));
              slider.animateClose();
          } 
      });
      next1.setOnClickListener(new View.OnClickListener() {
  
          public void onClick(View view) {
              imageView.setImageDrawable(getResources().getDrawable(R.drawable.bsample));
              slider.animateClose();
          } 
      });
      ............
  </code></pre>
  
  <p>Can anyone please help or have a suggestion on what to do?</p>