parent
9a4f194564
commit
b33693488d
@ -0,0 +1,60 @@ |
||||
package net.pokeranalytics.android.ui.fragment.components |
||||
|
||||
import android.os.Bundle |
||||
import android.view.LayoutInflater |
||||
import android.view.View |
||||
import kotlinx.android.synthetic.main.bottom_sheet_double_edit_text.* |
||||
import kotlinx.android.synthetic.main.fragment_bottom_sheet.view.* |
||||
import net.pokeranalytics.android.R |
||||
import net.pokeranalytics.android.model.realm.Game |
||||
import net.pokeranalytics.android.ui.adapter.components.DisplayableDataSource |
||||
import net.pokeranalytics.android.ui.adapter.components.DisplayableDelegate |
||||
|
||||
|
||||
class BottomSheetDoubleEditTextFragment : BottomSheetFragment(), DisplayableDelegate { |
||||
|
||||
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { |
||||
super.onViewCreated(view, savedInstanceState) |
||||
initData() |
||||
initUI() |
||||
} |
||||
|
||||
override fun clickOnCheck() { |
||||
super.clickOnCheck() |
||||
valueDelegate.setValue("", row) |
||||
dismiss() |
||||
} |
||||
|
||||
override fun onStart() { |
||||
super.onStart() |
||||
smallBlind.requestFocus() |
||||
} |
||||
|
||||
override fun data(position: Int): DisplayableDataSource { |
||||
return Game() |
||||
} |
||||
|
||||
override fun onRowSelected(position: Int) { |
||||
} |
||||
|
||||
override fun size(): Int { |
||||
return 0 |
||||
} |
||||
|
||||
/** |
||||
* Init data |
||||
*/ |
||||
private fun initData() { |
||||
val data = getData() |
||||
} |
||||
|
||||
/** |
||||
* Init UI |
||||
*/ |
||||
private fun initUI() { |
||||
|
||||
LayoutInflater.from(requireContext()).inflate(R.layout.bottom_sheet_double_edit_text, view?.bottomSheetContainer, true) |
||||
|
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,13 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:orientation="horizontal"> |
||||
|
||||
<androidx.recyclerview.widget.RecyclerView |
||||
android:id="@+id/gameNameRecyclerView" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="wrap_content" |
||||
android:minHeight="200dp" /> |
||||
|
||||
</LinearLayout> |
||||
Loading…
Reference in new issue