// Path: WorldWeather/app/src/main/java/com/haringeymobile/ukweather/utils/ItemDecorationListDivider.java
// public class ItemDecorationListDivider extends RecyclerView.ItemDecoration {
//     private int divider;
// 
//     public ItemDecorationListDivider(int divider) {
//         this.divider = divider;
//     }
// 
//     @Override
//     public void getItemOffsets(Rect outRect, View view, RecyclerView parent,
//                                RecyclerView.State state) {
//         outRect.bottom = divider;
//         if (parent.getChildLayoutPosition(view) == 0)
//             outRect.top = divider;
//     }
// 
// }


import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.TextView;
import com.haringeymobile.ukweather.utils.ItemDecorationListDivider;
import java.util.ArrayList;
import java.util.List;
    }

    /**
     * Creates a new adapter to map city names to the list rows.
     */
    private void initialiseRecyclerViewAdapter() {
        Bundle args = getArguments();
        ArrayList<String> cityNames = args.getStringArrayList(CITY_NAME_LIST);
        adapter = new CityNameAdapter(cityNames);
    }

    @Override
    public void onDestroyView() {
        recyclerView.setAdapter(null);
        super.onDestroyView();
    }

    @Override
    public void onDetach() {
        super.onDetach();
        onCityNamesListItemClickedListener = null;
    }

    /**
     * A helper to implement the "view holder" design pattern.
     */
    private static class CityNameViewHolder extends RecyclerView.ViewHolder {
        private TextView cityNameTextView;

        public CityNameViewHolder(TextView view) {
// Path: WorldWeather/app/src/main/java/com/haringeymobile/ukweather/utils/ItemDecorationListDivider.java
// public class ItemDecorationListDivider extends RecyclerView.ItemDecoration {
//     private int divider;
// 
//     public ItemDecorationListDivider(int divider) {
//         this.divider = divider;
//     }
// 
//     @Override
//     public void getItemOffsets(Rect outRect, View view, RecyclerView parent,
//                                RecyclerView.State state) {
//         outRect.bottom = divider;
//         if (parent.getChildLayoutPosition(view) == 0)
//             outRect.top = divider;
//     }
// 
// }


// Path: WorldWeather/app/src/main/java/com/haringeymobile/ukweather/CitySearchResultsDialog.java
import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.TextView;
import com.haringeymobile.ukweather.utils.ItemDecorationListDivider;
import java.util.ArrayList;
import java.util.List;

    }

    /**
     * Creates a new adapter to map city names to the list rows.
     */
    private void initialiseRecyclerViewAdapter() {
        Bundle args = getArguments();
        ArrayList<String> cityNames = args.getStringArrayList(CITY_NAME_LIST);
        adapter = new CityNameAdapter(cityNames);
    }

    @Override
    public void onDestroyView() {
        recyclerView.setAdapter(null);
        super.onDestroyView();
    }

    @Override
    public void onDetach() {
        super.onDetach();
        onCityNamesListItemClickedListener = null;
    }

    /**
     * A helper to implement the "view holder" design pattern.
     */
    private static class CityNameViewHolder extends RecyclerView.ViewHolder {
        private TextView cityNameTextView;

        public CityNameViewHolder(TextView view) {
            super(view);