Skip to content
View pritomzap's full-sized avatar
🏠
Working from home
🏠
Working from home
  • Newroz Technology
  • Dhaka

Block or report pritomzap

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. How to user BaseAdapter How to user BaseAdapter
    1
            //Initiate the adapter with type
    2
            var mAdapter = BaseAdapter<String>()
    3
    
                  
    4
            //Sample data
    5
            mAdapter.listOfItems = mutableListOf("2","3","2","3","2","3")
  2. BaseAdapter class for recyclerView BaseAdapter class for recyclerView
    1
    class BaseAdapter<T>: RecyclerView.Adapter<BaseViewHolder<T>>(){
    2
        var listOfItems:MutableList<T>? = mutableListOf()
    3
        set(value) {
    4
            field = value
    5
            notifyDataSetChanged()
  3. cicdAndroidBitbucketPipeline.yml cicdAndroidBitbucketPipeline.yml
    1
    pipelines: // start of the pipeline
    2
      default: // means that on every push or merge on main or master branch will trigger the pipeline
    3
        - step: //step 1
    4
            name: Android Sdk Setup 
    5
            image: androidsdk/android-30 // we are using official android 30 sdk
  4. A baseViewHolder class for base adapter A baseViewHolder class for base adapter
    1
    class BaseViewHolder<T> internal constructor(private val binding:ViewBinding,private val experssion:(T,ViewBinding)->Unit)
    2
                                                :RecyclerView.ViewHolder(binding.root){
    3
        fun bind(item:T){ 
    4
          experssion(item,binding)
    5
        }
  5. cicdAndroidStep1.yml cicdAndroidStep1.yml
    1
    pipelines: // start of the pipeline
    2
      default: // means that on every push or merge on main or master branch will trigger the pipeline
    3
        - step: //step 1
    4
            name: Android Sdk Setup 
    5
            image: androidsdk/android-30 // we are using official android 30 sdk
  6. cicdAndroidStep2.yml cicdAndroidStep2.yml
    1
    - step:
    2
           name: Installing node.js and npm appcenter-cli
    3
           image: node:10.0.0
    4
           script:
    5
             - npm install // node js package manager installation