【求助】为什么一设置matchparent就自动变成固定dp
androidstudio吧
全部回复
仅看楼主
level 2
熱血小青年i
楼主
大神们帮忙解决一下
2017年03月20日 06点03分
1
level 1
皮皮机
同样的问题。请问解决了吗?
2017年03月23日 06点03分
2
熱血小青年i
没有解决,放弃了。。。我分析着可能是navigation drawer activity里自定义控件有什么限制,具体没找出来,太菜了看不懂
2017年03月24日 08点03分
Dht__
@熱血小青年i
我都直接用fill_parent了
2017年03月26日 23点03分
以杰相许001
@熱血小青年i
把match的和wrap的都写上,然后把wrap一个一个字母删掉
2017年07月23日 01点07分
level 1
冬天里的热奶茶
我也遇到了这个问题,最后的解决方法是把默认生成的layout xml文件删掉,自己新建一个layout xml文件,在root tag里填写LinearLayout。默认生成的layout是constraint layout,不一样
2017年03月28日 03点03分
4
熱血小青年i
我也感觉是这个layout的限制,但是我本来是想用官方的这个侧滑效果来着,自建LinearLayout就没有这个效果了
2017年03月28日 05点03分
淡淡淡de忧伤
6666谢谢大佬 解决了 这个可行
2017年12月05日 01点12分
level 1
Super__E
是因为ConstraintLayout的原因
https://stackoverflow.com/questions/43452384/android-studio-keeps-replacing-match-parent-with-fixed-dp-value
2017年07月31日 05点07分
7
熱血小青年i
感谢感谢,老帖子了。。直到我转行做Java也没整明白这个问题
2017年08月01日 07点08分
level 6
恶魔的指挥官😳
解决了吗?大哥
2017年09月14日 05点09分
8
熱血小青年i
你可以看一下楼上
2017年09月21日 04点09分
level 3
斗比🍼
就是这样的,
2017年09月17日 16点09分
9
level 1
🐴要啥自行车
原来是constraint layout 感谢7楼
2018年04月25日 03点04分
11
level 6
相拥如初
因为你拖拽了控件
2018年04月25日 04点04分
12
level 6
相拥如初
还有 问问题建议截全屏
2018年04月25日 04点04分
13
1