EditText in ListView without it recycling input

Still new to android and even more to custom cursor adapter so I'm having trouble understanding how to prevent my listview from recycling views to prevent input from one edittext to show up in...

Get the position of view in LinearLayout (Android)

A had a custom ListView recently. Then I had to display all the list items without scrollbar. Following the method to place items in LinearLayout I changed my code but I can't bind onClickListener...

Remove element from listview (swipe or click)

I'm trying to create a dynamic listview. I can add an item but i can't remove it right now. The code actually it's very simple and every guide i saw are too much complicated for me and my code. I...

SwipeRefreshLayout Got ACTION_MOVE event but don't have an active pointer id

I am using SwipeRefreshLayout with AppCompat ListFragment. It seems to work fine when I pull to refresh but sometimes in the log I can see the following error. This happens if I pull the list...

Android Espresso listView scroll to

I have a list_view, which I want to test. list_view item layout is RelativeLayout, adapter is ItemAdapter. This code works fine (item contatining Daft Punk is visible): @Test public void...

Android ViewPager with RecyclerView works incorrectly inside BottomSheet

When I try to scroll list, sometimes this works incorrect - BottomSheet intercepts the scroll event and hides. How to reproduce this: Open Bottom Sheet Change a page of ViewPager Try scroll the...

ViewModel injection (inside View) with MVVM Architecture

This is how I create an Adapter with MVVM (+Databinding) and Dagger-2.11-rc2: Adapter: public class ItemAdapter extends RecyclerView.Adapter<BindableViewHolder<ViewDataBinding>>{ private...

How to convert whole relative layout into Pdf

I have a layout with several relative layout with scrollview like this : <?xml version="1.0" encoding="utf-8"?> <ScrollView android:id="@+id/root" ...

Update list items in PagingLibrary w/o using Room (Network only)

I'm using Paging Library to load data from network using ItemKeyedDataSource. After fetching items user can edit them, this updates are done inside in Memory cache (no database like Room is...

How to delete on swipe an item from Filtered list? [RecyclerView]

I'm having an issue while trying to delete an item from a RecyclerView after i've searched for it by using SearchView, while if i don't use the SearchView and delete the item normally it's works...

items and categories using FirestoreRecyclerAdapter

so i want to create something like this: example as in create a list of items that separated by categories (i have the Item class which holds every item's category) i managed to create it using...

Observe LiveData from ListView current Item

Basically i want to retrieve a int(score) generated from the current ListViewItem and assign it back to concrete TextView in my ListView.I am using SharedViewModel with LiveData but when i observe...

calling a alert dialog or another bottom sheet from a bottom sheet dialog causes background to flick

https://imgur.com/gallery/xntpREw Has anyone faced this issue or am I doing anything wrong UPDATE: I tested the same app on android 8 and 9 version and it doesn't give this glitch.So, this might...

Firestore data in Nested Recyclerview

I'm trying to retrive data from Firestore in a fragment. My onCreateView function is this @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, ...

Dynamically add subItems in nested recyclerview with a button

I have a nested recyclerview and I want to dynamically add subitems into individual items as well as being able to add items. I am able to add items, but when I add subitems, the program just...

Can't open file from intent in Android 10

I'm trying to access a file from Intent.ACTION_GET_CONTENT, when I try it on my device (which is Android 8), it works perfectly fine. But then, when I try it on my friends' device (Android 10),...

Why Recyclerview doesn't scroll inside AppBarLayout

I have a layout with CoordinatorLayout, AppBarLayout and RecyclerView. I am facing scroll issue when add RecyclerView inside AppBarLayout, RecyclerView never scroll while AppBarLayout is expanded...

Scrapy scrapes duplicates and ignores unique entries - changes with every run

I'm working on a project to scrape Hoteldata ( Name, Id, Price,...) from Tripadvisor. My scraper seems to work: after the script is done my database is populated with 264 rows of data - just as...

builtins.ModuleNotFoundError: No module named 'itemadapter'

I am trying to run to spider on scrapyhub and getting this error. But this spider working well on local machine. I already change the name of spider project and spider module. File...

How can I read Scrapy Start_urls from MySql database?

I am trying to read and write all output from Mysql. When My spiders start scraping I want to get all URL from MySQL database so I try to make a function to read data. readdata.py: import...

Cannot get Python3 to recognize installed modules

I have scoured across StackOverflow and Google and have not been able to find a solution. I'm currently running the macOS Big Sur beta and I have Python 3.8.5 installed via homebrew. I have pip3...

How to center content of GridLayoutManager?

Just trying to center my RecyclerView horizontal. Here is the xml: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" ...

RecyclerView(Kotlin): Adding an swipe to delete functionality on a ToDo app with data in SQL database

I am new to kotlin and android studio and currently I am trying to build an todo list applications with my own ideas. Its mostly done but I have to add edit and delete functionality to the tasks...

How to ask ACCESS_SURFACE_FLINGER permission on Android with Kivy/Buildozer?

Hi there and first of all a big thanks to all of you who helped me without knowing it. For a noob like me, stack overflow is really precious. I'm new to coding, learned Python3 to see if I can,...

Update status from viewholder on click android kotlin

I have a shopping cart (Recycle View). When you click on a product, it should change its state(change the background background and the status in the ROOM) I thought to solve this problem like...

Python scrapy middleware not working as expected

I've created a custom middleware class to handle to handle refused http requests. The middleware is attached to a specific spider and the logs show its attached successfully and detached the...

Android - RecyclerView - edittext notifyItemChanged keep focus and continue typing

I have a RecyclerView which has an EditText in its items. For each EditText I have added a textChangeListener. Whenever the user types a character I want to do an input validation and so I can...

Android Studio Kotlin: RecyclerView with multiple viewtypes with different data

I am creating a RecyclerView that contains multiple view types. The First viewType (ViewType1) takes a productName, price and quantity. While the second viewType (ViewType2) takes productName,...

Install Scrapy on Windows Server 2019, running in a Docker container

I want to install Scrapy on Windows Server 2019, running in a Docker container (please see here and here for the history of my installation). On my local Windows 10 machine I can run my Scrapy...

How to implement information from Retrofit into a viewPager2 layout widgets

So I'm building this Carousel project that shows an image and some text on the app. I've gotten the structure down by building a prototype. I was able to use Retrofit to call the information from...