title: How to make card style menu in android
body: <p>I want to add card style in my app like this</p>
  
  <p><a href="https://i.stack.imgur.com/OMzV9.png" rel="nofollow"><img src="https://i.stack.imgur.com/OMzV9.png" alt="enter image description here"></a></p>
  
  <p>i use in my app mysql database so i need to make like this cards and put my data from database in it now i use ListView with this code</p>
  
  <pre><code>public void listAllItme() {
      ListAdapter lA = new listAdapter(listitems);
      listView.setAdapter(lA);
  
  
      listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView&lt;?&gt; parent, View view, int position, long id) {
  
                  Intent open = new Intent(R_arabic.this, rewaya_show.class);
                  open.putExtra("name", listitems.get(position).name);
                  open.putExtra("url", listitems.get(position).url);
                  open.putExtra("img", listitems.get(position).img);
                  open.putExtra("num", listitems.get(position).num);
  
                  startActivity(open);
  
  
              }
          }
      });
  
  }
  
  
  
  class listAdapter extends BaseAdapter {
      ArrayList&lt;listitem_gib&gt; lista = new ArrayList&lt;listitem_gib&gt;();
  
      public listAdapter(ArrayList&lt;listitem_gib&gt; lista) {
          this.lista = lista;
      }
  
      @Override
      public int getCount() {
          return lista.size();
      }
  
      @Override
      public Object getItem(int position) {
          return lista.get(position).name;
      }
  
      @Override
      public long getItemId(int position) {
          return position;
      }
  
      @Override
      public View getView(final int position, View convertView, ViewGroup parent) {
          LayoutInflater layoutInflater = getLayoutInflater();
          View view = layoutInflater.inflate(R.layout.row_item_gib, null);
  
          TextView name = (TextView) view.findViewById(R.id.textView_gib);
          ImageView img = (ImageView) view.findViewById(R.id.imageView_gib);
          TextView num = (TextView) view.findViewById(R.id.textView_gib2);
          TextView size = (TextView) view.findViewById(R.id.textView_gib3);
  
  
          name.setText(lista.get(position).name);
          num.setText(lista.get(position).num);
          size.setText(lista.get(position).size);
  
  
          Picasso.with(R_arabic.this).load("http://grassyhat.com/android/image/" + lista.get(position).img).into(img);
  
  
          return view;
      }
  }
  </code></pre>
  
  <p>first i want to know how i can make like this card style</p>
  
  <p>second how i can use this code with card menu not listview</p>
  
  <p>sorry im new in android and sorry for my bad english</p>