-
Notifications
You must be signed in to change notification settings - Fork 81
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 #126 from arunkumar9t2/develop
Release 2.1.1
- Loading branch information
Showing
23 changed files
with
272 additions
and
121 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
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
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
27 changes: 27 additions & 0 deletions
27
android-app/app/src/main/java/arun/com/chromer/home/epoxycontroller/model/TabModel.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,27 @@ | ||
package arun.com.chromer.home.epoxycontroller.model | ||
|
||
import arun.com.chromer.R | ||
import arun.com.chromer.data.website.model.Website | ||
import arun.com.chromer.tabs.TabsManager | ||
import arun.com.chromer.util.glide.GlideApp | ||
import com.airbnb.epoxy.EpoxyAttribute | ||
import com.airbnb.epoxy.EpoxyModelClass | ||
import dev.arunkumar.android.epoxy.model.KotlinEpoxyModelWithHolder | ||
import dev.arunkumar.android.epoxy.model.KotlinHolder | ||
import kotlinx.android.synthetic.main.widget_tab_model_preview.* | ||
|
||
@EpoxyModelClass(layout = R.layout.widget_tab_model_preview) | ||
abstract class TabModel : KotlinEpoxyModelWithHolder<TabModel.ViewHolder>() { | ||
@EpoxyAttribute | ||
lateinit var tab: TabsManager.Tab | ||
|
||
override fun bind(holder: ViewHolder) { | ||
super.bind(holder) | ||
GlideApp.with(holder.containerView.context) | ||
.load(tab.website ?: Website(tab.url)) | ||
.circleCrop() | ||
.into(holder.icon) | ||
} | ||
|
||
class ViewHolder : KotlinHolder() | ||
} |
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.