Questions tagged [android-cards]

30 questions
27
votes
5 answers

How to create Google + cards UI in a list view?

I want to create a listView of cards, but after reading this blog post goolge-plus-layout, I'm cards are a viable solution for a list of anything. The animation part seems too memory intensive to load say a listview with more than 40 elements…
Hick
  • 35,524
  • 46
  • 151
  • 243
25
votes
2 answers

Create UI like Chrome for Android

I want to implement this behaviour [https://github.com/gleue/TGLStackedViewController] in an app that I am trying to make. The closest thing/the effect that I want to achieve is how the Google Chrome browser behaves. Tile/card interface Be able to…
momoja
  • 938
  • 9
  • 23
9
votes
2 answers

CardView cardUseCompatPadding

I am developing an Android app for both Lollipop and Previous versions. I am using CardView (This cardView does not have any child, it simply placed behind my View) to create shadow. But the problem arise when it runs on the pre Lollipop devices. …
4
votes
1 answer

How to pass data to fragment when click on cardview in onBindViewHolder?

Here is my adapter code and I want to pass data to the "ParticularFragment" Note : ParticularFragment extends Fragment public class TopicsAdapter extends RecyclerView.Adapter { private Context context; private…
2
votes
1 answer

Cardview is all goes into one card

I have made and app with CardView, but my cardview is going into one card. My Code: recyclerview_activity.xml:
1
vote
1 answer

How to disable card-view in a file after clicking submit button in another file

How I can access the CardView when the submit button is in another layout? So basically after I click the submit button in File1.java, I want to make the cardview in Menu.java disabled and changed the…
Mary
  • 25
  • 9
1
vote
1 answer

How do I access a text file from GCP Storage and parse it?

I have an app I want to make for Android. I have decided to store the information I will display in a text file and parse it, rather than a database since the data is so simple. The info is just two lines of text, a word and a short description of…
Frank B.
  • 204
  • 5
  • 17
1
vote
1 answer

ListView contained in a CardView is not showing full length

I have a listview inside of a cardview, and although the height it set to wrap_content, it doesn't expand to fit the full size of the listview. It only displays the first item.
1
vote
1 answer

What text size and color in Android Wear card

I need to create a custom card. So its text should be the same as default in Android Wear cards. I use the next layout to create custom card
Kiryl Ivanou
  • 1,015
  • 2
  • 12
  • 22
1
vote
1 answer

How to set icon on top of Android Wear card

How in Android Wear app set icon on top of card like on picture below (green icon) Thank you very much!
Kiryl Ivanou
  • 1,015
  • 2
  • 12
  • 22
1
vote
0 answers

Button not working Android Wear Custom Cards

I'm trying to create a custom card in android wear app (this card is created by WearableListenerService),my problem is when the card appears and my application is closed the button on the card does not work, but when the application is running the…
1
vote
0 answers

Android: Cardslib Errors when referencing library

So I wanted to implement the Cardslib from Gabriele Mariotti and I followed his steps to successfully add cardslib as a library to my project. But as soon as I add the library reference I get these errors: G:\UI Kit\Android Sample…
Pjayness
  • 365
  • 1
  • 6
  • 22
1
vote
3 answers

Custom layout inside FragmentGridPagerAdapter

I am trying to add a custom layout page within cards. Here: https://developer.android.com/training/wearables/ui/2d-picker.html explains that CardFragment can easily add a card by: CardFragment fragment = CardFragment.create(title, text,…
MoGa
  • 635
  • 6
  • 14
1
vote
2 answers

Cardslib fragment undo swipe

I am trying to use the Cardslib library with a list of cards that I can swipe out and undo. My issue is that the undo bar always shows and clicking on undo doesn't do anything. By debugging I realized that my problem is that the CardArrayAdapter…
Gregriggins36
  • 905
  • 10
  • 20
1
vote
1 answer

Get ID inside onContextItemSelected with CardsUI

I have an app which has had a ListView which is connected to a SQL database... Now I want to update the app to use the CardsUI https://github.com/nadavfima/cardsui-for-android This code has been working fine until now: public boolean…
user754730
  • 1,341
  • 5
  • 31
  • 62
1
2