|
|
|
|
@ -2,10 +2,7 @@ package net.pokeranalytics.android.ui.modules.handhistory |
|
|
|
|
|
|
|
|
|
import android.content.res.ColorStateList |
|
|
|
|
import android.text.InputType |
|
|
|
|
import android.view.LayoutInflater |
|
|
|
|
import android.view.MotionEvent |
|
|
|
|
import android.view.View |
|
|
|
|
import android.view.ViewGroup |
|
|
|
|
import android.view.* |
|
|
|
|
import android.widget.Button |
|
|
|
|
import android.widget.EditText |
|
|
|
|
import android.widget.LinearLayout |
|
|
|
|
@ -303,10 +300,14 @@ class HandHistoryAdapter( |
|
|
|
|
layout.addView(cardView) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (layout.isEmpty() && !isBoard) { |
|
|
|
|
if (layout.isEmpty()) { |
|
|
|
|
val hintView = TextView(itemView.context) |
|
|
|
|
hintView.text = itemView.context.getString(R.string.hand) |
|
|
|
|
val hintResId = if (isBoard) R.string.board else R.string.hand |
|
|
|
|
hintView.text = itemView.context.getString(hintResId) |
|
|
|
|
layout.addView(hintView) |
|
|
|
|
layout.gravity = Gravity.CENTER |
|
|
|
|
} else { |
|
|
|
|
layout.gravity = if (isBoard) Gravity.START or Gravity.CENTER_VERTICAL else Gravity.CENTER |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
layout.setOnClickListener { |
|
|
|
|
|