From 040246680143f6209be578360d80522c279df4d1 Mon Sep 17 00:00:00 2001
From: muzi <727784430@qq.com>
Date: Thu, 29 Mar 2018 13:18:10 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
library/build.gradle | 46 +++++++++----------
.../com/muzi/library/widget/BiasView.java | 2 +-
library/src/main/res/layout/item_month.xml | 1 +
library/src/main/res/layout/view_calendar.xml | 13 ++++--
4 files changed, 35 insertions(+), 27 deletions(-)
diff --git a/library/build.gradle b/library/build.gradle
index f41f669..8b078e9 100644
--- a/library/build.gradle
+++ b/library/build.gradle
@@ -29,26 +29,26 @@ dependencies {
compile 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.30'
}
-// 打包源码jar
-task sourcesJar(type: Jar) {
- from android.sourceSets.main.java.srcDirs
- classifier = 'sources'
-}
-
-task javadoc(type: Javadoc) {
- failOnError false
- source = android.sourceSets.main.java.sourceFiles
- classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
- classpath += configurations.compile
-}
-
-// 打包文档jar
-task javadocJar(type: Jar, dependsOn: javadoc) {
- classifier = 'javadoc'
- from javadoc.destinationDir
-}
-
-artifacts {
- archives sourcesJar
- archives javadocJar
-}
+//// 打包源码jar
+//task sourcesJar(type: Jar) {
+// from android.sourceSets.main.java.srcDirs
+// classifier = 'sources'
+//}
+//
+//task javadoc(type: Javadoc) {
+// failOnError false
+// source = android.sourceSets.main.java.sourceFiles
+// classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
+// classpath += configurations.compile
+//}
+//
+//// 打包文档jar
+//task javadocJar(type: Jar, dependsOn: javadoc) {
+// classifier = 'javadoc'
+// from javadoc.destinationDir
+//}
+//
+//artifacts {
+// archives sourcesJar
+// archives javadocJar
+//}
diff --git a/library/src/main/java/com/muzi/library/widget/BiasView.java b/library/src/main/java/com/muzi/library/widget/BiasView.java
index 23d5391..c195f10 100644
--- a/library/src/main/java/com/muzi/library/widget/BiasView.java
+++ b/library/src/main/java/com/muzi/library/widget/BiasView.java
@@ -63,7 +63,7 @@ protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
paint.setColor(Color.parseColor("#eaeaea"));
paint.setStyle(Paint.Style.STROKE);
- paint.setStrokeWidth(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX, 1, getContext().getResources().getDisplayMetrics()));
+ paint.setStrokeWidth(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_PX, 2, getContext().getResources().getDisplayMetrics()));
paint.setAntiAlias(true);
canvas.drawLine(width, 0, 0, height, paint);
}
diff --git a/library/src/main/res/layout/item_month.xml b/library/src/main/res/layout/item_month.xml
index 4f993f5..6ad4846 100644
--- a/library/src/main/res/layout/item_month.xml
+++ b/library/src/main/res/layout/item_month.xml
@@ -12,6 +12,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginLeft="25dp"
+ android:textColor="@color/textMonth"
android:textSize="21sp"
tools:text="2018年12月" />
diff --git a/library/src/main/res/layout/view_calendar.xml b/library/src/main/res/layout/view_calendar.xml
index 43d9663..daf3236 100644
--- a/library/src/main/res/layout/view_calendar.xml
+++ b/library/src/main/res/layout/view_calendar.xml
@@ -25,7 +25,7 @@
android:id="@+id/viewStart"
android:layout_width="158dp"
android:layout_height="60dp"
- android:layout_toStartOf="@id/line"
+ android:layout_toLeftOf="@id/line"
android:gravity="center"
android:orientation="vertical">
@@ -63,7 +63,7 @@
android:id="@+id/viewEnd"
android:layout_width="158dp"
android:layout_height="60dp"
- android:layout_toEndOf="@id/line"
+ android:layout_toRightOf="@id/line"
android:gravity="center"
android:orientation="vertical">
@@ -135,10 +135,17 @@
+
+
+ android:layout_below="@id/guideLine" />
\ No newline at end of file