小编Yar*_*lka的帖子

使用RecyclerView和卡

我有一些带有卡片物品的RecyclerView.在preLollipop设备上它看起来很好.但是在Lollipop上,它看起来没有儿童卡之间的间隔.我试图使用保证金和填充,但它没有帮助.当我在棒棒糖上使用保证金时,它看起来很好,但是在preLollipop上的间距相同,非常大.再一次:为什么会有不同的间距?我应该使用哪个属性来修复它?

android android-5.0-lollipop android-recyclerview

12
推荐指数
2
解决办法
2万
查看次数

如何创建绑定qml到d?

我想用dml语言使用qml.但是没有绑定到d,我想创建它.但我不知道如何开始.请告诉我,如何开始创建绑定.

binding qt d qml

3
推荐指数
1
解决办法
1251
查看次数

无法使用dlang.org中的代码示例

我有无法编译的代码

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)

为什么我不能编译相同的代码?

d

1
推荐指数
1
解决办法
182
查看次数