小编shi*_*edi的帖子

Google map v2 Custom Infowindow带有两个可点击按钮或ImageView

在此输入图像描述

我需要自定义信息窗口,上面有两个可点击按钮.当它更多然后标记并单击其中任何一个时,窗口应该打开,当点击另一个标记时,另一个窗口应该打开并关闭前一个窗口以及单击.是否有任何具体原因为什么谷歌地图v2不支持像按钮,复选框等实时组件?

android google-maps custom-controls google-play-services

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

单选按钮在 2 条水平线上的一个单选组中

在此处输入图片说明

我尝试在 2 行的一个 Radio 组中设置 4 个单选按钮,但问题是当我采用水平方向的线性布局时,无线电组功能不起作用。所有单选按钮选择 。一次只能选择一个按钮。

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" >

                <RadioButton
                    android:id="@+id/r1"

                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="@string/lbl1" />

                <RadioButton
                    android:id="@+id/r2"

                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="@string/lbl2" />
            </LinearLayout>

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" >

                <RadioButton
                    android:id="@+id/r3"

                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="@string/lbl3" />

                <RadioButton
                    android:id="@+id/r4"

                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_weight="1"
                    android:text="@string/lbl4" />
            </LinearLayout>
        </RadioGroup>
Run Code Online (Sandbox Code Playgroud)

android radio-group radio-button android-layout

6
推荐指数
2
解决办法
5030
查看次数