小编She*_*ray的帖子

设置 Android 自动完成样式

我有一个AutoCompleteTextView我想应用一些样式的。代码在功能上有效,基本样式很好,但我想更改一些更高级的东西。具体来说:

自定义字体

我的搜索栏使用我的应用程序的自定义字体,但使用系统的默认字体显示预测行。以下是我为搜索结果设置字体的方法:

mSearchTextView.setTypeface(font.mAvenirLTStandardLight);
Run Code Online (Sandbox Code Playgroud)

从下拉菜单中删除阴影

The default dropdown options have a shadow and my app uses a more flat design. I'd like to remove that if possible.

Add radius to dropdown

I was able to round the radius of each result line, but I wasn't able to figure out how to apply a curve to the entire dropdown box.

Here are my applicable code sections:

private void setAutoCompleteListener() {
    AutoCompleteAdapter adapter = new AutoCompleteAdapter(mContext,
            R.layout.autocomplete_list_item, mLatLng);

    mSearchTextView.setAdapter(adapter);

    mSearchTextView.setOnItemClickListener(new …
Run Code Online (Sandbox Code Playgroud)

android autocompletetextview

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

OpenWRT + https + git

我有一个TP-Link MR3020路由器,上面装有OpenWRT 12.09,r36088.我试图通过HTTPS克隆一个git存储库,但得到以下错误:

fatal: Unable to find remote helper for 'https'
Run Code Online (Sandbox Code Playgroud)

这是一个类似的问题,但它已经解决了CentOS.

"在git clone期间无法找到'https'的远程助手"

根据它的建议,我确保安装了curl.但是,我找不到curl-devel的任何opkg包,似乎没有任何我可以手动下载http://curl.haxx.se/dlwiz/?type=devel&os=Linux.

我也发现了这个问题(OpenWRT git clone致命:无法找到'http'的远程助手)这是我的确切问题,但是opkg似乎不存在git-http存储库.

git curl openwrt opkg

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

时间戳到会话熊猫

我是panadas的新手,在pandas中有一个DataFrame,如下所示:

        customer_id, timestamp   
74594,  1,           2016-05-25 15:39:41
74556,  1,           2016-05-25 15:40:33
74403,  1,           2016-05-25 15:43:26
73783,  1,           2016-05-25 15:52:40
73241,  1,           2016-05-25 16:01:01
71960,  1,           2016-05-25 16:19:35
71590,  1,           2016-05-25 16:26:05
11765,  2,           2016-05-26 18:03:18
81825,  3,           2016-05-25 13:14:55
81560,  3,           2016-05-25 13:22:15
80517,  3,           2016-05-25 13:27:36
78370,  3,           2016-05-25 13:30:58
75575,  3,           2016-05-25 15:22:00
74890,  3,           2016-05-25 15:33:56
74119,  3,           2016-05-25 15:47:57
Run Code Online (Sandbox Code Playgroud)

如何构建会话数据,以便只要在15分钟内为同一个客户提供另一个时间戳,那么它就是同一个会话,但如果超过15分钟或者有新客户,那么会创建一个新会话?

        customer_id, timestamp,           session_id          
74594,  1,           2016-05-25 15:39:41, A
74556,  1,           2016-05-25 15:40:33, A
74403,  1,           2016-05-25 …
Run Code Online (Sandbox Code Playgroud)

python pandas

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

标签 统计

android ×1

autocompletetextview ×1

curl ×1

git ×1

openwrt ×1

opkg ×1

pandas ×1

python ×1