MCPcopy Index your code
hub / github.com/ashqal/ChromeLikeSwipeLayout

github.com/ashqal/ChromeLikeSwipeLayout @0.4

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.4 ↗ · + Follow
244 symbols 520 edges 16 files 20 documented · 8%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ChromeLikeSwipeLayout

Pull down, and execute more action!

Screenshot

DemoPreview

Usage

<com.asha.ChromeLikeSwipeLayout
    android:id="@+id/chrome_like_swipe_layout"
    app:clwl_circleColor="#89d999"
    app:clwl_gap="0dp"
    app:clwl_radius="45dp"
    app:clwl_maxHeight="30dp"
    app:clwl_collapseDuration="300"
    app:clwl_rippleDuration="300"
    app:clwl_gummyDuration="300"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <LinearLayout
        android:orientation="vertical"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="#DDDDDD">
       ...  
    </LinearLayout>
</com.asha.ChromeLikeSwipeLayout>
  • item selected callback
ChromeLikeSwipeLayout chromeLikeSwipeLayout = (ChromeLikeSwipeLayout) findViewById(R.id.chrome_like_swipe_layout);
ChromeLikeSwipeLayout.makeConfig()
        .addIcon(R.drawable.selector_icon_add)
        .addIcon(R.drawable.selector_icon_refresh)
        .addIcon(R.drawable.selector_icon_close)
    .maxHeight(dp2px(40))
        .radius(dp2px(35))
        .gap(dp2px(5))
        .circleColor(0xFF11CCFF)
        .gummyDuration(1000)
        .rippleDuration(1000)
        .collapseDuration(1000)
        .listenItemSelected(new ChromeLikeSwipeLayout.IOnItemSelectedListener() {
            @Override
            public void onItemSelected(int index) {
                Toast.makeText(RecyclerViewActivity.this, "onItemSelected:" + index, Toast.LENGTH_SHORT).show();
            }
        })
        .setTo(chromeLikeSwipeLayout);

Supported

  • All ViewGroup

Download

   repositories { 
        jcenter()
        maven { url "https://jitpack.io" }
   }
   dependencies {
         compile 'com.github.ashqal:ChromeLikeSwipeLayout:<version>'
   }

Release Note

0.3 add multi touch support

LICENSE

Copyright 2015 Asha

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.

Extension points exported contracts — how you extend this code

IOnItemSelectedListener (Interface)
(no doc) [6 implementers]
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
IOnExpandViewListener (Interface)
(no doc) [2 implementers]
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
IOnRippleListener (Interface)
(no doc) [1 implementers]
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeLayout.java
ITouchCallback (Interface)
(no doc) [1 implementers]
chromelikeswipelayout/src/main/java/com/asha/TouchManager.java

Core symbols most depended-on inside this repo

addIcon
called by 14
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
dp2px
called by 11
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
makeConfig
called by 7
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
setTo
called by 7
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
listenItemSelected
called by 6
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
ensureTarget
called by 5
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
circleColor
called by 5
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java
updateAlpha
called by 5
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeLayout.java

Shape

Method 212
Class 28
Interface 4

Languages

Java100%

Modules by API surface

chromelikeswipelayout/src/main/java/com/asha/ChromeLikeSwipeLayout.java74 symbols
chromelikeswipelayout/src/main/java/com/asha/ChromeLikeLayout.java63 symbols
chromelikeswipelayout/src/main/java/com/asha/TouchManager.java27 symbols
chromelikeswipelayout/src/main/java/com/asha/TouchAlwaysTrueLayout.java18 symbols
app/src/main/java/com/asha/chromelikeswipelayout/NestedRecyclerViewActivity.java10 symbols
app/src/main/java/com/asha/chromelikeswipelayout/RecyclerViewActivity.java9 symbols
app/src/main/java/com/asha/chromelikeswipelayout/MainActivity.java8 symbols
app/src/main/java/com/asha/chromelikeswipelayout/ListViewActivity.java8 symbols
app/src/main/java/com/asha/chromelikeswipelayout/CustomHeightListViewActivity.java8 symbols
chromelikeswipelayout/src/main/java/com/asha/AnimationListenerAdapter.java4 symbols
app/src/main/java/com/asha/chromelikeswipelayout/SubActivity.java3 symbols
app/src/main/java/com/asha/chromelikeswipelayout/ScrollViewActivity.java3 symbols

For agents

$ claude mcp add ChromeLikeSwipeLayout \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact