-
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.
Add ItemView class
- Loading branch information
Aryan-mor
authored and
Aryan-mor
committed
May 21, 2019
1 parent
2235f7e
commit 21737dc
Showing
9 changed files
with
116 additions
and
116 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.
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
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
17 changes: 17 additions & 0 deletions
17
advancerecyclerview/src/main/java/ir/aryanmo/advancerecyclerview/ItemView.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,17 @@ | ||
package ir.aryanmo.advancerecyclerview | ||
|
||
import android.support.annotation.AnimRes | ||
import android.support.annotation.LayoutRes | ||
|
||
class ItemView( | ||
@field:LayoutRes | ||
val itemViewId: Int, | ||
@field:AnimRes | ||
var animation: Int? = null | ||
) { | ||
|
||
companion object { | ||
const val DEFAULT_ANIMATION = android.R.anim.slide_in_left | ||
} | ||
|
||
} |
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.