小编Fur*_*qan的帖子

GridView与colspan和rowSpan

我一直在尝试使用拖放功能和一个不同大小的单元格来制作gridview.我已经使网格拖放并且工作正常.你可以从这里查看代码

我的代码输出

但我希望它像这样,纯粹是动态的,因为我将拖拽另一个将被替换并自动调整大小 期望的输出

android gridview

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

在片段中映射片段V2

我在Google Map Fragments中面临一些问题"getmap()中的空指针Expcepttion".我想在片段中插入mapfragment请查看代码并告诉我是否正在使用正确的appraoch ..并让我知道我需要对我的代码做些什么来使其工作

我的布局文件:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="fill_parent"
  android:layout_height="fill_parent" 
  android:orientation="vertical"
  android:background="@drawable/bg2"
  android:weightSum="100">

<Button
    android:id="@+id/perx_button"
    android:layout_marginTop="70dip"
    android:layout_gravity="center"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@drawable/perx_card_btn" />

<fragment
    android:id="@+id/map"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    class="com.google.android.gms.maps.SupportMapFragment" />

</LinearLayout>


public class PerxDetailedFragment extends SupportMapFragment {

  static final LatLng HAMBURG = new LatLng(53.558, 9.927);
  static final LatLng KIEL = new LatLng(53.551, 9.993);
 GoogleMap map;
public View onCreateView(LayoutInflater inflater, ViewGroup container,Bundle savedInstanceState) {

     FragmentTransaction ft = getFragmentManager().beginTransaction();

    map = ((SupportMapFragment) getFragmentManager().findFragmentById(R.id.map))
            .getMap();

    SupportMapFragment fmap = (SupportMapFragment) getFragmentManager().findFragmentById(R.id.map);

    if (fmap == null) …
Run Code Online (Sandbox Code Playgroud)

android-fragments mapfragment google-maps-android-api-2

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

OpenVpn Android应用程序出错

我已经从https://code.google.com/p/ics-openvpn/source/checkout下载了openvpn代码 并且它成功编译但是当我创建一个配置文件并尝试连接它时...它会给我一个错误"编写minivpn二进制文件时出错"

自述文件说明可选:将minivpn从lib /复制到资产(如果你想要自己的编译版本)

但是我没有在包装中找到任何这样的迷你邮件或者lib,如果有人已经处理过,请告诉我

android openvpn

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