// Path: library-lis/src/main/java/com/cocolover2/lis/LISConstant.java
// public class LISConstant {
// 
//     public static final String ALL_IMG_BUCKET = "所有图片";
//     public static final String ACTION_PRE = "com.cocolover2.lis.ACTION_preview";
//     public static final String CATEGORY_SUFFIX = ".category.PREVIEW";
// //    public static final String FLAG_PRE_SELECTED_IMGS = "pre_selected_imgs";
//     //所要预览的图片的集合
//     public static final String PRE_IMG_DATAS = "preview_imgs";
//     //预览图片的起始位置
//     public static final String PRE_IMG_START_POSITION = "preview_start_img_position";
// }
// 
// Path: library-lis/src/main/java/com/cocolover2/lis/interf/OnSelectResultListener.java
// public interface OnSelectResultListener {
//     void onSelectImgs(int selectedCount);
// }


import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import com.cocolover2.lis.LISConstant;
import com.cocolover2.lis.interf.OnSelectResultListener;
import com.cocolover2.lis.R;
        initPreBtn(selectedCount);
    }

    private void initPreBtn(int selectedCount) {
        if (selectedCount > 0) {
            preBtn.setText("预览(" + selectedCount + ")");
            preBtn.setEnabled(true);
            preBtn.setTextColor(getResources().getColor(android.R.color.white));
        } else {
            preBtn.setText("预览");
            preBtn.setEnabled(false);
            preBtn.setTextColor(getResources().getColor(R.color.dark_gray));
        }
    }

    @Override
    public void onBackPressed() {
        clearSelectedImgs();
        super.onBackPressed();
    }

    @Override
    public void onClick(View v) {
        final int id = v.getId();
        if (id == R.id.lis_imglist_bottom_bucket_btn) {
            if (isPopShow())
                hidePop();
            else
                showPop();
        } else if (id == R.id.lis_imglist_bottom_pre_btn) {
// Path: library-lis/src/main/java/com/cocolover2/lis/LISConstant.java
// public class LISConstant {
// 
//     public static final String ALL_IMG_BUCKET = "所有图片";
//     public static final String ACTION_PRE = "com.cocolover2.lis.ACTION_preview";
//     public static final String CATEGORY_SUFFIX = ".category.PREVIEW";
// //    public static final String FLAG_PRE_SELECTED_IMGS = "pre_selected_imgs";
//     //所要预览的图片的集合
//     public static final String PRE_IMG_DATAS = "preview_imgs";
//     //预览图片的起始位置
//     public static final String PRE_IMG_START_POSITION = "preview_start_img_position";
// }
// 
// Path: library-lis/src/main/java/com/cocolover2/lis/interf/OnSelectResultListener.java
// public interface OnSelectResultListener {
//     void onSelectImgs(int selectedCount);
// }


// Path: library-lis/src/main/java/com/cocolover2/lis/activity/LisSimpleListImgsActivity.java
import android.content.Intent;
import android.os.Bundle;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import com.cocolover2.lis.LISConstant;
import com.cocolover2.lis.interf.OnSelectResultListener;
import com.cocolover2.lis.R;

        initPreBtn(selectedCount);
    }

    private void initPreBtn(int selectedCount) {
        if (selectedCount > 0) {
            preBtn.setText("预览(" + selectedCount + ")");
            preBtn.setEnabled(true);
            preBtn.setTextColor(getResources().getColor(android.R.color.white));
        } else {
            preBtn.setText("预览");
            preBtn.setEnabled(false);
            preBtn.setTextColor(getResources().getColor(R.color.dark_gray));
        }
    }

    @Override
    public void onBackPressed() {
        clearSelectedImgs();
        super.onBackPressed();
    }

    @Override
    public void onClick(View v) {
        final int id = v.getId();
        if (id == R.id.lis_imglist_bottom_bucket_btn) {
            if (isPopShow())
                hidePop();
            else
                showPop();
        } else if (id == R.id.lis_imglist_bottom_pre_btn) {
            Intent intent = new Intent(LISConstant.ACTION_PRE);