阴影似乎中断了我的一些 CardView 用法。 知道为什么吗?看起来删除父级上的填充可以解决问题,但我确实想要填充。而且我不想在内卡上使用边距,因为还有其他视图对齐,我更喜欢在父级上设置填充以应用于所有子级
有什么解决办法吗?
布局
struct Foo {
int count = 0;
int callback(){ return ++count; }
};
Foo foo;
std::function<int()> f = [&foo]{ return foo.callback(); };
答案 0 :(得分:1)
添加
android:clipToPadding="false"
到线性布局