Increase StandardListItem

Hi all

I would like to reproduce something similar to listview download in AppWorld app. basically a ListView composed of StandardListItems, but with the addition of a progress bar.

I already have a ListItemProvider custom, but I can't understand how to increase the StandardListItem with a progressBar (I guess I'll be able to update the progressbar by using the ListItemProvider::updateItem function).

All advice is appreciated.

See you soon,.

Eric

The StandardListItem is not customizable. As peter9477 says, you must create your own Visual listitem which looks the same as the standard.

What is possible, however, is to "wrap" the StandardListItem inside a CustomControl. Basically, you need to implement your own CustomControl like this:

class CustomListItem : public bb::cascades::CustomControl, public bb::cascades::ListItemListener
{
Q_OBJECT

        //
        //      StandardListItem properties
        //
        Q_PROPERTY(QUrl imageSource READ imageSource WRITE setImageSource RESET resetImageSource NOTIFY imageSourceChanged FINAL)
        Q_PROPERTY(QString title READ title WRITE setTitle RESET resetTitle NOTIFY titleChanged FINAL)
        Q_PROPERTY(QString status READ status WRITE setStatus RESET resetStatus NOTIFY statusChanged FINAL)
        Q_PROPERTY(QString description READ description WRITE setDescription RESET resetDescription NOTIFY descriptionChanged FINAL)
        Q_PROPERTY(bool imageSpaceReserved READ isImageSpaceReserved WRITE setImageSpaceReserved RESET resetImageSpaceReserved NOTIFY imageSpaceReservedChanged FINAL)

        //
        //      Custom properties
        //
        Q_PROPERTY(float sliderPos READ sliderPos WRITE setSliderPos RESET resetSliderPos NOTIFY sliderPosChanged FINAL)

        CustomListItem(bb::cascades::Container *parent = 0);

private:
        // signals & setters / getters go here
private:

        bb::cascades::StandardListItem * m_sli;
        bb::cascades::Slider *m_slider;
}

You will need to inherit from ListItemListener, so that the standard selection logic listitem works. And you also have to expose the same properties & signals that exposes the StandardListItem, so that your custom control 'looks like' a StandardListItem.

In your constructor, you create a container (value DockLayout), which holds the standardListItem, and you can overlay a cursor on top of that in the same container.

You then connect the StandardListItem signals to your custom control, so that when you use it in a ListView, listview is not aware that it uses a custom list item.

Tags: BlackBerry Developers

