mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-09 05:24:44 +01:00
e218cb7639
to hide it only for landscape orientation, but that seems impossible without having separate layout and reloading whole activity on orientation change. If you hide it after adding content to the activity you get a runtime exception. Better way than hiding title, BTW, is a theme that hides it in AndroidManifest.xml.
82 lines
3.1 KiB
XML
82 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
android:orientation="horizontal"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:paddingLeft="3dp"
|
|
android:paddingRight="3dp"
|
|
android:paddingTop="3dp"
|
|
>
|
|
|
|
<LinearLayout android:orientation="vertical"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1"
|
|
>
|
|
<org.eehouse.android.xw4.BoardView
|
|
android:id="@+id/board_view"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="fill_parent"
|
|
android:layout_weight="1"
|
|
android:focusable="true"
|
|
android:clickable="true"
|
|
android:longClickable="true"
|
|
android:drawSelectorOnTop="false"/>
|
|
|
|
<LinearLayout android:id="@+id/toolbar_horizontal"
|
|
android:orientation="horizontal"
|
|
android:layout_width="fill_parent"
|
|
android:layout_height="wrap_content"
|
|
>
|
|
<ImageButton android:id="@+id/prevhint_button_horizontal"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/prev_hint"
|
|
/>
|
|
<ImageButton android:id="@+id/nexthint_button_horizontal"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/next_hint"
|
|
/>
|
|
<ImageButton android:id="@+id/shuffle_button_horizontal"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/shuffle"
|
|
/>
|
|
<ImageButton android:id="@+id/flip_button_horizontal"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/flip"
|
|
/>
|
|
<ImageButton android:id="@+id/zoom_button_horizontal"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/zoom"
|
|
/>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout android:id="@+id/toolbar_vertical"
|
|
android:orientation="vertical"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="fill_parent"
|
|
>
|
|
<ImageButton android:id="@+id/prevhint_button_vertical"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/prev_hint"
|
|
/>
|
|
<ImageButton android:id="@+id/nexthint_button_vertical"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/next_hint"
|
|
/>
|
|
<ImageButton android:id="@+id/shuffle_button_vertical"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/shuffle"
|
|
/>
|
|
<ImageButton android:id="@+id/flip_button_vertical"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/flip"
|
|
/>
|
|
<ImageButton android:id="@+id/zoom_button_vertical"
|
|
style="@style/toolbar_button"
|
|
android:src="@drawable/zoom"
|
|
/>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|