title: Redesign the default listview - add additional items like font color
body: <p>I am trying to customize the default listview in the XML.
  In particular, I am trying to do the following:
  Center the item in the list where android:gravity="center" simply does not work
  Change the font color of the item of the list (android:textColor="#ffffff" simply does not work</p>
  
  <p>Below is my listView</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="fill_parent"
      android:layout_height="fill_parent"
      android:orientation="vertical" &gt;
  
      &lt;ListView
          android:id="@+id/userlistview"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:background="@drawable/bac_blue"
  
          android:textColor="#ffffff" &gt;
  
      &lt;/ListView&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Below is the line of code that refers to the layout
              usersListView = (ListView)getActivity().findViewById(R.id.userlistview);</p>
  
  <p>Kindly advise. All the best</p>
  
  <p>Update
  Activity code</p>
  
  <pre><code>public class Fragment1 extends Fragment {
  
      private String currentUserId;
      private ArrayAdapter&lt;String&gt; namesArrayAdapter;
      private ArrayList&lt;String&gt; names;
      private ListView usersListView;
      private Button logoutButton;
      String userGender = ParseUser.getCurrentUser().getString("Gender");
      String activityName = ParseUser.getCurrentUser().getString("ActivityName");
      Number maxDistance = ParseUser.getCurrentUser().getNumber("Maximum_Distance");
      String userLookingGender = ParseUser.getCurrentUser().getString("Looking_Gender");
      Number minimumAge = ParseUser.getCurrentUser().getNumber("Minimum_Age");
      Number maximumAge = ParseUser.getCurrentUser().getNumber("Maximum_Age");
      Number userage = ParseUser.getCurrentUser().getNumber("Age");
  
      @Override
      public void onActivityCreated(Bundle savedInstanceState) {
          super.onActivityCreated(savedInstanceState);
  
          setConversationsList();
  
      }
  
      @Override
      public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {
          View view = inflater.inflate(R.layout.fragment1_layout, container, false);
  
  
          return view;
      }
  
  private void setConversationsList() {
      currentUserId = ParseUser.getCurrentUser().getObjectId();
      names = new ArrayList&lt;String&gt;();
      // String userActivitySelectionName = null;
  
      ParseQuery&lt;ParseUser&gt; query = ParseUser.getQuery();
  
      //  query.whereEqualTo("ActivityName",userActivitySelectionName);
  
      query.whereNotEqualTo("objectId", ParseUser.getCurrentUser().getObjectId());
      // users with Gender = currentUser.Looking_Gender
      query.whereEqualTo("Gender", userLookingGender);
      // users with Looking_Gender = currentUser.Gender
      query.whereEqualTo("Looking_Gender", userGender);
      query.setLimit(1);
      query.whereEqualTo("ActivityName", activityName);
      //query.whereGreaterThanOrEqualTo("Minimum_Age", minimumAge).whereGreaterThanOrEqualTo("Age", userage);
      //query.whereLessThanOrEqualTo("Maximum_Age", maximumAge).whereLessThanOrEqualTo("Age", userage);
      //  query.whereWithinKilometers("Maximum_Distance", point, maxDistance)
  
  
  
  
  
      query.findInBackground(new FindCallback&lt;ParseUser&gt;() {
  
          public void done(List&lt;ParseUser&gt; userList, ParseException e) {
              if (e == null) {
                  for (int i=0; i&lt;userList.size(); i++) {
                      names.add(userList.get(i).get("Name").toString());
                      names.add(userList.get(i).get("Headline").toString());
                      names.add(userList.get(i).get("Age").toString());
  
                      //       names.add(userList.get(i).getParseObject("ProfilePicture").;
  
  
                  }
  
  
  
  
                  usersListView = (ListView)getActivity().findViewById(R.id.userlistview);
                  namesArrayAdapter =
                          new ArrayAdapter&lt;String&gt;(getActivity().getApplicationContext(),
                                  R.layout.user_list_item, names);
                  usersListView.setAdapter(namesArrayAdapter);
  
                  usersListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
                      @Override
                      public void onItemClick(AdapterView&lt;?&gt; a, View v, int i, long l) {
                          openConversation(names, i);
                      }
                  });
  
              } else {
                  Toast.makeText(getActivity().getApplicationContext(),
                          "Error loading user list",
                          Toast.LENGTH_LONG).show();
              }
          }
      });
  }
  
  public void openConversation(ArrayList&lt;String&gt; names, int pos) {
      ParseQuery&lt;ParseUser&gt; query = ParseUser.getQuery();
      query.whereEqualTo("Name", names.get(pos));
      query.findInBackground(new FindCallback&lt;ParseUser&gt;() {
          public void done(List&lt;ParseUser&gt; user, ParseException e) {
              if (e == null) {
                  Intent intent = new Intent(getActivity().getApplicationContext(), MessagingActivity.class);
                  intent.putExtra("RECIPIENT_ID", user.get(0).getObjectId());
                  startActivity(intent);
              } else {
                  Toast.makeText(getActivity().getApplicationContext(),
                          "Error finding that user",
                          Toast.LENGTH_SHORT).show();
              }
          }
      });
  }
  }
  </code></pre>
  
  <p>User_liste_item</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@+id/userListItem"
      android:textColor="@color/very_dark_gray"
      android:padding="16dp"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:textSize="20sp" /&gt;
  </code></pre>