У меня проблемы с проектированием меню приложения с XML. Я хочу, чтобы и ToggleButton
, и Button
были на одной высоте, но Button
не выровнено. Это как если бы под ним было что-то невидимое, что заставляло бы его казаться немного выше.
Я искал информацию, но ничего не нашел
Вот код, который я написал на main.xml:
(...)
<TextView
android:text="Option1:"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ToggleButton
android:id="@+id/toggle_option1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:width="100sp"
android:height="50sp" />
<Button
android:id="@+id/button_option1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:height="50sp"
android:text="See"
/>
</LinearLayout>
Есть идеи?