Back to project page SmartEPW_Android_App.
The source code is released under:
MIT License
If you think the Android project SmartEPW_Android_App listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.android.SmartEPW; /*from w w w . j a va 2 s . c o m*/ import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import com.example.android.SmartEPW.R; public class Home_Fragment extends Fragment { private View parentView; private ResideMenu resideMenu; @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { parentView = inflater.inflate(R.layout.home, container, false); setUpViews(); return parentView; } private void setUpViews() { MenuActivity parentActivity = (MenuActivity) getActivity(); resideMenu = parentActivity.getResideMenu(); parentView.findViewById(R.id.btn_open_menu).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { resideMenu.openMenu(); } }); // add gesture operation's ignored views FrameLayout ignored_view = (FrameLayout) parentView.findViewById(R.id.ignored_view); resideMenu.addIgnoredView(ignored_view); } }