我有一些带有卡片物品的RecyclerView.在preLollipop设备上它看起来很好.但是在Lollipop上,它看起来没有儿童卡之间的间隔.我试图使用保证金和填充,但它没有帮助.当我在棒棒糖上使用保证金时,它看起来很好,但是在preLollipop上的间距相同,非常大.再一次:为什么会有不同的间距?我应该使用哪个属性来修复它?
我想用dml语言使用qml.但是没有绑定到d,我想创建它.但我不知道如何开始.请告诉我,如何开始创建绑定.
我有无法编译的代码
import std.string;
import std.net.curl;
int main(string[] argv)
{
string a = get("http://google.com");
return 0;
}
Error: cannot implicitly convert expression (get("http://google.com", AutoProtocol())) of type char[] to string
Run Code Online (Sandbox Code Playgroud)
在http://dlang.org/phobos/std_net_curl.html中有代码
import std.net.curl, std.stdio;
// Return a string containing the content specified by an URL
string content = get("dlang.org");
Run Code Online (Sandbox Code Playgroud)
为什么我不能编译相同的代码?