Skip to content

Commit

Permalink
created adapter for merchant list
Browse files Browse the repository at this point in the history
  • Loading branch information
killbotXD committed May 13, 2019
1 parent 00dd1f1 commit 4cb57dd
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package com.example.shashankmohabia.ciba.Utils.Extensions

class MerchantNameData{
var merchantName : String? = null

}
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
package com.example.shashankmohabia.ciba.Utils.Extensions

import android.content.Context
import android.content.Intent
import android.support.v7.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.RelativeLayout
import android.widget.TextView
import android.widget.Toast
import com.example.shashankmohabia.ciba.Core.MenuExpanded
import com.example.shashankmohabia.ciba.R
import com.firebase.ui.firestore.FirestoreRecyclerAdapter
import com.firebase.ui.firestore.FirestoreRecyclerOptions


class SelectMerchantAdapter(options: FirestoreRecyclerOptions<MerchantNameData>, private val mContext: Context) : FirestoreRecyclerAdapter<MerchantNameData, SelectMerchantAdapter.ItemHolder>(options) {
override fun onBindViewHolder(holder: ItemHolder, position: Int, model: MerchantNameData) {
}



override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ItemHolder {
val v : View = LayoutInflater.from(parent.context).inflate(R.layout.merchant_item_option,parent,false)

return ItemHolder(v)
}


class ItemHolder(itemView: View) : RecyclerView.ViewHolder(itemView) {


}






}

6 changes: 6 additions & 0 deletions app/src/main/res/layout/merchant_item_option.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
android:layout_height="match_parent">

</android.support.constraint.ConstraintLayout>

0 comments on commit 4cb57dd

Please sign in to comment.