Archive for 'Remove'

Adding and removing currency in Prestashop

We can add/remove currencies in Prestashop by doing the following:

Go to admin, select Payments and click on currency link, you will get a screen like this:

Click on Add New button to add currency if you need. In order to remove currency click the check box of the currency and press the delete selection. If you want some currencies for using later, better don’t delete it, click the check mark to disable it, later if needed you can enable it by clicking the X button.

That’s it.

We can remove all the children of the view in which a button is added in its onClick method in Android. Consider an onClickListener method and here is how we can remove the button from view.

 

public void onClick(View buttonView) {

ViewGroup parent = (ViewGroup) buttonView.getParent(); // Getting the parent View group of the button using the ViewGroup

parent.removeAllViews(); // Removing all the child views of parent view group of the button

}

This will remove all the child views of the buttons parent view on button click.

Removing a Button in its Own onClick Method in Android

We can remove a button in its own onClick method in Android. Consider an onClickListener method and here is how we can remove the button from view.

public void onClick(View buttonView) {
ViewGroup parent = (ViewGroup) buttonView.getParent(); // Getting the parent View group of the button using the ViewGroup
parent.removeView(buttonView); // Removing the button from its parent view group
}

That is it. Now the button will be removed from the screen on pressing the button.

Consider a JsonStore object named mystore. Now you can remove all the items from the store using the following line of code.

mystore.removeAll();

Incoming search terms:

  • how to remove all the list items in sencha touch

In order to clear all the items in NSPopUpButton in Cocoa Mac , then use the following line of code.

[samplePopUp removeAllItems];

where samplePopUp is your NSPopUpButton

We Can Build Your App for You. Lets Get Started !