private void arrowlistener() {
   int width = arrowicon.getMeasuredWidth();
   int height = arrowicon.getMeasuredHeight();
   LogUtils.D("onClick" + width + " " + height);
   Matrix matrix = new Matrix();
   count++;
   matrix.postRotate(180 * count, width / 2, height / 2);
   arrowicon.setImageMatrix(matrix);
   if (count % 2 != 0) {
     list_title.setVisibility(View.VISIBLE);
     list_content.setVisibility(View.VISIBLE);
     View view = (View) mViewPager.getParent();
     Bitmap bitmap =
         BitmapUtils.shot(
             getView(),
             (int) view.getX(),
             (int) view.getY(),
             mViewPager.getMeasuredWidth(),
             mViewPager.getMeasuredHeight());
     if (bitmap != null)
       list_content.setBackground(
           new BitmapDrawable(BitmapUtils.blurBitmap(bitmap, getActivity())));
     //                    list_content.setBackground(new
     // BitmapDrawable(BitmapUtils.compressBmpFromBmp(bitmap)));
     mItemHScrollView.setVisibility(View.GONE);
     mViewPager.setVisibility(View.GONE);
   } else {
     list_title.setVisibility(View.GONE);
     list_content.setVisibility(View.GONE);
     list_content.setBackground(null);
     mItemHScrollView.setVisibility(View.VISIBLE);
     mViewPager.setVisibility(View.VISIBLE);
   }
 }
 private void initScrollView(View root) {
   mItemHScrollView = (ItemHScrollView) root.findViewById(R.id.typeTab);
   RelativeLayout.LayoutParams params =
       (RelativeLayout.LayoutParams) mItemHScrollView.getLayoutParams();
   params.height = (int) (ScreenAdapter.getInstance(null).getHeadHeight() * 0.7f);
   mItemHScrollView.requestLayout();
   mItemHScrollView.setPositionOffset(0);
   mItemHScrollView.setOnItemClickListener(
       new ItemHScrollView.OnItemClickListener() {
         @Override
         public void onItemClick(ViewGroup parent, View view, int position) {
           mViewPager.setCurrentItem(position);
         }
       });
 }
 private void handleType(JSONArray result) {
   //        LogUtils.D(response.result.toString());
   fragmentList = new ArrayList<Fragment>();
   String[] typenames = new String[result.length()];
   for (int i = 0; i < result.length(); i++) {
     try {
       JSONObject jsonObject = (JSONObject) result.get(i);
       int typeid = jsonObject.getInt("ID");
       String typename = jsonObject.getString("typename");
       fragmentList.add(new ArticleListFragment(typeid, typename, i));
       typenames[i] = typename;
     } catch (JSONException e) {
       e.printStackTrace();
     }
   }
   FragmentActivity fragmentActivity = getActivity();
   mViewPager.setAdapter(
       new MyFragmentPagerAdapter(fragmentActivity.getSupportFragmentManager(), fragmentList));
   mViewPager.setCurrentItem(0);
   mItemHScrollView.setAdpater(new TabButtonAdapter(typenames));
   lanmu.setAdapter(new LanmuAdapter(typenames));
 }