package com.example.cmknowledgegraph;

import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.ImageButton;

import androidx.fragment.app.Fragment;

public class SearchContent extends Fragment {


    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        return inflater.inflate( R.layout.activity_search, container, false );  //要加载的layout文件
    }

    public void onActivityCreated(Bundle savedInstanceState) {
            // TODO Auto-generated method stub
         	super.onActivityCreated(savedInstanceState);
         	ImageButton search_btn = (ImageButton) getActivity().findViewById(R.id.search_btn);
            search_btn.setOnClickListener(new View.OnClickListener() {
         	        public void onClick(View v) {
         	            //查找逻辑
                }
            });
    }
}
