diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-02-03 23:41:07 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-02-04 00:02:27 +0100 |
commit | bc4d112060cbe822bef0dda8d5104db725deeb1b (patch) | |
tree | f719786139b729892cf67d103b1922ea48cad279 /src/main/res | |
parent | 282612a0612fac5eb9ced648b3d8969bff85c90c (diff) |
implemented message search
fixes #110
Diffstat (limited to 'src/main/res')
12 files changed, 101 insertions, 39 deletions
diff --git a/src/main/res/drawable-hdpi/ic_keyboard_arrow_down_white_24dp.png b/src/main/res/drawable-hdpi/ic_keyboard_arrow_down_white_24dp.png Binary files differnew file mode 100644 index 000000000..bbb4fb4dc --- /dev/null +++ b/src/main/res/drawable-hdpi/ic_keyboard_arrow_down_white_24dp.png diff --git a/src/main/res/drawable-hdpi/ic_keyboard_arrow_up_white_24dp.png b/src/main/res/drawable-hdpi/ic_keyboard_arrow_up_white_24dp.png Binary files differnew file mode 100644 index 000000000..dea898838 --- /dev/null +++ b/src/main/res/drawable-hdpi/ic_keyboard_arrow_up_white_24dp.png diff --git a/src/main/res/drawable-mdpi/ic_keyboard_arrow_down_white_24dp.png b/src/main/res/drawable-mdpi/ic_keyboard_arrow_down_white_24dp.png Binary files differnew file mode 100644 index 000000000..ef8a4b6a4 --- /dev/null +++ b/src/main/res/drawable-mdpi/ic_keyboard_arrow_down_white_24dp.png diff --git a/src/main/res/drawable-mdpi/ic_keyboard_arrow_up_white_24dp.png b/src/main/res/drawable-mdpi/ic_keyboard_arrow_up_white_24dp.png Binary files differnew file mode 100644 index 000000000..a2e4baad0 --- /dev/null +++ b/src/main/res/drawable-mdpi/ic_keyboard_arrow_up_white_24dp.png diff --git a/src/main/res/drawable-xhdpi/ic_keyboard_arrow_down_white_24dp.png b/src/main/res/drawable-xhdpi/ic_keyboard_arrow_down_white_24dp.png Binary files differnew file mode 100644 index 000000000..058cebb7f --- /dev/null +++ b/src/main/res/drawable-xhdpi/ic_keyboard_arrow_down_white_24dp.png diff --git a/src/main/res/drawable-xhdpi/ic_keyboard_arrow_up_white_24dp.png b/src/main/res/drawable-xhdpi/ic_keyboard_arrow_up_white_24dp.png Binary files differnew file mode 100644 index 000000000..ae36d91e1 --- /dev/null +++ b/src/main/res/drawable-xhdpi/ic_keyboard_arrow_up_white_24dp.png diff --git a/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_down_white_24dp.png b/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_down_white_24dp.png Binary files differnew file mode 100644 index 000000000..f9622b7be --- /dev/null +++ b/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_down_white_24dp.png diff --git a/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_up_white_24dp.png b/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_up_white_24dp.png Binary files differnew file mode 100644 index 000000000..ce4aa5602 --- /dev/null +++ b/src/main/res/drawable-xxhdpi/ic_keyboard_arrow_up_white_24dp.png diff --git a/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_down_white_24dp.png b/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_down_white_24dp.png Binary files differnew file mode 100644 index 000000000..30948d983 --- /dev/null +++ b/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_down_white_24dp.png diff --git a/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_up_white_24dp.png b/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_up_white_24dp.png Binary files differnew file mode 100644 index 000000000..42615516b --- /dev/null +++ b/src/main/res/drawable-xxxhdpi/ic_keyboard_arrow_up_white_24dp.png diff --git a/src/main/res/layout/fragment_conversation.xml b/src/main/res/layout/fragment_conversation.xml index 2ac131d34..7f1a4197a 100644 --- a/src/main/res/layout/fragment_conversation.xml +++ b/src/main/res/layout/fragment_conversation.xml @@ -11,7 +11,6 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_above="@+id/snackbar" - android:layout_below="@+id/messagehint" android:layout_alignParentLeft="true" android:layout_alignParentTop="true" android:background="@color/grey200" @@ -24,55 +23,114 @@ </ListView> <RelativeLayout - android:id="@+id/textsend" - android:layout_width="fill_parent" + android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" - android:background="@color/grey200" - android:clickable="true" - android:paddingTop="2dp" - android:paddingLeft="2dp" - android:paddingBottom="2dp"> + android:id="@+id/input"> - <de.pixart.messenger.ui.widget.EditMessage - android:id="@+id/textinput" - android:layout_width="wrap_content" + <RelativeLayout + android:id="@+id/searchfield" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="@color/grey500" + android:minHeight="50dp" + android:layout_marginTop="2dp" + android:visibility="gone"> + + <EditText + android:id="@+id/searchfield_input" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:layout_toLeftOf="@+id/button_bar" + android:hint="@string/search" + android:maxLines="4" + android:minHeight="48dp" + android:minLines="1" + android:paddingBottom="12dp" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingTop="12dp" + android:singleLine="false" + android:textColor="@color/realwhite" + android:textColorHint="@color/white" /> + + <LinearLayout + android:id="@+id/button_bar" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true"> + + <ImageButton + android:id="@+id/search_up" + style="?android:attr/borderlessButtonStyle" + android:layout_width="32dp" + android:layout_height="wrap_content" + android:src="@drawable/ic_keyboard_arrow_up_white_24dp" + android:visibility="gone"/> + + <ImageButton + android:id="@+id/search_down" + style="?android:attr/borderlessButtonStyle" + android:layout_width="32dp" + android:layout_height="wrap_content" + android:src="@drawable/ic_keyboard_arrow_down_white_24dp" + android:visibility="gone"/> + </LinearLayout> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/textsend" + android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_alignParentLeft="true" - android:layout_toLeftOf="@+id/textSendButton" - android:background="@color/grey50" - android:ems="10" - android:imeOptions="flagNoExtractUi|actionSend" - android:inputType="textShortMessage|textMultiLine|textCapSentences" - android:minHeight="48dp" - android:minLines="1" - android:maxLines="6" - android:paddingBottom="12dp" - android:paddingLeft="8dp" - android:paddingRight="8dp" - android:paddingTop="12dp" - android:textColor="@color/black87" - android:singleLine="false"> - - </de.pixart.messenger.ui.widget.EditMessage> - - <ImageButton - android:id="@+id/textSendButton" - android:layout_width="48dp" - android:layout_height="48dp" - android:layout_alignParentRight="true" - android:layout_centerVertical="true" android:background="@color/grey200" - android:src="@drawable/ic_send_text_offline" - android:contentDescription="@string/send_message" /> + android:clickable="true" + android:paddingBottom="2dp" + android:paddingLeft="2dp" + android:paddingTop="2dp"> + + <de.pixart.messenger.ui.widget.EditMessage + android:id="@+id/textinput" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_toLeftOf="@+id/textSendButton" + android:background="@color/grey50" + android:ems="10" + android:imeOptions="flagNoExtractUi|actionSend" + android:inputType="textShortMessage|textMultiLine|textCapSentences" + android:maxLines="6" + android:minHeight="48dp" + android:minLines="1" + android:paddingBottom="12dp" + android:paddingLeft="8dp" + android:paddingRight="8dp" + android:paddingTop="12dp" + android:singleLine="false" + android:textColor="@color/black87"> + + </de.pixart.messenger.ui.widget.EditMessage> + + <ImageButton + android:id="@+id/textSendButton" + android:layout_width="48dp" + android:layout_height="48dp" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:background="@color/grey200" + android:contentDescription="@string/send_message" + android:src="@drawable/ic_send_text_offline" /> + </RelativeLayout> </RelativeLayout> <RelativeLayout android:id="@+id/snackbar" android:layout_width="fill_parent" android:layout_height="wrap_content" - android:layout_above="@+id/textsend" + android:layout_above="@+id/input" android:layout_marginBottom="4dp" android:layout_marginLeft="8dp" android:layout_marginRight="8dp" @@ -88,7 +146,7 @@ android:layout_centerVertical="true" android:layout_toLeftOf="@+id/snackbar_action" android:paddingLeft="24dp" - android:textColor="@color/white" + android:textColor="@color/white70" android:textSize="?attr/TextSizeBody" /> <TextView diff --git a/src/main/res/menu/conversations.xml b/src/main/res/menu/conversations.xml index 35fc61990..9b55c694e 100644 --- a/src/main/res/menu/conversations.xml +++ b/src/main/res/menu/conversations.xml @@ -63,5 +63,9 @@ android:orderInCategory="100" android:showAsAction="never" android:title="@string/action_check_update" /> - + <item + android:id="@+id/action_search_history" + android:icon="?attr/icon_search" + android:showAsAction="always" + android:title="@string/search" /> </menu>
\ No newline at end of file |