mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-29 08:34:37 +01:00
add chat button
This commit is contained in:
parent
5c9cf0ebc8
commit
8a891816b4
3 changed files with 13 additions and 0 deletions
BIN
xwords4/android/XWords4/res/drawable/stat_notify_chat.png
Normal file
BIN
xwords4/android/XWords4/res/drawable/stat_notify_chat.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.8 KiB |
|
@ -53,6 +53,10 @@
|
|||
style="@style/toolbar_button"
|
||||
android:src="@drawable/undo"
|
||||
/>
|
||||
<ImageButton android:id="@+id/chat_button_horizontal"
|
||||
style="@style/toolbar_button"
|
||||
android:src="@drawable/stat_notify_chat"
|
||||
/>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
|
||||
|
@ -85,6 +89,11 @@
|
|||
style="@style/toolbar_button"
|
||||
android:src="@drawable/undo"
|
||||
/>
|
||||
<ImageButton android:id="@+id/chat_button_vertical"
|
||||
style="@style/toolbar_button"
|
||||
android:src="@drawable/stat_notify_chat"
|
||||
/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
@ -47,6 +47,7 @@ public class Toolbar {
|
|||
public static final int BUTTON_JUGGLE = 3;
|
||||
public static final int BUTTON_ZOOM = 4;
|
||||
public static final int BUTTON_UNDO = 5;
|
||||
public static final int BUTTON_CHAT = 6;
|
||||
|
||||
private static TBButtonInfo[] s_buttonInfo = {
|
||||
// BUTTON_HINT_PREV
|
||||
|
@ -67,6 +68,9 @@ public class Toolbar {
|
|||
// BUTTON_UNDO
|
||||
new TBButtonInfo( R.id.undo_button_horizontal,
|
||||
R.id.undo_button_vertical ),
|
||||
// BUTTON_CHAT
|
||||
new TBButtonInfo( R.id.chat_button_horizontal,
|
||||
R.id.chat_button_vertical ),
|
||||
};
|
||||
|
||||
private Activity m_activity;
|
||||
|
|
Loading…
Add table
Reference in a new issue