android-cardview

endless recyclerview along with load onscroll from server in recyclerview using cardview to load images and text

自古美人都是妖i 提交于 2019-12-03 22:58:12
I have implemented recyclerview using cardview to fetch images and text from my server using this tutorial: http://www.simplifiedcoding.net/android-custom-listview-with-images-using-recyclerview-and-volley/ . I have successfully fetched the data and modified the code according to my requirement, now i want to implement swipe to refresh and endless scrolling similar to Instagram application. I have tried a lot of tutorials and SO questions however i am unable to implement any of them. I am partially successfully implementing swipe-to-refresh but the app exits with an inconsistency error .

Android CardView with weird border when transparent

蓝咒 提交于 2019-12-03 22:26:51
I'm having some trouble with CardView transparency and card_elevation. Trying to use a CardView transparent the result is: Without transparency: What I'm trying to get is something like this: Here is my xml: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:card_view="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:background="@mipmap/eifell" android:padding="10dp" tools:context=".MainActivity"> <ScrollView android:layout_width="match_parent"

Android while using cardview image is loading very lazy

冷暖自知 提交于 2019-12-03 21:57:10
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" android:orientation="horizontal"> <android.support.v7.widget.CardView xmlns:card_view="http://schemas

BitmapDrawable cannot be cast to RoundRectDrawableWithShadow

╄→гoц情女王★ 提交于 2019-12-03 21:54:56
I am trying to extend a cardview to set the background image. I know that this can not be done with normal cardview. I have searched net and found plenty of solutions for setting a background color to the card view but none for image. My code to do so: public class CCView extends CardView { public CCView (Context context) { super(context); init(); } public CCView (Context context, AttributeSet attrs) { super(context, attrs); init(); } public CCView (Context context, AttributeSet attrs, int defStyleAttr) { super(context, attrs, defStyleAttr); init(); } private void init() { setBackground

Android: how can I insert a RecyclerView inside CardView?

可紊 提交于 2019-12-03 18:49:38
问题 The activity I am talking about must show a RecyclerView populated by CardViews as items. My goal is to show in every CardView a RecyclerView in its turn. Here my Activity's basic xml: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context=".ConjActivity" > <android.support.v7.widget.RecyclerView android

How to make Cardview According to material design in android?

扶醉桌前 提交于 2019-12-03 15:17:52
I saw material design guidelines regarding but it little confusion ,while I design my card having Image on left and some text on right of Image.But I did n't satisfy whether it is according to guide line or not ...pls check and tell. and also I want my dummy text paragraph justify. here is my code :- <android.support.v7.widget.CardView style="@style/MyCardViewStyle" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="wrap_content" android:clipToPadding="false" > <RelativeLayout

ImageView scaleType=“fitXY” is not working in pre-lollipop device inside the Cardview | Android

江枫思渺然 提交于 2019-12-03 14:27:26
I have ImageView which is inside the CardView as below in my code. My ImageView scaleType="fitXY" is not working on pre-lollipop devices.But it looks better on Lollipop devices. Please look at below images. As we see in above image there is white padding around the imageview which i want to remove, I want to look alike image on both pre-lolipop and post lolipop devices. Please help me to short out from the problem. Thanks :) <android.support.v7.widget.CardView android:layout_width="match_parent" android:layout_height="160dp" android:layout_marginRight="10dp" android:layout_marginTop="6dp" app

RecyclerView overlapping without shadow

懵懂的女人 提交于 2019-12-03 12:14:16
I want to develop List like this picture I had used to RecylerView ItemDecorator for overlap. But it's overlapping without shadow. the screen & decorator code is below public class OverlapDecoration extends RecyclerView.ItemDecoration { private final static int vertOverlap = -50; @Override public void getItemOffsets (Rect outRect, View view, RecyclerView parent, RecyclerView.State state) { outRect.set(0, 0, 0, vertOverlap); } } card_layout.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"

Android CardView with a custom shadow color

本小妞迷上赌 提交于 2019-12-03 10:51:47
Is it possible to change the color of the shadow around the CardView? Mainly used to mark selected the card as it were lighted on ? Should be valid on L and pre-L devices. CardView shadow colors are defined in the resources of the CardView library. You can override them by redefining the resource value in your own project but you can not change them dynamically by code. Edit: overriding the resource value only affects pre-Lollipop devices. On Lollipop and above, CardView always uses the native shadow implementation whose color cannot be changed. I've used a small trick. One CardView is put

Card_view material design

旧巷老猫 提交于 2019-12-03 10:32:30
问题 I am trying to use card_view . But it keeps giving an error. Error:(13) No resource identifier found for attribute `'cardCornerRadius' in package 'com.google.example.test_app' <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android