小编San*_*ull的帖子

在谷歌地图v2 android中移动标记

我在Android谷歌地图v2中进行地图聚类.我只想将标记从一个地理点动画到另一个地理点.有没有办法在谷歌地图v2中移动标记?

android google-maps-api-2

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

Optimize listview performance Android

I have a listView (vertical) and every list item has a horizontal list view (horizontal).

But the problem is when i scroll the horizontal scrollview in the row the vertical list is also calling getView()...

所以,有一个巨大的性能打击..所以,任何人都可以告诉我一个更好的解决方案..

    public class GridViewAdapter extends BaseAdapter {

    List<List<Hotel>> gridDatasource;
    Context mContext;

    public GridViewAdapter(List<List<Hotel>> gridDatasource, Context context) {
        this.gridDatasource = gridDatasource;
        this.mContext = context;
    }

    public void setGridDatasource(List<List<Hotel>> gridDatasource) {
        this.gridDatasource = gridDatasource;
    }

    @Override
    public int getCount() {
        if (gridDatasource == null) {
            return 0; …
Run Code Online (Sandbox Code Playgroud)

android android-listview

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

基于令牌的身份验证是否需要在DB中存储令牌?

我在身份验证中使用基于令牌的方法,但在许多博客中我读到他们在数据库中存储令牌.

我们是否需要在DB中基于令牌的身份验证中存储令牌?

https://scotch.io/tutorials/the-ins-and-outs-of-token-based-authentication

在这个博客中,提到我们签署令牌而不是存储在数据库中,我认为这应该是实现真正的无状态的方法.

authentication token

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

设置日历视图月份名称的文本颜色

在android中,我使用的是默认的CalendarView.我将背景设置为浅灰色.但我可以更改日历视图的月视图的颜色吗?

java android

4
推荐指数
2
解决办法
6180
查看次数

context.getCachedir()和Environment getConDownloadCacheDirectory android

是否context.getCachedir()与环境getConDownloadCacheDirectory一样吗?

我正在实现位图缓存并混淆使用哪一个.
如果我使用上下文,那么我们将需要保持对上下文的引用,这可能会导致内存泄漏.
那么哪一个使用?

android android-sdcard

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

使用ArrayList时如何避免ConcurrentModificationException?

在Android上ConcurrentModificationException使用时如何避免ArrayList

有人可以给出基本的经验法则来避免它吗?

java android

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