🏠
Working from home
As a teenager at school and college, I was the kid other students approached about issues with their phones or laptop. I was the go-to guy for fixing resolving
-
Newroz Technology
- Dhaka
Pinned Loading
-
How to user BaseAdapter
How to user BaseAdapter 1//Initiate the adapter with type2var mAdapter = BaseAdapter<String>()
34//Sample data5mAdapter.listOfItems = mutableListOf("2","3","2","3","2","3")
-
BaseAdapter class for recyclerView
BaseAdapter class for recyclerView 1class BaseAdapter<T>: RecyclerView.Adapter<BaseViewHolder<T>>(){
2var listOfItems:MutableList<T>? = mutableListOf()
3set(value) {4field = value5notifyDataSetChanged()
-
cicdAndroidBitbucketPipeline.yml
cicdAndroidBitbucketPipeline.yml 1pipelines: // start of the pipeline
2default: // means that on every push or merge on main or master branch will trigger the pipeline
3- step: //step 1
4name: Android Sdk Setup
5image: androidsdk/android-30 // we are using official android 30 sdk
-
A baseViewHolder class for base adapter
A baseViewHolder class for base adapter 1class BaseViewHolder<T> internal constructor(private val binding:ViewBinding,private val experssion:(T,ViewBinding)->Unit)
2:RecyclerView.ViewHolder(binding.root){
3fun bind(item:T){
4experssion(item,binding)
5}
-
cicdAndroidStep1.yml
cicdAndroidStep1.yml 1pipelines: // start of the pipeline
2default: // means that on every push or merge on main or master branch will trigger the pipeline
3- step: //step 1
4name: Android Sdk Setup
5image: androidsdk/android-30 // we are using official android 30 sdk
-
cicdAndroidStep2.yml
cicdAndroidStep2.yml 1- step:2name: Installing node.js and npm appcenter-cli
3image: node:10.0.0
4script:5- npm install // node js package manager installation
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.
