### Wrap Animated Views in TargetFrameLayout or TargetLinearLayout
Source: https://github.com/serchinastico/coolswitch/blob/master/README.md
This XML snippet shows how to wrap the views that will be animated by CoolSwitch within a TargetFrameLayout. This container is necessary for the reveal animation to function correctly. Inside, two LinearLayouts are defined as examples for the 'disabled' and 'enabled' states, referenced by the CoolSwitch.
```XML
```
--------------------------------
### CoolSwitch Project Apache License 2.0
Source: https://github.com/serchinastico/coolswitch/blob/master/README.md
The Apache License, Version 2.0, governing the use and distribution of the CoolSwitch software. It details permissions, limitations, and conditions for contributors and users.
```Text
Copyright 2015 Sergio GutiƩrrez Mota
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
--------------------------------
### Add CoolSwitch Dependency to Maven or Gradle Project
Source: https://github.com/serchinastico/coolswitch/blob/master/README.md
Instructions for adding the CoolSwitch library as a dependency using either Maven or Gradle build systems. This allows your project to access the CoolSwitch components.
```XML
com.github.serchinastico
coolswitch
1.0.1
aar
```
```Groovy
dependencies {
compile 'com.github.serchinastico:coolswitch:1.0.1'
}
```
--------------------------------
### Include CoolSwitch View in Android Layout
Source: https://github.com/serchinastico/coolswitch/blob/master/README.md
This XML snippet demonstrates how to integrate the CoolSwitch custom view into an Android layout. It requires specifying the IDs of the 'disabledView' and 'enabledView' which will be displayed based on the switch's state. If these views are not defined, the animation will not play.
```XML
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.