精华内容
下载资源
问答
  • 今天给大家介绍一个仿微信图片选择器:ImageSelector。ImageSelector支持图片的单选、限数量的多选和不限数量的多选。支持图片预览和图片文件夹的切换。在上一篇文章 《Android 实现一个仿微信图片选择器》 中我...

    今天给大家介绍一个仿微信的图片选择器:ImageSelector。ImageSelector支持图片的单选、限数量的多选和不限数量的多选。支持图片预览和图片文件夹的切换。在上一篇文章 《Android 实现一个仿微信的图片选择器》 中我介绍了ImageSelector的实现思路和分析了它的核心代码,有兴趣的同学可以看一下。完整的代码放在了GitHub,欢迎大家下载和使用。本篇文章为大家介绍ImageSelector的具体使用方式。

    先上效果图:

    9417eee6b884e51fd2a53057f36c6ab4.png

    1、引入依赖

    在Project的build.gradle在添加以下代码

    allprojects {

    repositories {

    ...

    maven { url 'https://jitpack.io' }

    }

    }

    在Module的build.gradle在添加以下代码

    compile 'com.github.donkingliang:ImageSelector:1.2.0'

    2、配置AndroidManifest.xml

    //储存卡的读取权限

    //图片选择Activity

    //去掉Activity的ActionBar。

    //使用者可以根据自己的项目去配置,不一定要这样写,只要不Activity的ActionBar去掉就可以了。

    android:theme="@style/Theme.AppCompat.Light.NoActionBar"

    //横竖屏切换处理。

    //如果要支持横竖屏切换,一定要加上这句,否则在切换横竖屏的时候会发生异常。

    android:configChanges="orientation|keyboardHidden|screenSize"/>

    //图片预览Activity

    android:theme="@style/Theme.AppCompat.Light.NoActionBar"

    android:configChanges="orientation|keyboardHidden|screenSize"/>

    //图片剪切Activity

    android:name="com.donkingliang.imageselector.ClipImageActivity"

    android:theme="@style/Theme.AppCompat.Light.NoActionBar" />

    3、调起图片选择器

    ImageSelector支持图片的单选、限数量的多选和不限数量的多选。在调起图片选择器的时候需要告诉选择器,是那种情况。为了方便大家的使用,我在项目中提供了一个工具类,可以方便地调起选择器。

    /**

    * 打开相册,选择图片,可多选,不限数量。

    *

    * @param activity

    * @param requestCode

    */

    public static void openPhoto(Activity activity, int requestCode) {

    openPhoto(activity, requestCode, false, 0);

    }

    /**

    * 打开相册,选择图片,可多选,限制最大的选择数量。

    *

    * @param activity

    * @param requestCode

    * @param isSingle 是否单选

    * @param maxSelectCount 图片的最大选择数量,小于等于0时,不限数量,isSingle为false时才有用。

    */

    public static void openPhoto(Activity activity, int requestCode,

    boolean isSingle, int maxSelectCount) {

    ImageSelectorActivity.openActivity(activity, requestCode, isSingle, maxSelectCount);

    /**

    * 打开相册,单选图片并剪裁。

    *

    * @param activity

    * @param requestCode

    */

    public static void openPhotoAndClip(Activity activity, int requestCode) {

    ClipImageActivity.openActivity(activity, requestCode);

    }

    工具类里只有简单的两个方法,至于里面的实现逻辑就直接交给了ImageSelectorActivity自己处理,调用者无需关心。调起选择器只需要简单的一句代码就可以了。

    //单选

    ImageSelectorUtils.openPhoto(MainActivity.this, REQUEST_CODE, true, 0);

    //限数量的多选(比喻最多9张)

    ImageSelectorUtils.openPhoto(MainActivity.this, REQUEST_CODE, false, 9);

    //不限数量的多选

    ImageSelectorUtils.openPhoto(MainActivity.this, REQUEST_CODE);

    //或者

    ImageSelectorUtils.openPhoto(MainActivity.this, REQUEST_CODE, false, 0);

    //单选并剪裁

    ImageSelectorUtils.openPhotoAndClip(MainActivity.this, REQUEST_CODE);

    REQUEST_CODE就是调用者自己定义的启动Activity时的requestCode,这个相信大家都能明白。

    4、接收选择器返回的数据

    在Activity的onActivityResult方法中接收选择器返回的数据。

    @Override

    protected void onActivityResult(int requestCode, int resultCode, Intent data) {

    super.onActivityResult(requestCode, resultCode, data);

    if (requestCode == REQUEST_CODE && data != null) {

    //获取选择器返回的数据

    ArrayList images = data.getStringArrayListExtra(

    ImageSelectorUtils.SELECT_RESULT);

    }

    }

    ImageSelectorUtils.SELECT_RESULT是接收数据的key。数据是以ArrayList的字符串数组返回的,就算是单选,返回的也是ArrayList数组,只不过这时候ArrayList只有一条数据而已。ArrayList里面的数据就是选中的图片的文件路径。

    ImageSelector的使用就介绍到这里了。

    最后给出ImageSelector的项目地址

    以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持脚本之家。

    展开全文
  • 微信小程序多选框选中后改变样式--自定义图片  原理:主要利用了js 的indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。 wxml 多选框 {{item.name}} wxss .radio-...

                    

    原理:主要利用了js 的indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。

    注意:image里面的图片自己加


    wxml

    <text>多选框</text>
    <checkbox-group class="radio-group" bindchange="checkboxChange">
    
    
      <label class="checkbox" wx:for="{{items}}" wx:key="unique">
    
        <checkbox value="{{item.value}}" hidden='true'/>{{item.name}}
    
          <block wx:if="{{item.checked}}">
             <image class='select' src='../images/se1.png'></image>
          </block>
    
          <block wx:else>
             <image class='select' src='../images/se2.png'></image>
          </block>
    
      </label>
      
    </checkbox-group>
    wxss

    .radio-group{
        font-size: 35rpx;
        display: flex;
        flex-direction: column;
      }
      .select{
        width: 100rpx;
        height: 50rpx;
    
      }
      .checkbox{
        height: 100rpx;
      }
    js

      data: {
       
        items: [
          { name: '中国', value: '0', checked:false },
          { name: '法国', value: '1', checked:false },
          { name: '美国', value: '2', checked: false },
          { name: '德国', value: '3', checked: false},
          { name: '英国', value: '4', checked: false },
          { name: '日本', value: '5', checked: false},
        ]   
      },
      checkboxChange: function (e) {
        console.log(e)
        var items = this.data.items;
        var checkArr = e.detail.value;
        for (var i = 0; i < items.length; i++) {
          if (checkArr.indexOf(i + "") != -1) {
            items[i].checked = true;
          } else {
            items[i].checked = false;
          }
        }
        this.setData({
          items: items
        })  
    
      }

    展开全文
  • 主要为大家详细介绍了微信小程序实现复选框效果,具有一定的参考价值,感兴趣的小伙伴们可以参考一下
  • 微信 weui框架代码汇总

    千次阅读 2016-11-10 10:06:08
    weui框架代码汇总: Button 按钮1 按钮2 确认3 确认4 按钮5 按钮6

    weui框架代码汇总:

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
            <link rel="stylesheet" href="css/weui.min.css" />
            <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
            <title></title>
        </head>
        <body>
            <div class="box" style="padding: 10px;">
                <h1 style="text-align: center;color: red;">Button</h1>
                <a href="javascript:;" class="weui_btn weui_btn_primary">按钮1</a>
                <a href="javascript:;" class="weui_btn weui_btn_disabled weui_btn_primary">按钮2</a>
                <a href="javascript:;" class="weui_btn weui_btn_warn">确认3</a>
                <a href="javascript:;" class="weui_btn weui_btn_disabled weui_btn_warn">确认4</a>
                <a href="javascript:;" class="weui_btn weui_btn_default">按钮5</a>
                <a href="javascript:;" class="weui_btn weui_btn_disabled weui_btn_default">按钮6</a>
                <a href="javascript:;" class="weui_btn weui_btn_plain_default">按钮7</a>
                <a href="javascript:;" class="weui_btn weui_btn_plain_primary">按钮8</a>
                <a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_primary">按钮9</a>
                <a href="javascript:;" class="weui_btn weui_btn_mini weui_btn_default">按钮10</a>
                <h1 style="text-align: center;color: red;">Cell</h1>
                <div class="weui_cells_title">带说明的列表项</div>
                <div class="weui_cells">
                    <div class="weui_cell">
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>标题文字</p>
                        </div>
                        <div class="weui_cell_ft">说明文字</div>
                    </div>
                </div>
                <div class="weui_cells_title">带图标、说明的列表项</div>
                <hr style="color: black;opacity: 0.5;" />
                <div class="weui_cells_title">带图标、说明的列表项</div>
                <div class="weui_cells">
                    <div class="weui_cell">
                        <div class="weui_cell_hd"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII="
                            alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>标题文字</p>
                        </div>
                        <div class="weui_cell_ft">说明文字</div>
                    </div>
                    <div class="weui_cell">
                        <div class="weui_cell_hd"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII="
                            alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>标题文字</p>
                        </div>
                        <div class="weui_cell_ft">说明文字</div>
                    </div>
                </div>
    
                <div class="weui_cells_title">带跳转的列表项</div>
                <div class="weui_cells weui_cells_access">
                    <a class="weui_cell" href="javascript:;">
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>cell standard</p>
                        </div>
                        <div class="weui_cell_ft">
                        </div>
                    </a>
                    <a class="weui_cell" href="javascript:;">
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>cell standard</p>
                        </div>
                        <div class="weui_cell_ft">
                        </div>
                    </a>
                </div>
    
                <div class="weui_cells_title">带说明、跳转的列表项</div>
                <div class="weui_cells weui_cells_access">
                    <a class="weui_cell" href="javascript:;">
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>cell standard</p>
                        </div>
                        <div class="weui_cell_ft">说明文字</div>
                    </a>
                    <a class="weui_cell" href="javascript:;">
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>cell standard</p>
                        </div>
                        <div class="weui_cell_ft">说明文字</div>
                    </a>
    
                </div>
    
                <div class="weui_cells_title">带图标、说明、跳转的列表项</div>
                <div class="weui_cells weui_cells_access">
    
                    <a class="weui_cell" href="javascript:;">
                        <div class="weui_cell_hd"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII="
                            alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>cell standard</p>
                        </div>
                        <div class="weui_cell_ft">说明文字</div>
                    </a>
                    <a class="weui_cell" href="javascript:;">
                        <div class="weui_cell_hd"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAuCAMAAABgZ9sFAAAAVFBMVEXx8fHMzMzr6+vn5+fv7+/t7e3d3d2+vr7W1tbHx8eysrKdnZ3p6enk5OTR0dG7u7u3t7ejo6PY2Njh4eHf39/T09PExMSvr6+goKCqqqqnp6e4uLgcLY/OAAAAnklEQVRIx+3RSRLDIAxE0QYhAbGZPNu5/z0zrXHiqiz5W72FqhqtVuuXAl3iOV7iPV/iSsAqZa9BS7YOmMXnNNX4TWGxRMn3R6SxRNgy0bzXOW8EBO8SAClsPdB3psqlvG+Lw7ONXg/pTld52BjgSSkA3PV2OOemjIDcZQWgVvONw60q7sIpR38EnHPSMDQ4MjDjLPozhAkGrVbr/z0ANjAF4AcbXmYAAAAASUVORK5CYII="
                            alt="" style="width:20px;margin-right:5px;display:block"></div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>cell standard</p>
                        </div>
                        <div class="weui_cell_ft">说明文字</div>
                    </a>
                </div>
    
                <div class="weui_cells_title">单选列表项</div>
                <div class="weui_cells weui_cells_radio">
                    <label class="weui_cell weui_check_label" for="x11">
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>cell standard</p>
                        </div>
                        <div class="weui_cell_ft">
                            <input type="radio" class="weui_check" name="radio1" id="x11">
                            <span class="weui_icon_checked"></span>
                        </div>
                    </label>
                    <label class="weui_cell weui_check_label" for="x12">
    
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>cell standard</p>
                        </div>
                        <div class="weui_cell_ft">
                            <input type="radio" name="radio1" class="weui_check" id="x12" checked="checked">
                            <span class="weui_icon_checked"></span>
                        </div>
                    </label>
                </div>
                <div class="weui_cells_title">复选列表项</div>
                <div class="weui_cells weui_cells_checkbox">
                    <label class="weui_cell weui_check_label" for="s11">
                        <div class="weui_cell_hd">
                            <input type="checkbox" class="weui_check" name="checkbox1" id="s11" checked="checked">
                            <i class="weui_icon_checked"></i>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>standard is dealt for u.1</p>
                        </div>
                    </label>
                    <label class="weui_cell weui_check_label" for="s12">
                        <div class="weui_cell_hd">
                            <input type="checkbox" name="checkbox1" class="weui_check" id="s12">
                            <i class="weui_icon_checked"></i>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>standard is dealicient for u.2</p>
                        </div>
                    </label>
                    <label class="weui_cell weui_check_label" for="s13">
                        <div class="weui_cell_hd">
                            <input type="checkbox" name="checkbox1" class="weui_check" id="s13">
                            <i class="weui_icon_checked"></i>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>standard is dealicient for u.3</p>
                        </div>
                    </label>
                    <label class="weui_cell weui_check_label" for="s14">
                        <div class="weui_cell_hd">
                            <input type="checkbox" name="checkbox1" class="weui_check" id="s14">
                            <i class="weui_icon_checked"></i>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <p>standard is dealicient for u.4</p>
                        </div>
                    </label>
                </div>
    
                <div class="weui_cells_title">开关1</div>
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell weui_cell_switch">
                        <div class="weui_cell_hd weui_cell_primary">标题文字1</div>
                        <div class="weui_cell_ft">
                            <input class="weui_switch" type="checkbox" />
                        </div>
                    </div>
                </div>
                <div class="weui_cells_title">开关2</div>
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell weui_cell_switch">
                        <div class="weui_cell_hd weui_cell_primary">标题文字2</div>
                        <div class="weui_cell_ft">
                            <input class="weui_switch" type="checkbox" />
                        </div>
                    </div>
                </div>
                <div class="weui_cells_title">表单</div>
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell">
                        <div class="weui_cell_hd">
                            <label class="weui_label">qq</label>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="number" pattern="[0-9]*" placeholder="请输入qq号" />
                        </div>
                    </div>
                    <div class="weui_cell weui_vcode">
                        <div class="weui_cell_hd">
                            <label class="weui_label">验证码</label>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="text" placeholder="请输入验证码(验证码不一定是纯数字,此处weUI有误:type=" text ")" />
                        </div>
                        <div class="weui_cell_ft">
                            <img src="./images/vcode.jpg" />
                        </div>
                    </div>
                    <div class="weui_cell">
                        <div class="weui_cell_hd">
                            <label class="weui_label">银行卡</label>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="number" pattern="[0-9]*" placeholder="请输入银行卡号" />
                        </div>
                    </div>
                    <div class="weui_cell weui_vcode weui_cell_warn">
                        <div class="weui_cell_hd">
                            <label class="weui_label">验证码</label>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="number" placeholder="请输入验证码" />
                        </div>
                        <div class="weui_cell_ft">
                            <i class="weui_icon_warn"></i>
                            <img src="./images/vcode.jpg" />
                        </div>
                    </div>
                </div>
                <div class="weui_cells_tips">底部说明文字底部说明文字</div>
                <div class="weui_btn_area">
                    <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips">确定</a>
                </div>
    
                <div class="weui_cells_title">上传</div>
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell">
                        <div class="weui_cell_bd weui_cell_primary">
                            <div class="weui_uploader">
                                <div class="weui_uploader_hd weui_cell">
                                    <div class="weui_cell_bd weui_cell_primary">图片上传</div>
                                    <div class="weui_cell_ft">0/2</div>
                                </div>
                                <div class="weui_uploader_bd">
                                    <ul class="weui_uploader_files">
                                        <li class="weui_uploader_file" style="background-image:url(http://shp.qpic.cn/weixinsrc_pic/pScBR7sbqjOBJomcuvVJ6iacVrbMJaoJZkFUIq4nzQZUIqzTKziam7ibg/)"></li>
                                        <li class="weui_uploader_file" style="background-image:url(http://shp.qpic.cn/weixinsrc_pic/pScBR7sbqjOBJomcuvVJ6iacVrbMJaoJZkFUIq4nzQZUIqzTKziam7ibg/)"></li>
                                        <li class="weui_uploader_file" style="background-image:url(http://shp.qpic.cn/weixinsrc_pic/pScBR7sbqjOBJomcuvVJ6iacVrbMJaoJZkFUIq4nzQZUIqzTKziam7ibg/)"></li>
                                        <li class="weui_uploader_file weui_uploader_status" style="background-image:url(http://shp.qpic.cn/weixinsrc_pic/pScBR7sbqjOBJomcuvVJ6iacVrbMJaoJZkFUIq4nzQZUIqzTKziam7ibg/)">
                                            <div class="weui_uploader_status_content">
                                                <i class="weui_icon_warn"></i>
                                            </div>
                                        </li>
                                        <li class="weui_uploader_file weui_uploader_status" style="background-image:url(http://shp.qpic.cn/weixinsrc_pic/pScBR7sbqjOBJomcuvVJ6iacVrbMJaoJZkFUIq4nzQZUIqzTKziam7ibg/)">
                                            <div class="weui_uploader_status_content">50%</div>
                                        </li>
                                    </ul>
                                    <div class="weui_uploader_input_wrp">
                                        <input class="weui_uploader_input" type="file" accept="image/jpg,image/jpeg,image/png,image/gif" multiple />
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
    
                <div class="weui_cells_title">文本域</div>
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell">
                        <div class="weui_cell_bd weui_cell_primary">
                            <textarea class="weui_textarea" placeholder="请输入评论" rows="3"></textarea>
                            <div class="weui_textarea_counter"><span>0</span>/200</div>
                        </div>
                    </div>
                </div>
                <div class="weui_toptips weui_warn js_tooltips">格式不对</div>
                <div class="weui_cells_title">表单报错</div>
                <div class="weui_cells weui_cells_form">
                    <div class="weui_cell weui_cell_warn">
                        <div class="weui_cell_hd">
                            <label for="" class="weui_label">卡号</label>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="number" pattern="[0-9]*" value="weui input error" placeholder="请输入卡号1" />
                        </div>
                        <div class="weui_cell_ft">
                            <i class="weui_icon_warn"></i>
                        </div>
                    </div>
                    <div class="weui_cells_title">没有添加weui_cell_warn类</div>
                    <div class="weui_cell ">
                        <div class="weui_cell_hd">
                            <label for="" class="weui_label">卡号</label>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="number" pattern="[0-9]*" value="weui input error" placeholder="请输入卡号2" />
                        </div>
                        <div class="weui_cell_ft">
                            <i class="weui_icon_warn"></i>
                        </div>
                    </div>
                    <div class="weui_cell">
                        <div class="weui_cell_hd">
                            <label for="" class="weui_label">日期</label>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="date" value="" />
                        </div>
                    </div>
                    <div class="weui_cell">
                        <div class="weui_cell_hd">
                            <label for="" class="weui_label">时间</label>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="datetime-local" value="" placeholder="" />
                        </div>
                    </div>
                </div>
                <div class="weui_cells_title">选择</div>
                <div class="weui_cells">
    
                    <div class="weui_cell weui_cell_select weui_select_before">
                        <div class="weui_cell_hd">
                            <select class="weui_select" name="select2">
                                <option value="1">+86</option>
                                <option value="2">+80</option>
                                <option value="3">+84</option>
                                <option value="4">+87</option>
                                <option value="4">+你大爷</option>
                            </select>
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <input class="weui_input" type="number" pattern="[0-9]*" placeholder="请输入号码" />
                        </div>
                    </div>
                </div>
                <div class="weui_cells_title">选择</div>
                <div class="weui_cells">
                    <div class="weui_cell weui_cell_select">
                        <div class="weui_cell_bd weui_cell_primary">
                            <select class="weui_select" name="select1">
                                <option selected="" value="1">微信号</option>
                                <option value="2">QQ号</option>
                                <option value="3">Email</option>
                            </select>
                        </div>
                    </div>
                    <div class="weui_cell weui_cell_select weui_select_after">
                        <div class="weui_cell_hd">
                            国家/地区
                        </div>
                        <div class="weui_cell_bd weui_cell_primary">
                            <select class="weui_select" name="select2">
                                <option value="1">中国</option>
                                <option value="2">美国</option>
                                <option value="3">英国</option>
                            </select>
                        </div>
                    </div>
                </div>
    
                <h1 style="text-align: center;color: red;">Toast</h1>
                <a href="javascript:;" class="weui_btn weui_btn_primary" id="showToast">点击弹出Toast</a>
                <a href="javascript:;" class="weui_btn weui_btn_primary" id="showLoadingToast">点击弹出Loading Toast</a>
                <script>
                    $(function() {
                        $('#showToast').click(function() {
                            /**
                             *1.delay函数是jquery 1.4.2新增的函数
                             *2.hide函数里必须放一个0,不然延时不起作用
                             */
                            $('#toast').show().delay(3000).hide(0);
                            //  $('#toast').fadeIn().delay(3000).fadeOut();
                        });
                        $('#showLoadingToast').click(function() {
                            $('#loadingToast').fadeIn().delay(3000).fadeOut();
                        });
                    })
                </script>
                <!--BEGIN toast-->
                <div id="toast"  style="display:none;">
                    <div class="weui_mask_transparent"></div>
                    <div class="weui_toast">
                        <i class="weui_icon_toast"></i>
                        <p class="weui_toast_content">已完成</p>
                    </div>
                </div>
                <!--end toast-->
    
                <!-- loading toast -->
                <div id="loadingToast" class="weui_loading_toast" style="display:none;">
                    <div class="weui_mask_transparent"></div>
                    <div class="weui_toast">
                        <div class="weui_loading">
                            <div class="weui_loading_leaf weui_loading_leaf_0"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_1"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_2"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_3"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_4"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_5"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_6"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_7"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_8"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_9"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_10"></div>
                            <div class="weui_loading_leaf weui_loading_leaf_11"></div>
                        </div>
                        <p class="weui_toast_content">数据加载中</p>
                    </div>
                </div>
                <h1 style="text-align: center;color: red;">Dialog</h1>
    
                <div class="bd spacing">
                    <a href="javascript:;" class="weui_btn weui_btn_primary" id="showDialog1">点击弹出Dialog样式一</a>
                    <a href="javascript:;" class="weui_btn weui_btn_primary" id="showDialog2">点击弹出Dialog样式二</a>
                </div>
                <script>
                    $(function() {
                        $('#showDialog1').click(function() {
                            $('#dialog1').show();
                        });
                        $('#quxioa').click(function() {
                            alert('你点击了取消!!!');
                            $('#dialog1').hide();
                        });
                        $('#ok').click(function() {
                            alert('你点击了确认!!!');
                        });
                        $('#showDialog2').click(function() {
                            $('#dialog2').show();
                        });
                        $('#ok1').click(function() {
                            alert('你点击了确认!!!');
                            $('#dialog2').hide();
                        });
                    })
                </script>
                <!--BEGIN dialog1-->
                <div class="weui_dialog_confirm" id="dialog1" style="display: none;">
                    <div class="weui_mask"></div>
                    <div class="weui_dialog">
                        <div class="weui_dialog_hd"><strong class="weui_dialog_title">弹窗标题</strong></div>
                        <div class="weui_dialog_bd">自定义弹窗内容,居左对齐显示,告知需要确认的信息等</div>
                        <div class="weui_dialog_ft">
                            <a id="quxioa" href="javascript:;" class="weui_btn_dialog default">取消</a>
                            <a id="ok" href="javascript:;" class="weui_btn_dialog primary">确定</a>
                        </div>
                    </div>
                </div>
                <!--END dialog1-->
                <!--BEGIN dialog2-->
                <div class="weui_dialog_alert" id="dialog2" style="display: none;">
                    <div class="weui_mask"></div>
                    <div class="weui_dialog">
                        <div class="weui_dialog_hd"><strong class="weui_dialog_title">弹窗标题</strong></div>
                        <div class="weui_dialog_bd">弹窗内容,告知当前页面信息等</div>
                        <div class="weui_dialog_ft">
                            <a id="ok1" href="javascript:;" class="weui_btn_dialog primary">确定</a>
                        </div>
                    </div>
                </div>
    
                <h1 style="text-align: center;color: red;">Progress</h1>
                <div class="weui_progress">
                    <div class="weui_progress_bar">
                        <div id="prs" class="weui_progress_inner_bar js_progress" style="width: 0%;"></div>
                    </div>
                    <a href="javascript:;" class="weui_progress_opr">
                        <i class="weui_icon_cancel"></i>
                    </a>
                </div>
                <br>
                <div class="weui_progress">
                    <div class="weui_progress_bar">
                        <div class="weui_progress_inner_bar js_progress" style="width: 50%;"></div>
                    </div>
                    <a href="javascript:;" class="weui_progress_opr">
                        <i class="weui_icon_cancel"></i>
                    </a>
                </div>
                <br>
                <div class="weui_progress">
                    <div class="weui_progress_bar">
                        <div class="weui_progress_inner_bar js_progress" style="width: 80%;"></div>
                    </div>
                    <a href="javascript:;" class="weui_progress_opr">
                        <i class="weui_icon_cancel"></i>
                    </a>
                </div>
                <div class="weui_btn_area">
                    <a href="javascript:;" class="weui_btn weui_btn_primary" id="btnStartProgress">上传</a>
                </div>
                <script>
                    $(function() {
                        $('#btnStartProgress').click(function() {
                            $('#prs').animate({
                                width: "100%"
                            }, 2000, function() {
                                $(this).css('width', '0');
                            });
                        })
                    })
                </script>
                <h1 style="text-align: center;color: red;">Message</h1>
                <div class="weui_msg" style="border: 1px solid red;">
                    <div class="weui_icon_area"><i class="weui_icon_success weui_icon_msg"></i></div>
                    <div class="weui_text_area">
                        <h2 class="weui_msg_title">操作成功</h2>
                        <p class="weui_msg_desc">内容详情,可根据实际需要安排</p>
                    </div>
                    <div class="weui_opr_area">
                        <p class="weui_btn_area">
                            <a href="javascript:;" class="weui_btn weui_btn_primary">确定</a>
                            <a href="javascript:;" class="weui_btn weui_btn_default">取消</a>
                        </p>
                    </div>
                    <div class="weui_extra_area">
                        <a href="">查看详情</a>
                    </div>
                </div>
                <h1 style="text-align: center;color: red;">Article</h1>
                <article class="weui_article" style="border: 1px solid red;">
                    <h1>大标题</h1>
                    <section>
                        <h2 class="title">章标题</h2>
                        <section>
                            <h3>1.1 节标题</h3>
                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute</p>
                        </section>
                        <section>
                            <h3>1.2 节标题</h3>
                            <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
                                culpa qui officia deserunt mollit anim id est laborum.</p>
                        </section>
                    </section>
                </article>
                ActionSheet扩展实例:
                <input type="text" id="showActionSheet1" />
                <script>
                    $(function() {
                        $('#showActionSheet1').click(function() {
                            var mask = $('#mask');
                            var weuiActionsheet = $('#weui_actionsheet');
                            weuiActionsheet.addClass('weui_actionsheet_toggle');
                            mask.show().addClass('weui_fade_toggle').click(function() {
                                hideActionSheet(weuiActionsheet, mask);
                            });
                            $('#actionsheet_cancel').click(function() {
                                hideActionSheet(weuiActionsheet, mask);
                            });
                            weuiActionsheet.unbind('transitionend').unbind('webkitTransitionEnd');
    
                            function hideActionSheet(weuiActionsheet, mask) {
                                weuiActionsheet.removeClass('weui_actionsheet_toggle');
                                mask.removeClass('weui_fade_toggle');
                                weuiActionsheet.on('transitionend', function() {
                                    mask.hide();
                                }).on('webkitTransitionEnd',
                                    function() {
                                        mask.hide();
                                    })
                            }
                        });
                        $('.weui_actionsheet_menu .weui_actionsheet_cell').click(function() {
                            //看下面的js
                            //                      alert($(this).text());
                            //                      $('#showActionSheet1').val($(this).text());
                            //                      $('#actionsheet_cancel').click();
                        })
                    });
                </script>
                <h1 style="text-align: center;color: red;">ActionSheet</h1>
                <div class="bd spacing">
                    <a href="javascript:;" class="weui_btn weui_btn_primary" id="showActionSheet">点击上拉ActionSheet</a>
                </div>
                <!--BEGIN actionSheet-->
                <div id="actionSheet_wrap">
                    <div class="weui_mask_transition" id="mask"></div>
                    <div class="weui_actionsheet" id="weui_actionsheet">
                        <div class="weui_actionsheet_menu">
                            <div class="weui_actionsheet_cell">示例菜单1</div>
                            <div class="weui_actionsheet_cell">示例菜单2</div>
                            <div class="weui_actionsheet_cell">示例菜单3</div>
                            <div class="weui_actionsheet_cell">示例菜单4</div>
                        </div>
                        <div class="weui_actionsheet_action">
                            <div class="weui_actionsheet_cell" id="actionsheet_cancel">取消</div>
                        </div>
                    </div>
                </div>
    
                <script>
                    $(function() {
                        $('#showActionSheet').click(function() {
                            var mask = $('#mask');
                            var weuiActionsheet = $('#weui_actionsheet');
                            weuiActionsheet.addClass('weui_actionsheet_toggle');
                            mask.show().addClass('weui_fade_toggle').click(function() {
                                hideActionSheet(weuiActionsheet, mask);
                            });
                            $('#actionsheet_cancel').click(function() {
                                hideActionSheet(weuiActionsheet, mask);
                            });
                            weuiActionsheet.unbind('transitionend').unbind('webkitTransitionEnd');
    
                            function hideActionSheet(weuiActionsheet, mask) {
                                weuiActionsheet.removeClass('weui_actionsheet_toggle');
                                mask.removeClass('weui_fade_toggle');
                                weuiActionsheet.on('transitionend', function() {
                                    mask.hide();
                                }).on('webkitTransitionEnd',
                                    function() {
                                        mask.hide();
                                    })
                            }
                        });
                        $('.weui_actionsheet_menu .weui_actionsheet_cell').click(function() {
                            alert($(this).text());
                            $('#showActionSheet1').val($(this).text());
                            $('#actionsheet_cancel').click();
                        })
                    });
                </script>
                <h1 style="text-align: center;color: red;">Icons</h1>
                <i class="weui_icon_msg weui_icon_success"></i>
                <i class="weui_icon_msg weui_icon_info"></i>
                <i class="weui_icon_msg weui_icon_warn"></i>
                <i class="weui_icon_msg weui_icon_waiting"></i>
                <i class="weui_icon_safe weui_icon_safe_success"></i>
                <i class="weui_icon_safe weui_icon_safe_warn"></i>
                <div class="icon_sp_area">
                    <i class="weui_icon_success"></i>
                    <i class="weui_icon_success_circle"></i>
                    <i class="weui_icon_success_no_circle"></i>
                    <i class="weui_icon_info"></i>
                    <i class="weui_icon_waiting"></i>
                    <i class="weui_icon_waiting_circle"></i>
                    <i class="weui_icon_circle"></i>
                    <i class="weui_icon_warn"></i>
                    <i class="weui_icon_download"></i>
                    <i class="weui_icon_info_circle"></i>
                    <i class="weui_icon_cancel"></i>
                    <i class="weui_icon_search"></i>
                    <i class="weui_icon_clear"></i>
                </div>
    
            </div>
        </body>
    
    </html>


    展开全文
  • 1、聊天界面发送图片==>多选点+有右上角”发送”+图片预览==>图片预览支持右上角”发送”逻辑 2、发表动态==>多选点+右上角”完成” + 图片预览==>图片预览支持右上角”完成”逻辑 3、个人资料更改头像==>单...
  • 微信小程序查询出一个列表,列表显示的时候加上复选框,当勾选了复选框,再重新查询时,复选框不会重新置为未勾选状态 例如查询出一批数据,我勾选了第一条,换一个条件查出另一批数据,新的查询结果第一条是默认...
  • 微信小程序 多选框的使用

    千次阅读 2018-12-29 09:55:47
    微信小程序 多选框的使用需求 需求 ![在这里插入图片描述](https://img-blog.csdnimg.cn/20181229092342945.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4...

    微信小程序 多选框的使用

    需求

    上个月给公司做了个OA 小程序,其中一个模块是用印申请,效果如图所示,点击 选择公章类型, 弹出 多选框,点击确定公章类型显示到文本框内,再次点击可修改
    

    效果图

    在这里插入图片描述在这里插入图片描述
    在这里插入图片描述

    核心代码(wxml,JavaScript)

    <!-- 用印类型-弹框实现 -->
          <view class="forItemBorder">
            <!-- 用印弹窗 -->
            <view class="weui-cell weui-cell_input" bindtap="showDialogBtn">
              <view class="weui-cell__hd">
                <view class="weui-label">公章类型</view>
              </view>
              <view style="width: 440rpx;">
                <input type="text" class="weui-input" name="sealType" value="{{sealType}}" placeholder-style="color:#B2B2B2"
                  placeholder="请选择公章类型" disabled="disabled" />
              </view>
              <view class='weui-cell__ft arrow_right'></view>
            </view>
            <!-- 遮罩层 -->
            <view class="modal-mask" wx:if="{{showModal}}"></view>
            <!-- 弹出框 -->
            <view class="modal-dialog" wx:if="{{showModal}}">
              <view class="modal-content">
                <checkbox-group data-index="{{index}}" bindchange="checkboxChange" name="sealType">
                  <label class="checkbox" wx:for="{{sealTypeList}}" wx:key="key" wx:for-item="item">
                    <checkbox value="{{item.id}}" checked="{{item.checked}}" color="#2A98BD" />
                    <view class="checked_label" style="color:#37383B">{{item.gzkind}}</view>
                  </label>
                </checkbox-group>
              </view>
              <!-- 操作按钮 -->
              <view class="modal-footer">
                <button class="btn btn-cancel" bindtap="onCancel" data-status="cancel">取消</button>
                <button class="btn btn-confirm" bindtap="onConfirm" data-status="confirm">确定</button>
              </view>
            </view>
          </view>
    
    // 后台传过来的公章对象数组用sealTypeList 接收
    checkboxChange: function (e) {
    	let that = this;
    	let sealTypeList = this.data.sealTypeList;
    	// 若之前已选择公章,将其回显打勾
    	
    	for (let i = 0; i < sealTypeList.length; i++) {
    		sealTypeList[i].checked = false;
    	}
    	let indexes = e.detail.value;
    	for (let i = 0; i < indexes.length; i++) {
    		indexes[i] = parseInt(indexes[i]);
    		// 多选框从1开始,数组下标从0开始,所以需要减1
    		sealTypeList[indexes[i] - 1].checked = true;
    	}
    	// 直接将整个list赋值回去
    	this.setData({
    		sealTypeList: sealTypeList
    	})
    },
    // 用户点击确定
    onConfirm: function () {
    	let that = this;
    	let seals = [];
    	let sealTypeList = this.data.sealTypeList;
    	sealTypeList.forEach(function (e) {
    		if (e.checked) {
    			// gzkind是对象的一个属性,表示具体公章类型名的字符串
    			seals.push(e.gzkind);
    		}
    	});
    	// 显示到wxml上
    	this.setData({
    		sealType: seals.join(",")
    	})
    	// 隐藏弹出的对话框
    	//this.hideModal();
    },
    // 用户点击取消
    onCancel: function () {
    	let that = this;
    	let sealTypeList = this.data.sealTypeList;
    	// 获取上一次选择的用印类型字符串(规定用,隔开)
    	let gzkind = this.data.sealType || "";
    	// 放弃当前的勾选,原来谁checked,谁就checked
    	sealTypeList.forEach(function (e) {
    		e.checked = false;
    	});
    	if (gzkind !== "") {
    		gzkind = gzkind.split(",");
    		for (let i = 0; i < gzkind.length; i++) {
    			for (let j = 0; j < sealTypeList.length; j++) {
    				let e = sealTypeList[j];
    				if (e.gzkind == gzkind[i]) {
    					e.checked = true;
    				}
    			}
    		}
    	}
    
    	this.setData({
    		sealTypeList: sealTypeList
    	});
    	// 将弹出的对话框隐藏
    	// this.hideModal();
    },
    
    展开全文
  • 微信图片选择器

    2015-07-29 14:12:07
    高仿微信图片选择器,可以当选,也可以多选,有需要的可以看看。
  • 利用微信的weui框架上传、预览和删除图片

    万次阅读 热门讨论 2018-03-09 09:48:31
    jQuery WeUI的官网:http://jqweui.com/需求:需要在微信公众号网页添加上传图片功能技术选型:实现上传图片功能可百度的WebUploader、饿了么的Element和微信的jQuery WeUI,WebUploader的缺点是自定义UI困难,...
  • 多功能画板,实现了微信图片编辑相同的功能。(我是在原来的项目上拉取分支去弄的,更改项目名字为Doodle,新名字意味着新起点,哈哈) Doodle Doodle是Android图片涂鸦、画板,具有撤消、缩放、移动、添加...
  • android微信图片浏览框架设计

    千次阅读 2016-08-24 10:06:55
    代码项目github地址 IMAlbum一、业务场景1、聊天界面发送图片==>多选点+有右上角”发送”+图片预览==>图片预览支持右上角”发送”逻辑 2、发表动态==>多选点+右上角”完成” + 图片预览==>图片预览支持右上角”...
  • Android-UploadMultipartImageAndroid 仿照微信发说说,既能实现拍照,图库,多图案上传 使用Retrofit技术。使用方法:详见博客http://blog.csdn.net/u010046908/article/details/50767904项目的运行效果:服务器...
  • 高仿微信图片选择

    千次阅读 2016-05-31 12:44:56
    测试了一下,支持图片的选择,预览,删除等基本操作,支持图片的倒序显示,拍照添加图片,以及过滤较小图片等。部分截图,如下 功能描述: 1. 点击添加图片按钮进入图片选择页面,选择的图片显示在主界面,并且...
  • Android ImageSelector微信图片选择器

    千次阅读 2018-04-06 11:30:59
    前言 现在绝大多数的App都上传图片的功能,比如设置用户头像、聊天发送图片、发表动态、论坛帖子等。...比如微信图片选择器就做的很好。没办法,谁让微信这么强大,我不超抄袭你,但是,我可以模仿你,哈哈! 效果图...
  • 仿微信图片选择器

    千次阅读 2016-05-31 15:27:24
    利用gridview加载本地图片,gridView控件的使用,Intent之间数据的传递,和利用ContentProvider获取图片,和PopupWindow弹出页面的使用,利用Bitmap解决OOM问题。
  • 转载至:https://blog.csdn.net/sinat_36558867/article/details/79492843jQuery WeUI 是专为微信公众账号开发而设计的一个框架,jQuery ...实现上传图片功能可百度的WebUploader、饿了么的Element和微信的jQue...
  • Android 仿微信裁剪图片

    千次阅读 2019-12-03 14:49:35
    头像无非就是方形 或者 圆形,那么就诞生了这样一个需求: 从相册中选择一张图片 中间区域是圆形 或者方形的透明...但是最后还是找到了一个可以参考模仿的例子《Android开发技巧——定制仿微信图片裁剪控件》。...
  • 再次点击全选 wxml关键代码 重要代码 value={{item.goods_id}} -->checkbox被选中的值就是这个goods_id checked={{item.checked}} -->checked代表选中与否 ,ture选中,false未选中 //删除购物车商品的...
  • 微信小程序可移动缩放图片裁剪

    千次阅读 2020-05-08 13:55:40
    效果预览 前言 图片裁剪应用很普遍,也有很多...下面介绍一种通过使用微信小程序canvas来实现一个可移动缩放的图片裁剪的方法。 技术要点分析 使用canvas组件实现图片裁剪涉及以下技术内容: (1)使用canva...
  • 刚开始小程序出来那会研究过自定义radio和checkbox的样式...这是升级后的,主要还是觉得自定义样式能使我们在小程序的开发中减少图片的加载以及内存;同时后期的维护也更加便利;   更改radio的样式,效果如下图...
  • .wrap_item { width: 100%; display: flex; margin-bottom: 10rpx; } .wrap_item button{ width: 210rpx!important; background-color: #2d59df; color: #fff; font-weight: normal; font-size: 24rpx;...}
  • Android图片选择器,仿微信图片选择器的样式和效果。支持图片单选、多选、裁剪形状自定义、裁剪比例设置、解耦图片加载框架。项目地址:https://github.com/1izheng/ImageSelector111.jpg222.jpg333.jpg1、引入...
  • 完全仿微信图片选择,并且提供了多种图片加载接口,选择图片后可以旋转,可以裁剪成矩形或圆形,可以配置各种其他的参数 github地址: https://github.com/GitLqr/LQRImagePicker 一、简述: 本项目是基于Image...
  • Android大神级PictureSelector微信图片选择器

    万次阅读 热门讨论 2018-08-01 11:38:26
    ()// 是否传入已选图片 List<LocalMedia> list .previewEggs ()// 预览图片时 是否增强左右滑动图片体验(图片滑动一半即可看到上一张是否选中) true or false .cropCompressQuality ()// 裁剪压缩质量 默认 ...
  • 微信小程序获取复选框全选,反选选中的值 你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。 HTML文件 <...
  • 微博、微信图片压缩&预览策略

    千次阅读 2017-10-13 16:33:46
    客户端本地处理:一般通过调节图片的quality和 size来调整上传图片的质量。 quality一般选择90%以上,最高95%。千万不要100%.... size看要求的精细度了,基本原则就是:大图等比缩,小图不动刀。 如果图片有大段...
  • 微信图片分享

    2017-05-15 20:17:04
    今天做微信分享,遇到shareSDK,然后里面的大图分享不错,不用自己整友盟弄啊弄,然后原来demo是在的,项目需求得扣除来,然后就抠出来,记录一下 public static Bitmap getViewBitmap(View view) { Bitmap...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 14,514
精华内容 5,805
关键字:

微信图片框选