added comments

dev_raz_wip
Laurent 7 years ago
parent 40bf1b6135
commit c102814888
  1. 23
      app/src/main/java/net/pokeranalytics/android/ui/view/RowRepresentable.kt

@ -7,6 +7,18 @@ import net.pokeranalytics.android.ui.fragment.components.bottomsheet.BottomSheet
interface RowRepresentable {
/**
* The resource identifier of the localized title
*/
val resId: Int?
get() {
return null
}
/**
* The localized title of the row
*/
fun localizedTitle(context: Context): String {
this.resId?.let {
return context.getString(it)
@ -14,16 +26,17 @@ interface RowRepresentable {
return "LOCALISATION NOT FOUND"
}
val resId: Int?
get() {
return null
}
/**
* The type of view associated with the row
*/
val viewType: Int
get() {
return 0
}
/**
* The type of bottom sheet displayed when the row is clicked on
*/
val bottomSheetType: BottomSheetType
get() {
return BottomSheetType.NONE

Loading…
Cancel
Save