|
|
|
|
@ -6,14 +6,15 @@ import net.pokeranalytics.android.ui.view.RowRepresentable |
|
|
|
|
import net.pokeranalytics.android.ui.view.RowViewType |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* A class to display headers as row representable |
|
|
|
|
* A class to display a title (and a value) as a Row Representable object |
|
|
|
|
*/ |
|
|
|
|
class HeaderRowRepresentable( |
|
|
|
|
class TitleRowRepresentable( |
|
|
|
|
var customViewType: RowViewType? = RowViewType.HEADER_TITLE, |
|
|
|
|
override var resId: Int? = null, |
|
|
|
|
var title: String? = null, |
|
|
|
|
var value: String? = null, |
|
|
|
|
var computedStat: ComputedStat? = null |
|
|
|
|
var computedStat: ComputedStat? = null, |
|
|
|
|
var isSelectable: Boolean? = false |
|
|
|
|
) : RowRepresentable { |
|
|
|
|
|
|
|
|
|
override fun localizedTitle(context: Context): String { |
|
|
|
|
@ -27,8 +28,6 @@ class HeaderRowRepresentable( |
|
|
|
|
return "LOCALISATION NOT FOUND" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override val viewType: Int = customViewType?.ordinal ?: RowViewType.HEADER_TITLE.ordinal |
|
|
|
|
|
|
|
|
|
} |