mirror of
https://github.com/peterosterlund2/droidfish.git
synced 2025-12-14 01:42:40 +01:00
DroidFish: Use the TourGuide library to display usage hints the first
time the program is started.
This commit is contained in:
@@ -25,49 +25,55 @@
|
||||
android:paddingTop="1dp">
|
||||
<TextView
|
||||
android:id="@+id/status"
|
||||
android:layout_width="0dp"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:includeFontPadding="true"
|
||||
android:fontFamily="monospace"
|
||||
android:typeface="monospace"
|
||||
android:textSize="12sp"/>
|
||||
<ImageButton
|
||||
android:id="@+id/custom3Button"
|
||||
android:contentDescription="@string/buttonDesc_custom3"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/custom2Button"
|
||||
android:contentDescription="@string/buttonDesc_custom2"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/custom1Button"
|
||||
android:contentDescription="@string/buttonDesc_custom1"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/modeButton"
|
||||
android:contentDescription="@string/buttonDesc_mode"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/undoButton"
|
||||
android:contentDescription="@string/buttonDesc_back"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/redoButton"
|
||||
android:contentDescription="@string/buttonDesc_forward"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<LinearLayout
|
||||
android:id="@+id/buttons"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content">
|
||||
<ImageButton
|
||||
android:id="@+id/custom3Button"
|
||||
android:contentDescription="@string/buttonDesc_custom3"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/custom2Button"
|
||||
android:contentDescription="@string/buttonDesc_custom2"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/custom1Button"
|
||||
android:contentDescription="@string/buttonDesc_custom1"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/modeButton"
|
||||
android:contentDescription="@string/buttonDesc_mode"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/undoButton"
|
||||
android:contentDescription="@string/buttonDesc_back"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
<ImageButton
|
||||
android:id="@+id/redoButton"
|
||||
android:contentDescription="@string/buttonDesc_forward"
|
||||
android:layout_width="36dp"
|
||||
android:layout_height="32dp">
|
||||
</ImageButton>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
<view
|
||||
class="org.petero.droidfish.MyRelativeLayout"
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
layout="@layout/title">
|
||||
</include>
|
||||
<LinearLayout
|
||||
android:id="@+id/buttons"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
||||
40
DroidFish/res/layout/tooltip.xml
Normal file
40
DroidFish/res/layout/tooltip.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<!--<View-->
|
||||
<!--android:layout_width="wrap_content"-->
|
||||
<!--android:layout_height="5dp"-->
|
||||
<!--android:background="@drawable/shadow_upward" />-->
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/toolTip_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom"
|
||||
android:background="#e74c3c"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center"
|
||||
android:padding="10dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="Default Title"
|
||||
android:textColor="@color/White"
|
||||
android:textSize="20sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/description"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:text="Default Description"
|
||||
android:textColor="@color/White" />
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
Reference in New Issue
Block a user