Skip to content
Advertisement

Tag: android-studio

Get imageView resource

i have been searching for hours, and cant seem to find an answer i have a chess board and its made of 64 imageViews (8X8) and i want to move one pawn to another square, and cant seem to find the way to get the image resource (which is a png image) and set it on the empty square. i

How to get id data from database deleting – setOnLongClickListener ERROR

I have a recyclerview and sql lite database. I keep city names in SQLite database and display them in recyclerview. When the city is setOnclickListener in the recyclerview, the city’s weather is shown and I do this by taking the city’s id from the sql lite database. arrayList.get(position).id it worked in setOnClickListener but it doesnt work setOnLongClickListener I want to

Advertisement