

Most of the algorithms described were originally inspired by biological and natural systems, such as the adaptive capabilities of genetic evolution and the acquired immune system, and the foraging behaviors of birds, bees, ants and bacteria. These standardized descriptions were carefully designed to be accessible, usable, and understandable.

This book is an effort to address these issues by providing a handbook of algorithmic recipes drawn from the fields of Metaheuristics, Biologically Inspired Computation and Computational Intelligence, described in a complete, consistent, and centralized manner. This can result in varied interpretations of algorithms, undue attrition of algorithms, and ultimately bad science. Algorithm descriptions may be incomplete, inconsistent, and distributed across a number of papers, chapters and even websites. Implementing an Artificial Intelligence algorithm is difficult. This is a repository for the book project used during the development and ongoing maintenance of the books’ content. If you want to add a transparency to any of the colors, add a leading hex value (#XXcccccc).CleverAlgorithms - An open source book that describes a large number of algorithmic techniques from the the fields of Biologically Inspired Computation, Computational Intelligence and Metaheuristics in a complete, consistent, and centralized manner such that they are accessible, usable, and understandableĬlever Algorithms: Nature-Inspired Programming Recipes is an open source book that describes a large number of algorithmic techniques from the the fields of Biologically Inspired Computation, Computational Intelligence and Metaheuristics in a complete, consistent, and centralized manner such that they are accessible, usable, and understandable. Here is a quick snippet of one that I use. That way you can also change it state when pressed or enabled and so on. xml selectors and set that to the background of said button. I know this already has a bunch of answers but I found that for buttons it is just easiest to create your own. this exact style behind a Gingerbread button results in a small bit of white below the button). You should target this style for v14+, and tweak or exclude it for Gingerbread/Honeycomb because their native button image sizes are different from ICS and JB's (e.g. So the solution is to give the white background a margin (4dp worked for me) and rounded corners (2dp) to completely hide the white yet make the button solid:

Styles.xml this results in a white border because the Holo button images include margins to account for the pressed space: Here's a crude XML drawable (ButtonHolder) which does exactly that:

For a background this is especially noticeable.Ĭopying over all of the drawable states and images for each resolution and making the transparent images solid is a pain, so I've opted for a dirtier solution: wrap the button in a holder that has a white background. I've run into this problem with ICS/JB because the default buttons for the Holo theme consist of images that are slightly transparent.
