-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added MovieActivity for opening movie details #5
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for support!
@@ -23,4 +23,4 @@ | |||
</activity> | |||
</application> | |||
|
|||
</manifest> | |||
</manifest> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add endline
@Entity(tableName = TABLE_MOVIE) | ||
data class Movie(@PrimaryKey val id: Long, | ||
val title: String, | ||
val popularity: Int, | ||
val voteAverage: Int, | ||
val posterUrl: String, | ||
val description: String) | ||
val description: String) : Parcelable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can create a read it from database using dao en detail instead to use Parcelable
import io.github.erikjhordanrey.arch_components_paging_library.R | ||
import io.github.erikjhordanrey.arch_components_paging_library.data.room.Movie | ||
import io.github.erikjhordanrey.arch_components_paging_library.view.MoviesActivity.Companion.ARG_MOVIE | ||
import kotlinx.android.synthetic.main.activity_movie.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove wildcard imports please
Added MovieActivity for opening movie details, added ConstraintLayout, added Glide placeholder.