Search in sources :

Example 1 with IndexFastScrollRecyclerView

use of in.myinnos.alphabetsindexfastscrollrecycler.IndexFastScrollRecyclerView in project SeniorProject by 5731075221-PM.

the class ShowHospitalByOrder method onCreateView.

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_show_by_order, container, false);
    // searchView = (SearchView) view.findViewById(R.id.searchHospitalByOrder);
    // searchView.setIconifiedByDefault(false);
    // searchView.setIconified(false);
    // searchView.clearFocus();
    // searchView.setQueryHint("ค้นหา");
    // searchView.setOnQueryTextListener(this);
    recyclerView = (IndexFastScrollRecyclerView) view.findViewById(R.id.searchHospitalList);
    recyclerView.setAdapter(adapter);
    recyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL));
    recyclerView.setIndexBarColor("#f9f9f9");
    recyclerView.setIndexBarTextColor("#4d4d4d");
    recyclerView.setIndexBarHighLateTextVisibility(true);
    recyclerView.setIndexbarHighLateTextColor("#4cd29f");
    return view;
}
Also used : DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) SearchView(android.widget.SearchView) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView) View(android.view.View) IndexFastScrollRecyclerView(in.myinnos.alphabetsindexfastscrollrecycler.IndexFastScrollRecyclerView) Nullable(android.support.annotation.Nullable)

Example 2 with IndexFastScrollRecyclerView

use of in.myinnos.alphabetsindexfastscrollrecycler.IndexFastScrollRecyclerView in project SeniorProject by 5731075221-PM.

the class DiseaseListFragment method onCreateView.

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    View view = inflater.inflate(R.layout.fragment_disease_list, container, false);
    appBarLayout.setExpanded(true, true);
    recyclerView = (IndexFastScrollRecyclerView) view.findViewById(R.id.diseaseList);
    recyclerView.setAdapter(adapter);
    recyclerView.addItemDecoration(new DividerItemDecoration(getActivity(), DividerItemDecoration.VERTICAL));
    recyclerView.setIndexBarColor("#f9f9f9");
    recyclerView.setIndexBarTextColor("#4d4d4d");
    recyclerView.setIndexBarHighLateTextVisibility(true);
    recyclerView.setIndexbarHighLateTextColor("#4cd29f");
    return view;
}
Also used : DividerItemDecoration(android.support.v7.widget.DividerItemDecoration) ImageView(android.widget.ImageView) RecyclerView(android.support.v7.widget.RecyclerView) TextView(android.widget.TextView) View(android.view.View) IndexFastScrollRecyclerView(in.myinnos.alphabetsindexfastscrollrecycler.IndexFastScrollRecyclerView) Nullable(android.support.annotation.Nullable)

Aggregations

Nullable (android.support.annotation.Nullable)2 DividerItemDecoration (android.support.v7.widget.DividerItemDecoration)2 RecyclerView (android.support.v7.widget.RecyclerView)2 View (android.view.View)2 TextView (android.widget.TextView)2 IndexFastScrollRecyclerView (in.myinnos.alphabetsindexfastscrollrecycler.IndexFastScrollRecyclerView)2 ImageView (android.widget.ImageView)1 SearchView (android.widget.SearchView)1