List of usage examples for android.view LayoutInflater inflate
public View inflate(XmlPullParser parser, @Nullable ViewGroup root, boolean attachToRoot)
From source file:at.bitfire.davdroid.syncadapter.QueryServerDialogFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View v = inflater.inflate(R.layout.query_server, container, false); return v;/* w w w . ja v a 2 s.c om*/ }
From source file:com.eugene.fithealthmaingit.UI.NavFragments.FragmentWeight.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { v = inflater.inflate(R.layout.fragment_weight, container, false); findViews();//w ww . j av a2 s .co m chart(); return v; }
From source file:com.mercandalli.android.apps.files.admin.ServerDataFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { final View rootView = inflater.inflate(R.layout.fragment_admin_data, container, false); circularProgressBar = (ProgressBar) rootView.findViewById(R.id.circularProgressBar); circle = rootView.findViewById(R.id.circle); recyclerView = (RecyclerView) rootView.findViewById(R.id.my_recycler_view); recyclerView.setHasFixedSize(true);// w w w . ja v a2 s . co m mLayoutManager = new LinearLayoutManager(getActivity()); recyclerView.setLayoutManager(mLayoutManager); rootView.findViewById(R.id.circle).setVisibility(View.GONE); swipeRefreshLayout = (SwipeRefreshLayout) rootView.findViewById(R.id.swipeRefreshLayout); swipeRefreshLayout.setColorSchemeResources(android.R.color.holo_blue_bright, android.R.color.holo_green_light, android.R.color.holo_orange_light, android.R.color.holo_red_light); swipeRefreshLayout.setOnRefreshListener(new OnRefreshListener() { @Override public void onRefresh() { refreshList(); } }); refreshList(); return rootView; }
From source file:gov.in.bloomington.georeporter.fragments.SavedReportViewFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_report_saved, container, false); }
From source file:net.naonedbus.card.impl.TraficCard.java
private View createView(final LayoutInflater inflater, final ViewGroup root, final InfoTrafic infoTrafic) { final View view = inflater.inflate(R.layout.card_item_trafic_ligne, root, false); final TextView itemTitle = (TextView) view.findViewById(R.id.itemTitle); final TextView itemDate = (TextView) view.findViewById(R.id.itemDate); itemTitle.setText(infoTrafic.getIntitule()); itemDate.setText(infoTrafic.getDateFormated()); if (isCurrent(infoTrafic)) { itemDate.setCompoundDrawablesWithIntrinsicBounds(R.drawable.info_trafic_on, 0, 0, 0); } else {/* w ww. j a v a2s . c o m*/ itemDate.setCompoundDrawablesWithIntrinsicBounds(R.drawable.info_trafic_off, 0, 0, 0); } view.setOnClickListener(new OnClickListener() { @Override public void onClick(final View v) { final Bundle bundle = new Bundle(); bundle.putParcelable(InfoTraficDetailFragment.PARAM_INFO_TRAFIC, infoTrafic); final DialogFragment dialogFragment = new InfoTraficDetailDialogFragment(); dialogFragment.setArguments(bundle); dialogFragment.show(getFragmentManager(), "InfoTraficDetailDialogFragment"); } }); return view; }
From source file:com.royclarkson.springagram.PhotoAddFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_photo_add, container, false); }
From source file:com.considine.letseat.DistanceListFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { View view = inflater.inflate(R.layout.fragment_layout, container, false); /*String[] shakespeare = getResources().getStringArray(R.array.titles); //from w ww .jav a 2s. c o m ArrayAdapter<String> adapter = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_list_item_1, shakespeare); setListAdapter(adapter);*/ return view; // super.onCreateView(inflater, container, // savedInstanceState); }
From source file:com.example.pyrkesa.frag.ScenarioFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { rootView = inflater.inflate(R.layout.scenario_fragment, container, false); //userLayout = (Layout)getView().findViewById(R.id.user_layout); scenarioList = (ListView) rootView.findViewById(R.id.lt_scenario); scenarioName = getResources().getStringArray(R.array.user_list_item); // load scenarioIcon = getResources().obtainTypedArray(R.array.scenarioIcons);// load icons from scenarioIconDel = getResources().obtainTypedArray(R.array.userIcons1); scenarioItems = new ArrayList<ScenarioItem>(); // adding user items //new LoadAllScenario().execute(); return rootView; }
From source file:com.royclarkson.springagram.GalleryAddFragment.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_gallery_add, container, false); Button button = (Button) view.findViewById(R.id.button_save); button.setOnClickListener(this); return view;/* www. ja va2 s .co m*/ }
From source file:com.chaosinmotion.securechat.fragments.OnboardingCreateAccount.java
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment return inflater.inflate(R.layout.fragment_onboarding_create_account, container, false); }