forked from gzu-liyujiang/AndroidPicker
-
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.
- 所以选择器文本国际化,内置支持中文及英文; - 手机号码前缀选择器数据完善,支持全球的国家及地区; - 车牌、星座及性别等选择器调整,民族、星座及性别等默认值设置优化; - 日历选择器支持自定义节日文本;
- Loading branch information
1 parent
e3d9d73
commit 6fecb7a
Showing
39 changed files
with
1,754 additions
and
248 deletions.
There are no files selected for viewing
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
26 changes: 26 additions & 0 deletions
26
...darPicker/src/main/java/com/github/gzuliyujiang/calendarpicker/core/FestivalProvider.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,26 @@ | ||
/* | ||
* Copyright (c) 2016-present 贵州纳雍穿青人李裕江<[email protected]> | ||
* | ||
* The software is licensed under the Mulan PSL v2. | ||
* You can use this software according to the terms and conditions of the Mulan PSL v2. | ||
* You may obtain a copy of Mulan PSL v2 at: | ||
* http://license.coscl.org.cn/MulanPSL2 | ||
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR | ||
* PURPOSE. | ||
* See the Mulan PSL v2 for more details. | ||
*/ | ||
|
||
package com.github.gzuliyujiang.calendarpicker.core; | ||
|
||
import java.util.Date; | ||
|
||
/** | ||
* @author 贵州山野羡民([email protected]) | ||
* @since 2021/10/28 9:52 | ||
*/ | ||
public interface FestivalProvider { | ||
|
||
String provideText(Date date); | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,8 @@ | |
import android.widget.BaseAdapter; | ||
import android.widget.TextView; | ||
|
||
import java.util.Locale; | ||
|
||
/** | ||
* @author 贵州山野羡民([email protected]) | ||
* @since 2021/9/17 14:36 | ||
|
@@ -30,6 +32,14 @@ public class WeekAdapter extends BaseAdapter { | |
}; | ||
private ColorScheme colorScheme = new ColorScheme(); | ||
|
||
static { | ||
if (!Locale.getDefault().getDisplayLanguage().contains("中文")) { | ||
DATA = new String[]{ | ||
"Sun", "Mon", "Tue", "Wed", "Thur", "Fri", "Sat" | ||
}; | ||
} | ||
} | ||
|
||
public void setColorScheme(ColorScheme colorScheme) { | ||
if (colorScheme == null) { | ||
colorScheme = new ColorScheme(); | ||
|
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.