Adding a Title & Back Button

Adding a Title

To add a title, create an instance for QCircleTitle. The title can be also customized with the APIs provided.

 

1. Create a QCircleTitle instance.

QCircleTitle title = new QCircleTitle(this, “My QCircle App”);

 

2. Add a title to the template

template.addElement(title);

 

Example

QCircleTitle title = new QCircleTitle(this, "My QCircle App");
        title.setBackgroundColor(Color.LTGRAY);
        template.addElement(title);

 

mobile_qcircle_develop_app_key_6.png

 

Adding a Back Button

Users are not able to access the back button key without opening the cover. It is mandatory for Quick Circle applications to provide a software back button to exit the application. Quick Circle library provides an API to create and add a back button.

Follow the steps below to add a back button.

 

1. Create a QCircleBackbutton instance.

QCircleBackbutton backButton = new QCircleBackbutton(this);

 

2. Add a back button to the template.

template.addElement(backbutton);

 

Example

QCircleBackButton backButton = new QCircleBackButton(this);
        backButton.setTheme(ButtonTheme.LIGHT);
        template.addElement(backButton);

 

mobile_qcircle_develop_app_key_7.png

Navigation