我是Android的新手,我需要在我的活动上添加单选按钮,但我需要将文本放在项目符号按钮上.
请帮忙.我找到了以下内容,虽然我不明白@ drawable/main_selector和@ style/TabStyle是什么.
任何人都可以给我一个101指南.
UPDATE
我根据一些建议使用了以下内容,但没有奏效:
<RadioGroup xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal" >
<RadioButton
android:text="something that is on top"
android:id="@+id/toggle_tab_left"
android:button="?android:attr/listChoiceIndicatorSingle"
style="@null"/>
<RadioButton
android:button="?android:attr/listChoiceIndicatorSingle"
android:text="something that is on top"
android:id="@+id/toggle_tab_right"
style="@null"/>
</RadioGroup>
Run Code Online (Sandbox Code Playgroud)
更新2
我从Warpzit得到了我的解决方案,但是因为我将问题标记为已回答,有人可以帮我解决下面的对齐问题.我将连续有5个单选按钮,其中一些将有更长的文本分成2行.当文本适合屏幕,因为横向或平板电脑,那么所有文本应该在一行中:

更新3
...根据屏幕大小,文本可以分成不同数量的行.它永远不会是标准的

如何在带有cordova(phonegap)的wp8上获取本地IP地址?也许我需要以下线程的答案,但在C# 中使用javascript获取客户端的本地IP地址