ActionSheet.java package com.epoint.showcase.actys;import android.os.Bundle;import android.view.View;import com.epoint.custom.ActionSheet;import com.epoint.frame.R;import com.epoint.frame.core.controls.EpointToast;import com.epoint.mobileoa
package com.epoint.showcase.actys; import android.os.Bundle; import android.view.View; import com.epoint.custom.ActionSheet; import com.epoint.frame.R; import com.epoint.frame.core.controls.EpointToast; import com.epoint.mobileoa.actys.other.MOABaseActivity; public class ShowCaseActivity extends MOABaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setLayout(R.layout.show_case_activity); getActivity().setTheme(R.style.ActionSheetStyleIOS7); // 首先添加主题 getNbBar().nbRight.setVisibility(View.VISIBLE); getNbBar().nbRight.setImageResource(R.drawable.frm_nav_bulb); getNbBar().nbRight.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { ActionSheet menuView = new ActionSheet(getActivity()); menuView.setCancelButtonTitle("取消");// before add items menuView.addItems("回复", "转发"); menuView.setItemClickListener(new ActionSheet.MenuItemClickListener() { @Override public void onItemClick(int index) { EpointToast.showShort(getContext(), "select " + index + ""); } }); menuView.setCancelableOnTouchMenuOutside(true); menuView.showMenu(); } }); } }