Skip to content

Commit

Permalink
refactored theming, documentation, etc
Browse files Browse the repository at this point in the history
  • Loading branch information
fennifith committed Apr 25, 2019
1 parent a1ea6a2 commit df0b9e4
Show file tree
Hide file tree
Showing 6 changed files with 372 additions and 447 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ android.enableJetifier=true
kotlin.code.style=official
# Data binding v2 compiler for binding classes
# https://developer.android.com/topic/libraries/data-binding/start.html#preview-compiler
android.databinding.enableV2=true
#android.databinding.enableV2=true
19 changes: 19 additions & 0 deletions library/src/main/java/dev/doubledot/doki/extensions/TypedArray.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package dev.doubledot.doki.extensions

import android.content.res.TypedArray
import android.graphics.drawable.Drawable
import androidx.annotation.AttrRes

internal fun TypedArray.getDrawableOrNull(styleable: Int) : Drawable? {
return try {
getDrawable(styleable)
} catch (e: Exception) {
null
}
}

internal fun TypedArray.getColorOrNull(styleable : Int) : Int? {
return if (hasValue(styleable))
getColor(styleable, 0)
else null
}
17 changes: 0 additions & 17 deletions library/src/main/java/dev/doubledot/doki/models/DokiResponse.kt

This file was deleted.

This file was deleted.

Loading

0 comments on commit df0b9e4

Please sign in to comment.