项目作者: meniman98

项目描述 :
A quiz on albums! Think you know your albums? Go ahead and take the quiz!
高级语言: Kotlin
项目地址: git://github.com/meniman98/Android-Album-Quiz.git
创建时间: 2021-02-11T01:49:13Z
项目社区:https://github.com/meniman98/Android-Album-Quiz

开源协议:

下载


Android-Album-Quiz

A quiz on albums! Think you know your albums? Go ahead and take the quiz!

Setup and Dependencies

Righto, the boring stuff, lets go. Make sure this stuff is in your plugin:

  1. plugins {
  2. id 'com.android.application'
  3. id 'kotlin-android'
  4. id 'kotlin-kapt'
  5. id 'kotlin-android-extensions'
  6. id 'androidx.navigation.safeargs'
  7. }
  8. android {
  9. compileSdkVersion 30
  10. buildToolsVersion "30.0.3"
  11. // this line here for data binding
  12. buildFeatures {
  13. dataBinding true
  14. }
  15. // Navigation
  16. implementation "android.arch.navigation:navigation-fragment-ktx:$version_navigation"
  17. implementation "android.arch.navigation:navigation-ui-ktx:$version_navigation"
  18. implementation 'androidx.legacy:legacy-support-v4:1.0.0'
  19. // for safe args
  20. classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$version_navigation"
  21. buildscript {
  22. ext.kotlin_version = "1.3.72"
  23. ext {
  24. version_kotlin = "1.3.72"
  25. version_core = "1.3.1"
  26. version_constraint_layout = "2.0.0-rc1"
  27. version_lifecycle_extensions = "2.2.0"
  28. version_material = "1.2.0"
  29. version_navigation = "2.3.0"
  30. }

We got the boring stuff done. Have fun playing

Errors I ran into

When creating the fragment, the binding didn’t work. I simply forgot to wrap the xml of the fragment with very important to do this to enable databinding. Caused me
a slight headache for forgetting this, but it’s good that this happened so I won’t forget again