-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from amirisback/CustomView
create: Frogo Recycler View
- Loading branch information
Showing
24 changed files
with
85 additions
and
40 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
2 changes: 1 addition & 1 deletion
2
...lerviewadapter/ExampleInstrumentedTest.kt → ...gobox/recycler/ExampleInstrumentedTest.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
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
10 changes: 5 additions & 5 deletions
10
...adapter/javasample/DetailViewAdapter.java → ...ecycler/javasample/DetailViewAdapter.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
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
...ewadapter/kotlinsample/MainViewAdapter.kt → .../recycler/kotlinsample/MainViewAdapter.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
...recyclerviewadapter/mdoel/ExampleModel.kt → ...m/frogobox/recycler/model/ExampleModel.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
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
...gobox/frogoviewadapter/ExampleUnitTest.kt → .../com/frogobox/recycler/ExampleUnitTest.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.frogobox.frogoviewadapter | ||
package com.frogobox.recycler | ||
|
||
import org.junit.Test | ||
|
||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ogoviewadapter/ExampleInstrumentedTest.kt → ...gobox/recycler/ExampleInstrumentedTest.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
...oviewadapter/src/main/AndroidManifest.xml → frogo/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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.frogobox.frogoviewadapter" /> | ||
package="com.frogobox.recycler" /> |
2 changes: 1 addition & 1 deletion
2
...goviewadapter/FrogoRecyclerViewAdapter.kt → ...ycler/adapter/FrogoRecyclerViewAdapter.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
...ogoviewadapter/FrogoRecyclerViewHolder.kt → ...cycler/adapter/FrogoRecyclerViewHolder.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
...oviewadapter/FrogoRecyclerViewListener.kt → ...cler/adapter/FrogoRecyclerViewListener.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.frogobox.frogoviewadapter | ||
package com.frogobox.recycler.adapter | ||
|
||
/** | ||
* Created by Faisal Amir | ||
|
46 changes: 46 additions & 0 deletions
46
frogo/src/main/java/com/frogobox/recycler/view/FrogoRecyclerView.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,46 @@ | ||
package com.frogobox.recycler.view | ||
|
||
import android.content.Context | ||
import android.util.AttributeSet | ||
import androidx.recyclerview.widget.LinearLayoutManager | ||
import androidx.recyclerview.widget.RecyclerView | ||
import androidx.recyclerview.widget.StaggeredGridLayoutManager | ||
|
||
/** | ||
* Created by Faisal Amir | ||
* FrogoBox Inc License | ||
* ========================================= | ||
* frogo-recycler-view-adapter | ||
* Copyright (C) 30/12/2019. | ||
* All rights reserved | ||
* ----------------------------------------- | ||
* Name : Muhammad Faisal Amir | ||
* E-mail : [email protected] | ||
* Github : github.com/amirisback | ||
* LinkedIn : linkedin.com/in/faisalamircs | ||
* ----------------------------------------- | ||
* FrogoBox Software Industries | ||
* com.frogobox.frogoviewadapter.view | ||
* | ||
*/ | ||
class FrogoRecyclerView : RecyclerView { | ||
|
||
constructor(context: Context) : super(context) | ||
|
||
constructor(context: Context, attrs: AttributeSet?) : super(context, attrs) | ||
|
||
constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super( | ||
context, | ||
attrs, | ||
defStyleAttr | ||
) | ||
|
||
fun isViewLinear() { | ||
layoutManager = LinearLayoutManager(context) | ||
} | ||
|
||
fun isViewStaggeredGrid(spanCount : Int) { | ||
layoutManager = StaggeredGridLayoutManager(spanCount, StaggeredGridLayoutManager.VERTICAL) | ||
} | ||
|
||
} |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ogorecyclerviewadapter/ExampleUnitTest.kt → .../com/frogobox/recycler/ExampleUnitTest.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.frogobox.frogorecyclerviewadapter | ||
package com.frogobox.recycler | ||
|
||
import org.junit.Test | ||
|
||
|
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,2 +1,2 @@ | ||
include ':app', ':frogoviewadapter' | ||
include ':app', ':frogo' | ||
rootProject.name='FrogoRecyclerViewAdapter' |