• 大小: 1.29M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-23
  • 标签:

资源简介

简单的扫码Demo

资源截图

代码片段和文件信息

package com.example.zxingbarcode;

import com.zxing.activity.CaptureActivity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.onclickListener;
import android.widget.Button;

public class MainActivity extends Activity {

private Button btnScan;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        btnScan = (Button) findViewById(R.id.btn_scan);
        btnScan.setonclickListener(new onclickListener() {

@Override
public void onclick(View v) {
startActivity(new Intent(MainActivity.this CaptureActivity.class));
}
});
        
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-02-24 12:00  ZXingBarCode\
     文件         541  2015-02-26 16:43  ZXingBarCode\.classpath
     文件         848  2015-02-26 16:31  ZXingBarCode\.project
     文件        2034  2015-02-26 17:24  ZXingBarCode\AndroidManifest.xml
     目录           0  2016-02-28 13:59  ZXingBarCode\assets\
     文件       51394  2015-02-26 16:31  ZXingBarCode\ic_launcher-web.png
     目录           0  2016-02-24 12:00  ZXingBarCode\libs\
     文件      758727  2015-02-26 16:31  ZXingBarCode\libs\android-support-v4.jar
     文件      520331  2013-12-29 17:58  ZXingBarCode\libs\zxing-core-2.2.jar
     文件         781  2015-02-26 16:31  ZXingBarCode\proguard-project.txt
     文件         607  2015-02-26 16:31  ZXingBarCode\project.properties
     目录           0  2016-02-24 12:00  ZXingBarCode\res\
     目录           0  2016-02-24 12:00  ZXingBarCode\res\drawable\
     文件         206  2014-08-26 14:48  ZXingBarCode\res\drawable\common_left_select.xml
     目录           0  2016-02-24 12:00  ZXingBarCode\res\drawable-hdpi\
     文件        7658  2015-02-26 16:31  ZXingBarCode\res\drawable-hdpi\ic_launcher.png
     目录           0  2016-02-28 13:59  ZXingBarCode\res\drawable-ldpi\
     目录           0  2016-02-24 12:00  ZXingBarCode\res\drawable-mdpi\
     文件        3777  2015-02-26 16:31  ZXingBarCode\res\drawable-mdpi\ic_launcher.png
     目录           0  2016-02-24 12:00  ZXingBarCode\res\drawable-xhdpi\
     文件        1273  2014-12-01 09:44  ZXingBarCode\res\drawable-xhdpi\back.png
     文件         265  2014-08-26 14:48  ZXingBarCode\res\drawable-xhdpi\bg_press.9.png
     文件       12516  2015-02-26 16:31  ZXingBarCode\res\drawable-xhdpi\ic_launcher.png
     文件        2885  2012-08-05 11:16  ZXingBarCode\res\drawable-xhdpi\navbar.9.png
     文件       39502  2014-12-01 09:49  ZXingBarCode\res\drawable-xhdpi\title_bg.png
     文件        1250  2013-12-29 11:47  ZXingBarCode\res\drawable-xhdpi\zx_code_line.png
     目录           0  2016-02-24 12:00  ZXingBarCode\res\drawable-xxhdpi\
     文件       24777  2015-02-26 16:31  ZXingBarCode\res\drawable-xxhdpi\ic_launcher.png
     目录           0  2016-02-24 12:00  ZXingBarCode\res\layout\
     文件        3371  2015-02-26 17:03  ZXingBarCode\res\layout\activity_code_scan.xml
     文件         535  2015-02-26 17:18  ZXingBarCode\res\layout\activity_main.xml
............此处省略57个文件信息

评论

共有 条评论