Skip to content

Commit

Permalink
1.扫描线效果不好,暂时去掉
Browse files Browse the repository at this point in the history
2.调整primary  color颜色值
  • Loading branch information
yuzhiqiang1993 committed Jul 6, 2018
1 parent 196025a commit 6f65efb
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.2'
classpath 'com.android.tools.build:gradle:3.1.3'

classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'
// NOTE: Do not place your application dependencies here; they belong
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public class ZxingConfig implements Serializable {
@ColorRes
private int frameLineColor = -1;


// /*扫描线颜色*/
// @ColorRes
// private int scanLineColor = R.color.scanLineColor;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,6 @@ public PlanarYUVLuminanceSource buildLuminanceSource(byte[] data,
} else {
return new PlanarYUVLuminanceSource(data, width, height, rect.left,
rect.top, rect.width(), rect.height(), false);


}


Expand Down
2 changes: 1 addition & 1 deletion zxinglibrary/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<color name="result_minor_text">#c0c0c0</color>
<color name="result_points">#99cc00</color>
<color name="result_text">#ffffffff</color>
<color name="result_view">#ff000000</color>
<color name="result_view">#000000</color>
<color name="status_text">#ffffff</color>
<color name="viewfinder_mask">#50000000</color>
<color name="react">#63B8FF</color>
Expand Down
4 changes: 2 additions & 2 deletions zxinglibrary/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

<!-- Base application theme. -->
<style name="ZxingTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/result_view</item>
<item name="colorPrimaryDark">@color/result_view</item>
<item name="colorPrimary">#000000</item>
<item name="colorPrimaryDark">#000000</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
<item name="android:windowActionBarOverlay">true</item>
Expand Down

0 comments on commit 6f65efb

Please sign in to comment.