android-cardview

Android while using cardview image is loading very lazy

时光总嘲笑我的痴心妄想 提交于 2019-12-12 08:16:20
问题 I am loading pictures (below ~3MB in size) into Cardview from a database and it was infalte in Listviewstview. The loading and browsing of these pictures is way too slow. Is there any method to downscale these pictures to speed up & sometimes dispalyind [Duplicate] images on other card view? cardview xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"

No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating')

♀尐吖头ヾ 提交于 2019-12-12 07:16:58
问题 I am getting these two error messages when trying to compile: /Users/dericw/coding/myApplication/lfdate/android/app/build/intermediates/exploded-aar/com.android.support/cardview-v7/23.2.1/res/values-v23/values-v23.xml Error:(3, 5) No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating'). Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal

CardView not showing shadow elevation

自作多情 提交于 2019-12-12 07:12:57
问题 I am working with cardviews but the problem is my CardView is not showing any elevation or shadow. I have already tried some of the methods suggested in stackoverflow answers like I have tried using elevation and shadow property. I have also tried using card_view:cardUseCompatPadding="true", but without any success. This is my xml file <?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

Onclick event is not triggered for Image button placed on Image View in the cardview

回眸只為那壹抹淺笑 提交于 2019-12-12 06:45:00
问题 I have placed image button on top of image view which is inside a CardView. I want to trigger some action when user clicks on Image button. However first problem is when I get the image button using findViewById inside MainActivity, it returns null(may be because image view is inside item_row xml which shows row data in the card view). The other problem is how to tackle such scenario where activity_main.xml is different which contains recycler view which has item_row.xml having image button

Toast message onClick NOT SHOWING (RecycleView)

一笑奈何 提交于 2019-12-12 06:07:28
问题 Im trying show a toast msg when clicked on a item from my RecycleView, Ive tried many examples, but its not giving me anything. Can somebody give me a different example that i can follow, at the end i wanna set the onClick to show a new fragment. If I can get an example on that, it will be great. Im using this code: public class MovieAdapter extends RecyclerView.Adapter<MovieAdapter.ViewHolder> { private List<Movie> movies; private int card_layout; private Context mContext; public

How do I show a fragment in a card view - Android

*爱你&永不变心* 提交于 2019-12-12 06:02:01
问题 I want to show a fragment in a card view of android . help required . I have made some fragments already , say one of them is Settings_fragment.xml <android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" android:id="@+id/cardView1" android:layout_gravity="center" android:layout_width="match_parent" android:layout_height="wrap_content" android:padding="20dp" card_view:cardUseCompatPadding="true" card_view:cardCornerRadius="4dp" card_view:cardElevation="4dp

android studio CoordinatorLayout & RecyclerView blank?

妖精的绣舞 提交于 2019-12-12 05:08:36
问题 Runing my app i get a blank activity, for the time being i only have a list which should be projecting images, by reading these images addresses from JSON, and from the logcat i could see the the addresses being passed to the app, and logged, but not sure why the layout is not getting structured and i get a blank white screen. Using Genymotion - android s6 - android studio 2.1.1 MyActivity; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map

Create CardView with dynamic custom list inside

馋奶兔 提交于 2019-12-12 04:06:52
问题 I create a RecyclerView with CardViews in my app. Now I want to add inside each CardView a new List of custom Views, with a custom layout (see example Image). When the add button is pressed, there should be insert a new row of this layout inside the card. How do I realize that? In the internet I readed, that a ListView inside the CardView is not possible, because a ListView is scrollable, and there should not be two scrollable Views on the activity (thats what I found..) the red marked row is

Issue with SearchBar and RecyclerView and CardView

て烟熏妆下的殇ゞ 提交于 2019-12-11 19:14:22
问题 I'm using the SearchBar following the tutorial Android Development Tutorial - Search on SQLite data. I have a problem with the layout. Please see attached image. I'm using CardView and RecyclerView . Can you please tell me what is wrong in my layout? check image main_activity.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools"

Use card views as buttons

大城市里の小女人 提交于 2019-12-11 18:14:59
问题 On the home screen of my app i have a list of card views that i want to use as buttons to switch to their related fragment. i want to do it similar to this instead of writing a onclick method for every card. private void BottomNavigation_NavigationItemSelected(object sender, BottomNavigationView.NavigationItemSelectedEventArgs e) { Fragment fragment = null; switch (e.Item.ItemId) { case Resource.Id.menu_home: fragment = homeFragment; break; case Resource.Id.menu_favourites: fragment =