How can I create Cards

84 views
Skip to first unread message

Xen

unread,
Aug 3, 2018, 1:08:35 AM8/3/18
to DroidScript
I have posts uploaded in database, and I am using PHP and Js to fetch those posts (title and description) from db, so I can't find a way to show them like in Cards in DroidScript, however I don't want to use WebView.

I also want to check on which post the user has clicked so that I may able to display the complete posts description on the necessary layout.
Thanks

Steve Garman

unread,
Aug 3, 2018, 1:48:07 AM8/3/18
to DroidScript
"Cards" is a pretty common word with lots of different meanings so I find it difficult to guess exactly what you are looking for.

I assume you are putting the title and description in something like a CreateList and using another sql query to retrieve the body of the post when one is clicked.

Perhaps you can give some more detail of what you are trying to achieve.

csnakes xXXx

unread,
Aug 3, 2018, 1:08:51 PM8/3/18
to DroidScript
Use SemanticUI for create card.

Jared

unread,
Aug 4, 2018, 9:51:55 AM8/4/18
to DroidScript
That semantic ui is pretty cool, thanks for the referral. That would make a nice DS plugin!

csnakes xXXx

unread,
Aug 4, 2018, 11:08:06 AM8/4/18
to DroidScript
:)
Yes it will be interesting

Xen

unread,
Aug 7, 2018, 11:56:02 AM8/7/18
to DroidScript
that again comes under web view :/

BareK

unread,
Aug 7, 2018, 12:20:27 PM8/7/18
to DroidScript
If you mean something like this:

There is no built-in methods that create this kind of control.
But you can create your own (only need a layout or two, an image, two text controls and a button).
You then can put the whole thing in a scroller and there you go :)

You can look at this post which implements a custom list for video files:

It is not the simplest example of it but it's probably a good starting point.
If you want to test it you'll probably have to change line 2 "ext = app.GetExternalFolder();" to a folder which contains .mp4 files (on my phone "ext = '/sdcard/DCIM/Camera/';") 
Reply all
Reply to author
Forward
0 new messages