guaishouN / android-thinkmap-treeview

Tree View; Mind map; Think map; tree map; custom view; 自定义;关系图;树状图;思维导图;组织机构图;层次图
MIT License
475 stars 66 forks source link

请问如何自定义初始化缩放大小,是否开启移动的功能 #14

Open ITDragonBlog opened 2 years ago

ITDragonBlog commented 2 years ago

编程语言是kotlin,目前初始化生成的思维导图很小,大概缩放比是50%。

guaishouN commented 2 years ago

初始化主要思想是将整个图都显示出来。可以截个图看看

raintang666 commented 2 years ago

public void setScalePercentAndCenterY(float scalePercent){ float[] centerM = new float[9]; if(centerMatrix==null){ TreeViewLog.e(TAG, "no centerMatrix!!!"); return; } centerMatrix.getValues(centerM); float[] now = new float[9]; getMatrix().getValues(now); TreeViewLog.e(TAG, "setScalePercent: \n"