-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renaming and deprecated methods removed
- Loading branch information
kirill
committed
Jan 17, 2019
1 parent
f18ff49
commit 2a4a594
Showing
31 changed files
with
119 additions
and
114 deletions.
There are no files selected for viewing
31 changes: 0 additions & 31 deletions
31
kalendar/src/main/java/com/yalantis/kalendar/model/KalendarStylable.kt
This file was deleted.
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
include ':kalendar', ':sample' | ||
include ':vishnu', ':sample' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
kalendar/src/main/AndroidManifest.xml → vishnu/src/main/AndroidManifest.xml
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
2 changes: 1 addition & 1 deletion
2
.../java/com/yalantis/kalendar/Extentions.kt → ...in/java/com/yalantis/vishnu/Extentions.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.yalantis.kalendar | ||
package com.yalantis.vishnu | ||
|
||
import android.view.View | ||
import java.util.* | ||
|
11 changes: 6 additions & 5 deletions
11
...om/yalantis/kalendar/MonthPagerAdapter.kt → .../com/yalantis/vishnu/MonthPagerAdapter.kt
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
8 changes: 4 additions & 4 deletions
8
...alendar/implementation/DateManagerImpl.kt → .../vishnu/implementation/DateManagerImpl.kt
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
8 changes: 4 additions & 4 deletions
8
...alendar/implementation/MoveManagerImpl.kt → .../vishnu/implementation/MoveManagerImpl.kt
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
2 changes: 1 addition & 1 deletion
2
...lantis/kalendar/interfaces/DateManager.kt → ...yalantis/vishnu/interfaces/DateManager.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.yalantis.kalendar.interfaces | ||
package com.yalantis.vishnu.interfaces | ||
|
||
import java.util.* | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
.../yalantis/kalendar/interfaces/DateView.kt → ...om/yalantis/vishnu/interfaces/DateView.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.yalantis.kalendar.interfaces | ||
package com.yalantis.vishnu.interfaces | ||
|
||
import java.util.* | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...lantis/kalendar/interfaces/MoveManager.kt → ...yalantis/vishnu/interfaces/MoveManager.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.yalantis.kalendar.interfaces | ||
package com.yalantis.vishnu.interfaces | ||
|
||
import android.view.MotionEvent | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...antis/kalendar/interfaces/ViewProvider.kt → ...alantis/vishnu/interfaces/ViewProvider.kt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package com.yalantis.kalendar.interfaces | ||
package com.yalantis.vishnu.interfaces | ||
|
||
interface ViewProvider { | ||
|
||
|
35 changes: 35 additions & 0 deletions
35
vishnu/src/main/java/com/yalantis/vishnu/interfaces/VishnuListener.kt
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,35 @@ | ||
package com.yalantis.vishnu.interfaces | ||
|
||
import com.yalantis.vishnu.view.MonthPage | ||
import java.util.* | ||
|
||
interface VishnuListener { | ||
/** | ||
* Invokes when user clicks on current page day view | ||
*/ | ||
fun onDayClick(date: Date) | ||
|
||
/** | ||
* Invokes when current page collapsed/expanded state changed | ||
*/ | ||
|
||
fun onStateChanged(isCollapsed: Boolean) | ||
|
||
/** | ||
* Invokes when current page height changed | ||
*/ | ||
|
||
fun onHeightChanged(newHeight: Int) | ||
|
||
/** | ||
* Invokes when clicks on next/previous month | ||
*/ | ||
|
||
fun onMonthChanged(forward: Boolean, date: Date? = null) | ||
|
||
/** | ||
* Invokes when current page size has been measured | ||
*/ | ||
|
||
fun onSizeMeasured(monthPage: MonthPage, collapsedHeight: Int, totalHeight: Int) | ||
} |
2 changes: 1 addition & 1 deletion
2
...va/com/yalantis/kalendar/model/KAction.kt → ...java/com/yalantis/vishnu/model/KAction.kt
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
34 changes: 34 additions & 0 deletions
34
vishnu/src/main/java/com/yalantis/vishnu/model/VishnuStylable.kt
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,34 @@ | ||
package com.yalantis.vishnu.model | ||
|
||
import android.content.Context | ||
import android.content.res.TypedArray | ||
import android.graphics.Typeface | ||
import androidx.core.content.ContextCompat | ||
import com.yalantis.vishnu.EMPTY_STRING | ||
import com.yalantis.vishnu.R | ||
|
||
class VishnuStylable(private var context: Context?, attrs: TypedArray) { | ||
|
||
val dragHeight = attrs.getDimensionPixelSize(R.styleable.Vishnu_dragHeight, attrs.resources.getDimensionPixelSize(R.dimen.default_drag_height)) | ||
var dragColor = attrs.getColor(R.styleable.Vishnu_dragColor, ContextCompat.getColor(requireNotNull(context), R.color.light_gray)) | ||
val dragText = attrs.getString(R.styleable.Vishnu_dragText) ?: EMPTY_STRING | ||
var dragTextColor = attrs.getColor(R.styleable.Vishnu_dragTextColor, ContextCompat.getColor(requireNotNull(context),R.color.drag_text_color)) | ||
val dragTextSize = attrs.getDimensionPixelSize(R.styleable.Vishnu_dragTextSize, attrs.resources.getDimensionPixelSize(R.dimen.drag_text_size)) | ||
var selectedDayDrawable = attrs.getResourceId(R.styleable.Vishnu_selectedDayDrawable, R.drawable.day_background) | ||
val pageBackground = attrs.getColor(R.styleable.Vishnu_pageBackground, ContextCompat.getColor(requireNotNull(context),android.R.color.white)) | ||
|
||
var dayTypeface: Typeface = Typeface.MONOSPACE | ||
var weekDayTypeface: Typeface = Typeface.DEFAULT | ||
var monthTypeface: Typeface = Typeface.DEFAULT_BOLD | ||
|
||
var monthSwitchBackground = R.drawable.ic_cell | ||
var weekDayNamesBackground = R.drawable.ic_cell_1_line | ||
|
||
var selectedWeekBackground = R.drawable.selected_week_back | ||
var unselectedWeekBackground = R.drawable.unselected_week | ||
|
||
init { | ||
attrs.recycle() | ||
context = null | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
...in/java/com/yalantis/kalendar/view/Day.kt → ...main/java/com/yalantis/vishnu/view/Day.kt
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
4 changes: 2 additions & 2 deletions
4
.../java/com/yalantis/kalendar/view/Month.kt → ...in/java/com/yalantis/vishnu/view/Month.kt
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.