MCPcopy Index your code
hub / github.com/SunOfBeach2/AnimSideBar

github.com/SunOfBeach2/AnimSideBar @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
26 symbols 49 edges 5 files 5 documented · 19%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AnimSideBar

A SiderBar base on Android that has a wave anim

update in 19/12/16

implementation this widget in a new way.

effect

use

include:

    dependencies {
            implementation 'com.github.AlexLiuSheng:animsidebar:1.0.0'
    }

alternatively,you can include it just copy the code into your project.

use

to use,you should write like this in your layout

  <com.allenliu.sidebar.SideBar
    android:layout_alignParentRight="true"
    android:textColor="@color/colorAccent"
    android:textSize="12sp"
    android:paddingRight="10dp"
    android:layout_width="wrap_content"
    android:id="@+id/bar"
    android:layout_height="match_parent" />
 ```

after this ,you can add a setOnStrSelectCallBack,like this

    bar.setOnStrSelectCallBack(new ISideBarSelectCallBack() {
            @Override
            public void onSelectStr(int index, String selectStr) {
                Toast.makeText(SideBarDemoActivity.this,selectStr,Toast.LENGTH_SHORT).show();
            }
        });


there are some other methods to apply:

    <attr name="fontScale" format="float" />   //text Font scale  when scrolling ,defalut :1
    <attr name="bigTextSize" format="float" /> // the big text size ,default is 3 times than text size
    <attr name="openCount" format="integer" />  //the parabola opening size ,defalut 13,
    <attr name="A" format="integer" />   // the size of amplitude,defalut is 100dp
    <attr name="gapBetweenText" format="integer" /> // the distance between BigText and peak,defalut is 50dp

```

Extension points exported contracts — how you extend this code

ISideBarSelectCallBack (Interface)
Created by Allen Liu on 2016/5/13. [1 implementers]
app/src/main/java/com/allenliu/sidebar/ISideBarSelectCallBack.java

Core symbols most depended-on inside this repo

dp
called by 4
app/src/main/java/com/allenliu/sidebar/SideBar.java
init
called by 3
app/src/main/java/com/allenliu/sidebar/SideBar.java
resetDefault
called by 2
app/src/main/java/com/allenliu/sidebar/SideBar.java
getBigTextWidth
called by 2
app/src/main/java/com/allenliu/sidebar/SideBar.java
onSelectStr
called by 1
app/src/main/java/com/allenliu/sidebar/ISideBarSelectCallBack.java
setOnStrSelectCallBack
called by 1
app/src/main/java/com/allenliu/sidebar/SideBar.java
caculateAW
called by 1
app/src/main/java/com/allenliu/sidebar/SideBar.java
onCreate
called by 0
app/src/main/java/com/allenliu/sidebar/SideBarDemoActivity.java

Shape

Method 21
Class 4
Interface 1

Languages

Java100%

Modules by API surface

app/src/main/java/com/allenliu/sidebar/SideBar.java17 symbols
app/src/main/java/com/allenliu/sidebar/SideBarDemoActivity.java3 symbols
app/src/test/java/com/allenliu/sidebar/ExampleUnitTest.java2 symbols
app/src/main/java/com/allenliu/sidebar/ISideBarSelectCallBack.java2 symbols
app/src/androidTest/java/com/allenliu/sidebar/ApplicationTest.java2 symbols

For agents

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

⬇ download graph artifact