<commit_before>SlideSwitch
===========


## About this SlideSwitch

A button they you can slide to open or close something


## How to use it

you can define a slideswitch in xml like the following example


```xml
    <com.leaking.slideswitch.SlideSwitch
        android:id="@+id/swit"
		android:layout_height="wrap_content"
		android:layout_width="wrap_content"
		slideswitch:isOpen="true"
        slideswitch:baseColor="#ffff510e"
        slideswitch:moveColor="#ffffff"
        slideswitch:slideHeight="30dip"
        slideswitch:slideWidth="80dip"
        slideswitch:stillColor="#ffa3a3a3" >
    </com.leaking.slideswitch.SlideSwitch>
```



you can initial the state(open or close) in jave code in this way


```java
	bulletSwitch.setState(true);
```

and you can listen the change of the slideswitch like this

```java
    updateSwitch.setSlideListener(new SlideListener() {
<commit_msg>update the readme<commit_after>SlideSwitch
===========


## About SlideSwitch

A button that you can slide on or off 


## How to use it

you can define a slideswitch in xml like the following example


```xml
    <com.leaking.slideswitch.SlideSwitch
        android:id="@+id/swit"
		android:layout_height="wrap_content"
		android:layout_width="wrap_content"
		slideswitch:isOpen="true"
        slideswitch:baseColor="#ffff510e"
        slideswitch:moveColor="#ffffff"
        slideswitch:slideHeight="30dip"
        slideswitch:slideWidth="80dip"
        slideswitch:stillColor="#ffa3a3a3" >
    </com.leaking.slideswitch.SlideSwitch>
```



you can initial the state(on or off) in jave code in this way


```java
	bulletSwitch.setState(true);
```

and you can listen to the change of the slideswitch like this

```java
    updateSwitch.setSlideListener(new SlideListener() {

{'fraction_non_alphanumeric': 0.10948081264108352, 'fraction_numerical': 0.011286681715575621, 'mean_word_length': 4.184210526315789, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5841115', 'n_tokens_mistral': 609, 'n_tokens_neox': 569, 'n_words': 142}