cardview

How to delete or remove CardView from RecyclerView? Android Studio

限于喜欢 提交于 2021-02-08 10:33:39
问题 On my RecyclerView are CardViews containing details about a certain exercise and on my CardView, there is an ImageDeleteBtn beside it. How do I delete the CardView from the RecyclerView and on Firebase? This is my Adapter package com.lim.fiture.fiture.adapters; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget

How to delete or remove CardView from RecyclerView? Android Studio

岁酱吖の 提交于 2021-02-08 10:33:29
问题 On my RecyclerView are CardViews containing details about a certain exercise and on my CardView, there is an ImageDeleteBtn beside it. How do I delete the CardView from the RecyclerView and on Firebase? This is my Adapter package com.lim.fiture.fiture.adapters; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget

Android Studio: Component is selected but Attributes editor says “No component selected”

女生的网名这么多〃 提交于 2021-02-08 04:00:52
问题 TL;DR: Although I can edit component attributes directly in XML (sanity check — I'm sane) the Attributes inspector pane claims nothing is selected. I.e. "It doesn't work." I added a CardView to the main layout. It does show up in the Component Tree and in the Design Editor. I select the CardView in the Component Tree pane, but the Attributes pane says "No component selected". I'm using Android Studio 3.5.2 on MacOS 10.15.1. This happens with all three CardViews (see screenshot). Clicking the

android cardview showing border around card

心不动则不痛 提交于 2020-12-05 05:00:22
问题 Android cardview is showing unnecessary border around the card. I have tried different things but I am not able to remove it. It happens when I give the card a custom background color. When I remove the cardBackgroundColor, and when default is used. Then unnecessary border is not visible. I have to use shadow and tranparent color code. Here is my layout CardView <RelativeLayout android:id="@+id/rlUserNamePassword" android:layout_width="match_parent" android:background="@android:color

Cardview ripple effect doesn't work

安稳与你 提交于 2020-08-07 03:49:41
问题 Min SDK is 21. When I click on a cardview in my recycler adapter, the ripple effect doesn't happen and just goes to the next screen. The recyclerview is inside a fragment. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v7.widget.CardView android:id="@+id

Cardview ripple effect doesn't work

无人久伴 提交于 2020-08-07 03:49:31
问题 Min SDK is 21. When I click on a cardview in my recycler adapter, the ripple effect doesn't happen and just goes to the next screen. The recyclerview is inside a fragment. <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" android:orientation="vertical"> <android.support.v7.widget.CardView android:id="@+id

Room database + recyclerview, how to pass data to another activity and then retrieve information from database based on passed data

余生颓废 提交于 2020-07-22 10:53:06
问题 I'm trying to get Company id (&& Company name) in first activity, pass it into the second activity and there I'd like to retrieve all data from database based on that id (&& name), but the app crashes, below is the code. can someone provide me a working code snippet. Any kind of help will be appreciated. AdapterCompany public class AdapterCompany extends RecyclerView.Adapter<AdapterCompany.AdapterCompanyHolder> { private List<EntityCompany> entityCompanies = new ArrayList<>(); private