У меня очень простая раскладка: RelativeLayout с MapView и ToggleButton. Почему ToggleButton отображается прозрачным, когда я нигде не указал его, и реальный вопрос, как я могу остановить его?
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mainlayout"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<com.google.android.maps.MapView
android:id="@+id/mapview"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true"
android:apiKey="NoYouCantSeeMyKey" />
<ToggleButton android:id="@+id/aerialsbutton"
android:layout_width="150px"
android:layout_height="50px"
android:textOn="Aerials On"
android:textOff="Aerials Off"
android:layout_alignParentRight="true" />
</RelativeLayout>
Я попытался установить альфа в 1 и переключить порядок MapView и ToggleButton безуспешно. Любая помощь очень ценится.
ОБНОВЛЕНИЕ: моя тема Applcation установлена на android:theme="@android:style/Theme.Holo.NoActionBar"
. Может ли это иметь значение?
ОБНОВЛЕНИЕ 2: тема не имеет значения. Довольно тупо здесь.