<commit_before>ImgIndicatorTab
===============

This is a library to make tabs for ViewPager with indicator image you want to show.

![Screenshot 1](https://raw.github.com/wiki/chibatching/ImgIndicatorTab/images/screenshot1.png)
![Screenshot 2](https://raw.github.com/wiki/chibatching/ImgIndicatorTab/images/screenshot2.png)

# Usage

In layout xml.

```XML
<com.chibatching.imgindicatortab.ImgIndicatorTab
    xmlns:imgtab="http://schemas.android.com/apk/res-auto"
    android:id="@+id/indicatorTab"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:background="#ffffff"
    imgtab:selectedTextColor="#3333aa"
    imgtab:deselectedTextColor="#888888"
    imgtab:indicatorDrawable="@drawable/rect"
    imgtab:fitIndicatorWithTabWidth="true" />
```

In activity or fragment, ImgIndicatorTab should be attached ViewPager.

```Java
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_sample_tab);

    // Create the adapter that will return a fragment for each of the three<commit_msg>Insert space between screenshots<commit_after>ImgIndicatorTab
===============

This is a library to make tabs for ViewPager with indicator image you want to show.

![Screenshot 1](https://raw.github.com/wiki/chibatching/ImgIndicatorTab/images/screenshot1.png)\  
![Screenshot 2](https://raw.github.com/wiki/chibatching/ImgIndicatorTab/images/screenshot2.png)

# Usage

In layout xml.

```XML
<com.chibatching.imgindicatortab.ImgIndicatorTab
    xmlns:imgtab="http://schemas.android.com/apk/res-auto"
    android:id="@+id/indicatorTab"
    android:layout_width="match_parent"
    android:layout_height="50dp"
    android:background="#ffffff"
    imgtab:selectedTextColor="#3333aa"
    imgtab:deselectedTextColor="#888888"
    imgtab:indicatorDrawable="@drawable/rect"
    imgtab:fitIndicatorWithTabWidth="true" />
```

In activity or fragment, ImgIndicatorTab should be attached ViewPager.

```Java
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_sample_tab);

    // Create the adapter that will return a fragment for each of the three
{'fraction_non_alphanumeric': 0.1232078853046595, 'fraction_numerical': 0.014336917562724014, 'mean_word_length': 5.510204081632653, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '3123232', 'n_tokens_mistral': 745, 'n_tokens_neox': 693, 'n_words': 134}