title: Minimize the listview row into a single line
body: <p>I'm using listview to show the messages from the database..when i add a message it 
  takes all the string and showing on the listview..here is my xml file and java..
  I need to get the message in a singline per rows with '...'. I researched for this question and i found,type
       android:singleLine="true" in textview,but i don't know what they mean 'in textview'.becauz i'm using listview.please help.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"
      android:background="@drawable/wave" &gt;
  
      &lt;ListView
          android:id="@+id/list"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_alignParentLeft="true"
          android:layout_below="@+id/SearchMessageExit"
          android:focusableInTouchMode="true"
           &gt;
  
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>message.java</p>
  
  <pre><code>    public void detailsOfMessage(){
          try{
              Database_message info = new Database_message(this);
              String data = info.getData();
              info.close();
  
              if(data.equals(""))
              {
                  Toast.makeText(getApplicationContext(), "Empty Message", Toast.LENGTH_LONG).show();
              }
  
  
              StringTokenizer token = new StringTokenizer(data,"\t");
              int rows = token.countTokens();
  
              classes = new String[rows];
  
              int i=0;
  
              while (token.hasMoreTokens())
              {
                  classes[i]=token.nextToken();
                  i++;
              }
  
  
          listView = (ListView) findViewById(R.id.list);
          listView.setOnItemClickListener(this);
          listView.setOnLongClickListener(this);
  
          inAdapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_list_item_1,0);
          listView.setAdapter(inAdapter);
  
  
          for (int r = 0; r &lt; classes.length; r++) {
              inAdapter.add(classes[r]);
          }
          }catch(Exception e){
  
              Toast.makeText(getApplicationContext(), "Empty Message", Toast.LENGTH_LONG).show();
          }
      }   
  </code></pre>