Android7.1.2 演示—App版本情况 部分区域无法控制问题
Mr414Zheng opened this issue · 2 comments
调试的手机是 魅族note6 ,“ 演示—App版本情况” 中node“V1.0.3”以下部分全部不可控。
用README 里的使用方法创建的思维导图也出现了显示不全问题(但是在另一部5.1手机上一切正常)
`final NodeModel nodeA = new NodeModel<>("剑灵");
final NodeModel nodeB = new NodeModel<>("穿越火线");
final NodeModel nodeC = new NodeModel<>("QQ飞车");
final NodeModel nodeD = new NodeModel<>("QQ炫舞");
final NodeModel nodeE = new NodeModel<>("QQ三国");
final NodeModel nodeF = new NodeModel<>("地下城与勇士");
final NodeModel nodeG = new NodeModel<>("英雄联盟");
final NodeModel nodeH = new NodeModel<>("剑灵PC版");
final NodeModel nodeI = new NodeModel<>("剑灵手游版");
final NodeModel nodeJ = new NodeModel<>("冒险岛");
final NodeModel nodeK = new NodeModel<>("龙之谷");
final NodeModel nodeL = new NodeModel<>("传奇世界");
final NodeModel nodeM = new NodeModel<>("热血传奇");
final NodeModel nodeN = new NodeModel<>("永恒之塔");
final NodeModel nodeO = new NodeModel<>("彩虹岛");
final NodeModel nodeP = new NodeModel<>("我的世界");
final NodeModel nodeQ = new NodeModel<>("守望先锋");
final NodeModel nodeR = new NodeModel<>("炉石传说");
final NodeModel nodeS = new NodeModel<>("天谕");
final NodeModel nodeT = new NodeModel<>("风暴英雄");
final NodeModel nodeU = new NodeModel<>("无尽战区");
final NodeModel nodeV = new NodeModel<>("龙魂时刻");
final NodeModel nodeW = new NodeModel<>("梦幻西游PC版");
final NodeModel nodeX = new NodeModel<>("梦幻西游手游版");
final NodeModel nodeY = new NodeModel<>("魔兽世界");
final NodeModel nodeZ = new NodeModel<>("梦幻西游");
final NodeModel node1 = new NodeModel<>("游戏运营商");
final NodeModel node2 = new NodeModel<>("腾讯");
final NodeModel node3 = new NodeModel<>("盛大");
final NodeModel node4 = new NodeModel<>("网易");
final TreeModel<String> tree = new TreeModel<>(node1);
tree.addNode(node1, node2, node3, node4);
tree.addNode(node2, nodeA, nodeB, nodeC, nodeD, nodeE, nodeF, nodeG);
tree.addNode(node3, nodeJ, nodeK, nodeL, nodeM, nodeN, nodeO);
tree.addNode(node4, nodeP, nodeQ, nodeR, nodeS, nodeT, nodeU, nodeV, nodeY, nodeZ);
tree.addNode(nodeA, nodeH, nodeI);
tree.addNode(nodeZ, nodeW, nodeX);
int dx = DensityUtils.dp2px(this, 60);
int dy = DensityUtils.dp2px(this, 30);
int mHeight = DensityUtils.dp2px(this, 720);
//int mHeight = DensityUtils.dp2px(this, 1080);
TreeView testTreeView = new TreeView(this);
testTreeView.setTreeLayoutManager(new RightTreeLayoutManager(dx, dy, mHeight));
testTreeView.setTreeModel(tree);
setContentView(testTreeView);`
你好,尽可能的输入屏幕的高度。点不了是由于TreeView的大小没有包括子控件的区域。我那时候想到的是每一次添加子控件就进行一次宽高的计算。这个计算有时候出现问题。需要优化一下,我有时间后再修复好。
非常感谢。