Questions tagged [cardscrollview]

CardScrollView creates a view that shows a horizontally scrolling list of views, referred to as cards.

CardScrollView creates a view that shows a horizontally scrolling list of views, referred to as cards. The child views come from the CardScrollAdapter associated with the card scroller view. Each card has a unique Object identifier and represents a certain Object item. Conceptually, a card scroller displays a key-value database, where each card graphically represents the value (item) that is associated with the key (id).

CardScrollView will notify you using the listener interfaces from AdapterView both when an item being selected and when an item is clicked .

  • An item is selected after the user finishes scrolling through the list and the view settles on that item.
  • An item is clicked when the user taps the touchpad while that item is currently selected.

YOu should be using this tag if your question is related to the use of CardScrollView class or its APIs.

15 questions
4
votes
2 answers

Using both a CardScrollView and a ScrollView

I have a CardScrollView with multiple cards. Swiping left and right moves between the cards. Some of the cards have a lot of content on them. I used a ScrollView so the user can scroll through the card to see the content. Glass doesn't know…
RoboCop87
  • 825
  • 1
  • 8
  • 21
3
votes
1 answer

Bottom scrollBar in CardScrollView

I have a question about CardScrollView. Since each item on the CardScrollView takes up the full card, I would like to have the scrollbar showing at the bottom of the Card to indicate there are other items within this CardScrollView just like the the…
Jacky So
  • 233
  • 5
  • 12
2
votes
1 answer

Defining cards as WebViews while still using CardScrollView: Google Glass

I'm trying to develop a simple Glass example (Immersion) where each card displays a WebView in fullscreen (not within CardBuilder.Layout.EMBED_INSIDE). I'm following this answer: Google Glass Immersion Custom Layout without…
Augusto
  • 115
  • 1
  • 10
1
vote
1 answer

Google Glass listing Items

Lately there have been lots of changes to Google Glass GDK and I'm getting a little confused. I have a list of discovered Bluetooth devices and I want to list them with Name, address and if possible more info (as paired, last connection, etc.)…
1
vote
1 answer

Google Glass - 'Jump' to a card in CardScrollView?

I have a Google Glass app that uses a CardScrollView to display a series of Cards. Touch gestures work to move between cards, but I need to be able to jump to specific cards by their index. I want to use contextual voice commands (ignore its…
0
votes
1 answer

Android Wear CardFrame not adapting to shape of screen

I'm using the CardFrame exactly like in the official tutorial. However the card frame is getting displayed on my moto360 (round shaped display) with borders at the side. It is also displayed wrong in android studio. The Card is used in the first…
0
votes
2 answers

How to know a user as moved to a new Card in a Google Glass app?

Is there a way for the CardScrollView or CardScrollAdapter to let me know when the user moves from one card to another? Initially I was using the GestureDetector to detect swipes to the left or right, but in Glass applications users can use, e.g.,…
Augusto
  • 115
  • 1
  • 10
0
votes
1 answer

How to implement custom CardScrollView on Google Glass?

I try'd to use a CardScrollView instead of a single View.I can set cards(with custom layouts) successfully with my code.I need to change the values of my TextFields when a new Message arrived from my LocalBroadcastReceiver. Do you have some idea…
navacorn
  • 13
  • 3
0
votes
1 answer

Set onItemClickListener on only a particular card in CardScrollView?

I am making a quiz app in the google glass. After the clicking the main activity (Which is a question) the user is taken to a list of cards, in mCardScrollView (which are answers to the question in main activity), I want user to be taken to the…
ledzee
  • 301
  • 2
  • 3
  • 16
0
votes
1 answer

CardScrollViewAnimation Listener?

I want to implement some small task or call invalidateOptionsMenu(); whenever the animation done by mCardScrollView.animate(position, Animation.INSERTION); is completed. So i was wondering is there a way to implement this. Do i have to write my own…
Sheraz Ahmad Khilji
  • 8,300
  • 9
  • 52
  • 84
0
votes
1 answer

Google Glass - 'Jump' to a card in CardScrollView via setSelection doesnt work

For me the function cardScrollView.setSelection(cardScrollView.getSelectedItemPosition() + 1) doesnt seem to work. Im calling the function after my glass receives a message from my nodeJs server, but it just doesnt seem to do anything. It's not…
0
votes
2 answers

Google Glass: How to animate change card in cardScrollView?

Is it possible to do change programmatically the current card to a new position with a slide animation ? The following code only teleport to the chosen position : cardScrollView.setSelection(cardScrollView.getSelectedItemPosition() - 1);
Pull
  • 2,236
  • 2
  • 16
  • 32
0
votes
1 answer

How to setup a card view in a corner

I have an activity currently setup where there is a camera preview setup in a surface view. I am looking to implement a card view that scrolls similar to this: https://developers.google.com/glass/develop/gdk/ui-widgets The cards will show…
Vignesh K
  • 13
  • 4
0
votes
1 answer

VideoView in CardScrollView Google Glass

According to Romain Guy's answer here: glsurfaceview inside a scrollview, moving but not clipping one should not use SurfaceView inside ScrollView, or ListView, etc. Since VideoView is subclass of SurfaceView, I was wondering how this applies to…
jonstaff
  • 2,672
  • 2
  • 19
  • 18
0
votes
1 answer

Google Glass CardScrollView does not render while swiping

I'm attempting to create a GDK app that has a similar user interface as the sample Timer app in that it launches sub-activities in which to render CardScrollView instances that cycle through valid selections. My problem is that once I am at the…
scriptocalypse
  • 4,942
  • 2
  • 29
  • 41