Features
???????0.1.5
??? XML ?????????????????????
?????????
??????????????????
?? fling ??
?? MACD?RSI?KDJ?BOLL ????
????????????
??????????????????????????????????????? Fragment ??????????????????????????????????
Change log
2017.06.28
?? K????????
??????? https://github.com/wordplat/ikvStockChart/blob/master/CHANGE_LOG.md
Usage
repositories {
jcenter()
}
dependencies {
compile 'com.wordplat:ikvStockChart:0.1.5'
}
<com.wordplat.ikvstockchart.InteractiveKLineLayout
android:id="@+id/kLineLayout"
android:layout_width="match_parent"
android:layout_height="match_parent" />
final EntrySet entrySet = new EntrySet();
entrySet.addEntry(new Entry(...));
kLineLayout.getKLineView().setEntrySet(entrySet);
kLineLayout.getKLineView().notifyDataSetChanged();
kLineLayout.getKLineView().setKLineHandler(new KLineHandler() {
@Override
public void onLeftRefresh() {
kLineLayout.getKLineView().refreshComplete();
}
@Override
public void onRightRefresh() {
kLineLayout.getKLineView().refreshComplete();
}
@Override
public void onSingleTap(MotionEvent e, float x, float y) {
}
@Override
public void onDoubleTap(MotionEvent e, float x, float y) {
}
@Override
public void onHighlight(Entry entry, int entryIndex, float x, float y) {
}
@Override
public void onCancelHighlight() {
}
}
);
ikvStockChart ?? 66 ?????????????????? https://github.com/wordplat/ikvStockChart/blob/master/PROPERTY.md
SizeColor sizeColor = kLineLayout.getKLineView().getRender().getSizeColor();
sizeColor.setXXX();
Screenshot
Dependency
none
License
/* * Copyright (C) 2017 WordPlat Open Source Project * *
https://wordplat.com/InteractiveKLineView/ * * 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. */