forked from huanghaibin-dev/CalendarView
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.0.2版本开源、修复周视图小bug,新增自定义周栏功能,代码整理,官方规范化
- Loading branch information
1 parent
474367e
commit 37833f2
Showing
24 changed files
with
890 additions
and
882 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
app/src/main/java/com/haibin/calendarviewproject/EnglishWeekBar.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.haibin.calendarviewproject; | ||
|
||
import android.content.Context; | ||
import android.view.LayoutInflater; | ||
|
||
import com.haibin.calendarview.WeekBar; | ||
|
||
/** | ||
* 自定义英文栏 | ||
* Created by huanghaibin on 2017/11/30. | ||
*/ | ||
|
||
public class EnglishWeekBar extends WeekBar { | ||
public EnglishWeekBar(Context context) { | ||
super(context); | ||
LayoutInflater.from(context).inflate(R.layout.english_week_bar, this, true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:id="@+id/ll_week" | ||
android:layout_width="match_parent" | ||
android:layout_height="40dp" | ||
android:minHeight="40dp" | ||
android:orientation="horizontal" | ||
android:paddingBottom="8dp" | ||
android:paddingTop="8dp" | ||
tools:ignore="HardcodedText"> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:text="Sun" | ||
android:textColor="#A3A3A3" | ||
android:textSize="12sp" | ||
android:textStyle="bold" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:textColor="#A3A3A3" | ||
android:text="Mon" | ||
android:textSize="12sp" | ||
android:textStyle="bold" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:text="Tue" | ||
android:textColor="#A3A3A3" | ||
android:textSize="12sp" | ||
android:textStyle="bold" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:text="Wed" | ||
android:textColor="#A3A3A3" | ||
android:textSize="12sp" | ||
android:textStyle="bold" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:text="Thu" | ||
android:textColor="#A3A3A3" | ||
android:textSize="12sp" | ||
android:textStyle="bold" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:textColor="#A3A3A3" | ||
android:text="Fri" | ||
android:textSize="12sp" | ||
android:textStyle="bold" /> | ||
|
||
<TextView | ||
android:layout_width="0dp" | ||
android:layout_height="match_parent" | ||
android:layout_weight="1" | ||
android:gravity="center" | ||
android:textColor="#A3A3A3" | ||
android:text="Sat" | ||
android:textSize="12sp" | ||
android:textStyle="bold" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.