public void changeItemTextAtPosition(int itemIndex,String newText){
  if (itemIndex < 0 || itemIndex > spaceItems.size()) {
    throwArrayIndexOutOfBoundsException(itemIndex);
  }
 else {
    SpaceItem spaceItem=spaceItems.get(itemIndex);
    RelativeLayout textAndIconContainer=(RelativeLayout)spaceItemList.get(itemIndex);
    TextView spaceItemIcon=(TextView)textAndIconContainer.findViewById(R.id.space_text);
    spaceItemIcon.setText(newText);
    spaceItem.setItemName(newText);
    changedItemAndIconHashMap.put(itemIndex,spaceItem);
  }
}

public void changeItemTextAtPosition ( int itemIndex , String newText ) { if ( itemIndex < 0 || itemIndex > spaceItems . size ( ) ) { throwArrayIndexOutOfBoundsException ( itemIndex ) ; } else { SpaceItem spaceItem = spaceItems . get ( itemIndex ) ; RelativeLayout textAndIconContainer = ( RelativeLayout ) spaceItemList . get ( itemIndex ) ; TextView spaceItemIcon = ( TextView ) textAndIconContainer . findViewById ( R . id . space_text ) ; spaceItemIcon . setText ( newText ) ; spaceItem . setItemName ( newText ) ; changedItemAndIconHashMap . put ( itemIndex , spaceItem ) ; } }
change item text if space navigation already set up
