package com.procleus.brime;

import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by Utkarsh on 07-07-2016.
 */
public class LabelsFragment extends Fragment{
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate(R.layout.labels_gragment, container, false);
    }
}

@@ -24,16 +24,48 @@
 ime;%0D%0A%0D%0A
+import android.content.Intent;%0D%0A
 import a
@@ -219,16 +219,117 @@
 wGroup;%0D
+%0Aimport android.widget.ArrayAdapter;%0D%0Aimport android.widget.Button;%0D%0Aimport android.widget.ListView;%0D
 %0A%0D%0A/**%0D%0A
@@ -347,14 +347,13 @@
 by U
-tkarsh
+jjwal
  on 
@@ -416,16 +416,143 @@
 agment%7B%0D
+%0A%0D%0A    private static ListView listView;%0D%0A    public static String%5B%5D labels = new String%5B%5D%7B%22Inspiration%22, %22Personal%22, %22Work%22%7D;%0D
 %0A    @Ov
@@ -755,15 +755,16 @@
     
-return 
+View v =
 infl
@@ -822,16 +822,608 @@
 alse);%0D%0A
+        Button addLabel = (Button) v.findViewById(R.id.add_label);%0D%0A        addLabel.setOnClickListener(new View.OnClickListener() %7B%0D%0A            @Override%0D%0A            public void onClick(View v) %7B%0D%0A                Intent intent = new Intent(getActivity(), AddLabel.class);%0D%0A                startActivity(intent);%0D%0A            %7D%0D%0A        %7D);%0D%0A        listView = (ListView)v.findViewById(R.id.listView);%0D%0A        ArrayAdapter%3CString%3E arrayAdapter = new ArrayAdapter%3C%3E(getContext(), android.R.layout.simple_list_item_1, labels);%0D%0A        listView.setAdapter(arrayAdapter);%0D%0A        return v;%0D%0A
     %7D%0D%0A%7D

Update LabelsFragment.java