Similar Questions

  • How to remove the underline from a StandardListItem

    Hello, I want to remove the underlining of a StandardListItem, I tried to increase the height to match the underlining with my background image but no result

    {StandardListItem}
    reserveImageSpace: false
    Description: {}
    ListItemData.type;
    }

    }

    Thanks to you all

    Ok

    So instead of StandardListItem, try setting the ListItemComponent. Something like the bellows of the sample, and you need to override the default behavior of GroupDataModel::itemType() also.

    function itemType (data, indexPath) {
        return "myItem";
    }
    listItemComponents: [
        //-- define delegates for different item types here
        ListItemComponent
        {   type: "myItem"
            Label {
                text: ListItemData.text
            }
        }
    ]
    

    https://developer.BlackBerry.com/Cascades/reference/bb__cascades__listitemcomponent.html

    I hope this helps.

  • The use of the battery has increased since the update to ios 10. Also, why can not disable the voice command. It's the most boring on the new update.

    The use of the battery has increased since the update to ios 10. Also, why can not disable the voice command. It's the most boring on the new update.

    Depending on what you mean by "voice command", either:

    Settings / general / accessibility / VoiceOver / OFF, or

    Settings / Siri / OFF

    As for your use of the battery, you can check what app pulls most of its use in the settings / battery.  A new version of the app is sometimes problematic, not necessarily iOS or iPhone.  If you see a unusual % of use of a particular application, or force-to leave it removal/reinstalling it or remove it until an update comes.  If anything seems unusual, it might be a problematic installation of iOS, in which case, you could backup your iPhone and restore it:

    Restore your iPhone, iPad or iPod touch from a backup - Apple Support

  • How can I increase the RAM on my MacBook Pro?

    I want to speed up my Mac Book Pro end 2008 performance. Can I get rid of many languages to free up memory, and this will do the trick? How can I do?

    You're talking about memory?

    Or the disk storage?

    Both can be increased. Get rid of unnecessary languages will not increase memory and will only increase a bit of storage available.

    To upgrade the memory see the following (8GB (2x4GB is max))

    https://eShop.MacSales.com/upgrades/MacBook-Pro-15-inch-late-2008-2.8-GHz/memory

    Upgrade of internal storage (disk)

    https://eShop.MacSales.com/upgrades/MacBook-Pro-15-inch-late-2008-2.8-GHz/intern al-discs

  • Is it possible to increase the font size on web pages? I can increase the size of the page but then lose the ability to see the entire page.

    I've just updated El Capitan, but the font size on web pages went all teeny weeny.

    I was wondering if we could increase the font size? The page can expand via "zoom in", but then lose the ability to view the web page in the blink of an eye.

    Thanks in advance.

    Yes.  Open the Terminal app and type the following command followed by the Enter key or return:

    : write com.apple.Safari com.apple.Safari.ContentPageGroupIdentifier.WebKit2MinimumFontSize - int XX

    (triple click on the line to select it to copy and paste into the Terminal application).

    Change the XX to the font size you want as the minimum font by default.

    Or you can use a css style sheet.  This site describes it and the Terminal method: specify Minimum font size in Safari 10.0, macOS Sierra

  • Use of data cell after the upgrade to iOS 10.0.2 has increased dramatically

    Hello:

    I noticed a HUGE increase in mobile data usage by my phone (iPhone 6s) after the iOS to 10.0.2 update.    I had not changed anything since before the update.  A few days after my phone iOS update my more than double to 15 days prior to the cell data update!   I went under a GB to 2.2 GB for two days.  I am only allowed 2.5 GB of my company.   Assist of WiFi was interrupted. I am connected to a wifi most of the time, all day at the office and at home in the morning and in the evening.  I haven't changed my phone usage habits nor have I down loaded new applications.   I also did all the stuff reset once I downloaded the update as turning on and off, hold down home and appears on the sides until that little Apple.

    I looked in the cell parameters section and noticed a few things that consume more data:

    Facebook: I had disabled cell Facebook use.   However, there was a large amount of data used. I also, by habit, only check Facebook when I'm at a known wifi spot as the House or the office.   It was less than a MB before and near a GB of data in 2 days.

    YouTube: Idem, had turned off cell phones and only look at the House.

    Maps - never used but the use of data.

    e-mail-HUGE amount of data used.  Normal use for me. in the past, the amount of data has been a MB.  Now it's 65 MG in 2 days,

    Siri - I do not use Siri as in "Hey Siri" or by using voice commands.  I use it from time to time to the voice on texts.

    AccuWeather.  Even.

    It's just as much as the apps that I use, the rest is electronic mail and stuff systems.   I uninstalled nearly all applications except for the few that I need as my ticket train and planning aps and mail want to stop this.   I won't send any imessages anymore.

    Quite an experience of something like that?

    Yes! I have iPhone 6 - after that the update almost all my data is gone for the month! I do not have Wifi Assist on and I only use data when I'm home and can connect to Wifi!

    I see my iPhone to connect to my Wifi then bounce to the cellular network. I have no problem with my home wifi network. This problem also occurs in the work. In addition, the network at work requires the password to the network - I type in iPhone tells me it's the wrong password, and then it connects. Then it disconnects after 2 minutes.

    I tried to reset the Wifi feature. Help!

  • Sierra TimeCapsule sparsebundle increase partition

    I have 3 partitions on my TimeCapsule.

    I would like to increase the size of the iMac of 1.6 to 2.0 to TB sparsebundle. I have 1.1 TB free. Is it possible to do it without clear TC and start over? If so, how - please point me to a tutorial that I can use.

    Thank you.

    I have 3 partitions on my TimeCapsule.

    Do you you actually remove the internal drive of the Capsule of time and re-partitioned, or do you mean you have a single partition and two files of Time Machine (sparesbundle) that are disk images?

  • increase in the price of 128 gb £50 iPod? .. .are you serious Apple?

    Hi all

    I have an important anniversary later this year... hoping for a 128 gb iPod touch as a present so had my eye on it this year.

    Was expensive at £329... then suddenly last week... its place at £379!

    Apple, 15% increase in the overnight? Really?

    How do you explain this?

    Greed is my first thought...

    Floating the currency, it happens every day.

  • How can I find the number of pixels is in my photos of the ipad? I sell on ebay and they have new requirements for the photos. 500 pixels on the longest side. Is it possible to increase the pixels on already took pictures?

    How can I find the number of pixels is in my photos of the ipad? I sell on ebay and they have new requirements for the photos. 500 pixels on the longest side. Is it possible to increase the pixels on already took pictures?

    See if this application works for you > https://itunes.apple.com/us/app/image-size/id670766542?mt=8

  • I need 280 MB of storage on my iPhone. How can I increase the volume of storage of the iPhone?

    I need 280 MB of storage on my iPhone. The capacity is full. How can I increase the capacity of the phone?

    You cannot increase the capacity. You must remove things. Go to settings > general > storage & use iCloud > storage > storage management and see what about space.

  • cannot increase the brightness

    It seems since the last update on my Apple Watch, it is hard to see anything on my watch outside. I also noticed that it is lower than normal on the inside. I tried to increase through my Iphone, but without success. Any suggestions?

    The following steps may help:

  • gradually increase the loudness

    If it of a way to change the volume of the ringtone to sound with low volume first and then gradually increase the max volume?

    Lol there is no.

    You can't change it in the settings.

    There is a walkaround tho. Create a ringtone (or just edit the m4a file in GarageBand on your Mac) as well as the volume increases over time.

    Remember that the ring cannot contain longer than 40 seconds.

  • My speed has decreased between the router and the modem is not working properly, what can I do to increase the download speed with my Time Capsule 802.11n

    My speed has decreased between the router and the modem is not working properly, what can I do to increase the download speed with my Time Capsule 802.11n

    A variety of phenomena can affect the performance of its wireless network. You may be able to mitigate some negative effects.

    Solutions to any factors that may have an impact on your wireless network, read use the Diagnostics wireless for you help to solve the problems of Wi-Fi on your Mac - Apple Support.

  • Mac: increase the size of file and inbox windows to see better. Theme-police-size-changer.

    I am trying to increase the font size, records and the components of the Inbox for better viewing. I can increase the font of message via view > Zoom, but how to zoom the other components?

    https://addons.Mozilla.org/en-us/Thunderbird/addon/theme-font-size-changer/

  • How can I increase the size of my Inbox (Mozilla Thunderbird)?

    I get the following: "the Inbox is full and cannot hold messages more. To make room for more messages, delete any old or unwanted mail and compact the folder. »

    I followed the thread on the forum, but still have no answer. I want to just increase the size of the Inbox on my desk. This should be simple!

    Help, please.

    No, it's not simple.
    Create another folder, move some mail on it and make room and compact in the file menu that Thunderbird always has a 4 GB limit on mail to be held in a local folder. IMAP account apparently can be greater. POP cannot.

Maybe you are looking for