<commit_before># RecyclerCoverFlow
使用RecyclerView，自定义LayoutManager实现旋转木马相册效果

![image](https://github.com/ChenLittlePing/RecyclerCoverFlow/blob/master/gif/demo.gif)

<p>Gradle依赖 compile 'com.chenlittleping:recyclercoverflow:1.0.1'

# 使用方式
### 1,xml中加入
```xml
    <recycler.coverflow.RecyclerCoverFlow
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
    </recycler.coverflow.RecyclerCoverFlow>
```
### 2，Activity中初始化，其中Adapter与RecyclerView的Adapter完全一致
```java
    mList = (RecyclerCoverFlow) findViewById(R.id.list);
    //        mList.setFlatFlow(true); //平面滚动
    mList.setAdapter(new Adapter(this));
    mList.setOnItemSelectedListener(new CoverFlowLayoutManger.OnSelected() {
        @Override
        public void onItemSelected(int position) {
            ((TextView)findViewById(R.id.index)).setText((position+1)+"/"+mList.getLayoutManager().getItemCount());
        }<commit_msg>1，Update README.md<commit_after># RecyclerCoverFlow
使用RecyclerView，自定义LayoutManager实现旋转木马相册效果

![image](https://github.com/ChenLittlePing/RecyclerCoverFlow/blob/master/gif/demo.gif)

<p>Gradle依赖 compile 'com.chenlittleping:recyclercoverflow:1.0.3'

# 使用方式
### 1,xml中加入
```xml
    <recycler.coverflow.RecyclerCoverFlow
            android:id="@+id/list"
            android:layout_width="match_parent"
            android:layout_height="match_parent">
    </recycler.coverflow.RecyclerCoverFlow>
```
### 2，Activity中初始化，其中Adapter与RecyclerView的Adapter完全一致
```java
    mList = (RecyclerCoverFlow) findViewById(R.id.list);
    //        mList.setFlatFlow(true); //平面滚动
    mList.setAdapter(new Adapter(this));
    mList.setOnItemSelectedListener(new CoverFlowLayoutManger.OnSelected() {
        @Override
        public void onItemSelected(int position) {
            ((TextView)findViewById(R.id.index)).setText((position+1)+"/"+mList.getLayoutManager().getItemCount());
        }
{'fraction_non_alphanumeric': 0.13662044170518747, 'fraction_numerical': 0.00667693888032871, 'mean_word_length': 4.336986301369863, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '3760887', 'n_tokens_mistral': 727, 'n_tokens_neox': 695, 'n_words': 65}