I try using AutoComplexEdittext in Fragment but I do not know why it's not working (Don't have logcat, just not show sugesstion). Here is my xml file:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">
    <AutoCompleteTextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text=""
        android:id="@+id/autoCompleteTextView"
        android:completionThreshold="1"
    />
</RelativeLayout>
Here is my AboutFragment:
public class AboutFragment extends Fragment implements TextWatcher{
    private AutoCompleteTextView atv_test;
    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        atv_test = (AutoCompleteTextView)getView().findViewById(R.id.autoCompleteTextView);
        atv_test.addTextChangedListener(this);
        String a[] ={"Abhc","GA","AAA","DDSDS","DDSADSa","dsadsadsahkaz"};
        ArrayAdapter<String> arr = new ArrayAdapter<String>(getView().getContext(),android.R.layout.simple_list_item_1,a);
        atv_test.setAdapter(arr);
        //JSonCityAsyncTask j = new JSonCityAsyncTask();
        //j.execute();
    }
    public void messages(String msg) {
        new AlertDialog.Builder(getActivity()).setTitle("Notification").setMessage(msg).setNeutralButton("OK", new DialogInterface.OnClickListener() {
            @Override
            public void onClick(DialogInterface dialog, int which) {
            }
        }).show();
    }
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View rootView = inflater.inflate(R.layout.fragment_about, container, false);
        // Inflate the layout for this fragment
        return rootView;
    }
    @Override
    public void onAttach(Activity activity) {
        super.onAttach(activity);
    }
    @Override
    public void onDetach() {
        super.onDetach();
    }
    @Override
    public void beforeTextChanged(CharSequence s, int start, int count, int after) {
    }
    @Override
    public void onTextChanged(CharSequence s, int start, int before, int count) {
    }
    @Override
    public void afterTextChanged(Editable s) {
    }
}
Please help me know what is my wrong. Thanks you for reading my question and sorry if this question is stupid.
 
    