@@ -0,0 +1,2119 @@
+package com.baurine.instamaterial.ui.view;%0A%0Aimport android.content.Context;%0Aimport android.graphics.Color;%0Aimport android.view.LayoutInflater;%0Aimport android.view.View;%0Aimport android.widget.ImageView;%0Aimport android.widget.ListView;%0A%0Aimport com.baurine.instamaterial.R;%0Aimport com.baurine.instamaterial.ui.adapter.DrawerMenuAdapter;%0Aimport com.squareup.picasso.Picasso;%0A%0Apublic class DrawerMenuView extends ListView implements View.OnClickListener %7B%0A%0A    private OnDrawerClickListener mListener;%0A%0A    public DrawerMenuView(Context context) %7B%0A        super(context);%0A        init();%0A    %7D%0A%0A    private void init() %7B%0A        setChoiceMode(CHOICE_MODE_SINGLE);%0A        setDivider(getResources().getDrawable(android.R.color.transparent));%0A        setDividerHeight(0);%0A        setBackgroundColor(Color.WHITE);%0A%0A        setupHeader();%0A        setupAdapter();%0A    %7D%0A%0A    private void setupHeader() %7B%0A        setHeaderDividersEnabled(true);%0A        View headerView = LayoutInflater.from(getContext()).inflate(R.layout.item_drawer_header, null);%0A        int avatarSize = getResources().getDimensionPixelSize(R.dimen.drawer_avatar_size);%0A        String avatarUrl = getResources().getString(R.string.user_profile_photo);%0A        ImageView avatarView = (ImageView) headerView.findViewById(R.id.iv_avatar);%0A        Picasso.with(getContext())%0A                .load(avatarUrl)%0A                .placeholder(R.drawable.img_circle_placeholder)%0A                .resize(avatarSize, avatarSize)%0A                .centerCrop()%0A                .transform(new CircleTransformation())%0A                .into(avatarView);%0A%0A        addHeaderView(headerView);%0A        headerView.setOnClickListener(this);%0A    %7D%0A%0A    private void setupAdapter() %7B%0A        setAdapter(new DrawerMenuAdapter(getContext()));%0A    %7D%0A%0A    @Override%0A    public void onClick(View v) %7B%0A        if (mListener != null) %7B%0A            mListener.onHeaderClick(v);%0A        %7D%0A    %7D%0A%0A    public void setOnDrawerClickListener(OnDrawerClickListener lister) %7B%0A        mListener = lister;%0A    %7D%0A%0A    public interface OnDrawerClickListener %7B%0A        void onHeaderClick(View view);%0A    %7D%0A%7D%0A

add DrawerMenuView