@Override
 protected void handleTitleRightAction() {
   super.handleTitleRightAction();
   Log.d(TAG, "===handleTitleRightAction===");
   BusProvider.getInstance()
       .post(new ShowWarningEvent(this.category, this.adapter.getDetailData()));
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   holdOrderInfo = getArguments().getParcelable(INTENT_HOLD_ORDER_INFO);
   goodsConfig = TradeHelper.getGoodsConfig(getActivity(), holdOrderInfo.id);
   goodsInfo = TradeHelper.getGoodsInfo(getActivity(), holdOrderInfo.id);
 }
 @Override
 public void onViewCreated(View view, Bundle savedInstanceState) {
   super.onViewCreated(view, savedInstanceState);
   flowProfitView.setTextColor(
       getResources().getColor(TradeUtil.getTextColorOfFloatProfitLoss(holdOrderInfo.oProfit)));
   flowProfitView.setText(
       TradeUtil.format(holdOrderInfo.oProfit, TradeConstants.AMOUNT_SCALE) + "");
   holdView.setText(
       goodsInfo == null
           ? (holdOrderInfo.hpPrice + "")
           : TradeUtil.formatExchangePrice(holdOrderInfo.hpPrice, goodsInfo.minPriceUnit));
   closeView.setText(
       goodsInfo == null
           ? (holdOrderInfo.cPrice + "")
           : TradeUtil.formatExchangePrice(holdOrderInfo.cPrice, goodsInfo.minPriceUnit));
   if (goodsInfo != null) {
     nameView.setText(goodsInfo.name);
   }
   orderIdView.setText(holdOrderInfo.hpid);
   rangeView.setText("手数范围1-" + holdOrderInfo.qty);
   numberTextView.setText(holdOrderInfo.qty + "");
   if (getActivity() != null && getActivity().getCurrentFocus() == numberEditView) {
     numberEditView.setSelection(numberEditView.getText().length());
   }
 }
 @Override
 public void onStart() {
   super.onStart();
   Category category = CategoryHelper.getCategoryByNickname(getActivity(), holdOrderInfo.id);
   if (category != null) {
     TradeMobClickHelper.onMarketClosePage(getActivity(), category.id, holdOrderInfo.dir);
   }
 }
  @Nullable
  @Override
  public View onCreateView(
      LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
    super.onCreateView(inflater, container, savedInstanceState);
    final View view = inflater.inflate(R.layout.fragment_quote_detail, container, false);
    ButterKnife.inject(this, view);

    setupUIData(view);
    startChartFragment();
    return view;
  }
  @Override
  public void onResume() {
    super.onResume();
    if (!QuoteUtil.checkHasPermission(getActivity(), this.category.id)) {
      return;
    }

    Log.d(TAG, "===subscribe onResume===");
    List<Category> categories = Lists.newArrayList(this.category);
    MessageProxy.getInstance().subscribe(categories, this);
    ChartProxy.setTarget(this);
    showGuide();
  }
  @Override
  public void onConfigurationChanged(Configuration newConfig) {
    super.onConfigurationChanged(newConfig);

    changeViewLayout();
  }
 @Override
 public void onDestroyView() {
   Log.d(TAG, "===onDestroyView===");
   super.onDestroyView();
   ButterKnife.reset(this);
 }
 @Override
 public void onPause() {
   super.onPause();
   MessageProxy.getInstance().unsubscribe();
   ChartProxy.removeTarget(this);
 }
 @Override
 public void onCreate(Bundle savedInstanceState) {
   super.onCreate(savedInstanceState);
   getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR);
   FragmentArgs.inject(this); // read @Arg fields
 }
 @Override
 public void onResume() {
   super.onResume();
   subscribeQuoteData();
 }
 @Override
 public void onPause() {
   super.onPause();
   MessageProxy.getInstance().unsubscribe();
 }