From 7ce3e1595cce274e26bb4d6614e8d69f5817b607 Mon Sep 17 00:00:00 2001 From: staccatomamba Date: Fri, 29 Sep 2017 18:04:41 +0200 Subject: [PATCH] Minor changes. --- .../bewoplaner/page/chat/ChatPresenter.java | 2 +- .../main/res/layout/item_single_chat_left.xml | 17 ++++++++------- .../res/layout/item_single_chat_right.xml | 21 ++++++++++++------- .../app/src/main/res/values/styles.xml | 8 +++++++ 4 files changed, 32 insertions(+), 16 deletions(-) diff --git a/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/java/com/p3/bewoplaner/page/chat/ChatPresenter.java b/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/java/com/p3/bewoplaner/page/chat/ChatPresenter.java index 48f1fb5..95602a5 100644 --- a/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/java/com/p3/bewoplaner/page/chat/ChatPresenter.java +++ b/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/java/com/p3/bewoplaner/page/chat/ChatPresenter.java @@ -380,7 +380,7 @@ public class ChatPresenter extends MVPAbstractPresenter Message message = new Message(findUniqueRandomId(mRealmProvider, mUserIdPreference.get()), mGroupId, System.currentTimeMillis() / 1000, - "Das ist ein Testtext zu einer Datei", + null, file.getPath(), file.getPath(), split[split.length - 1], diff --git a/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/layout/item_single_chat_left.xml b/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/layout/item_single_chat_left.xml index ca1efcb..5e5b8c0 100644 --- a/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/layout/item_single_chat_left.xml +++ b/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/layout/item_single_chat_left.xml @@ -1,11 +1,14 @@ + xmlns:custom="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + xmlns:emojicon="http://schemas.android.com/apk/res-auto" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/LeftChatItemRelativeLayout" + android:layout_marginTop="6dp" + android:layout_marginBottom="6dp" + android:paddingTop="13dp"> diff --git a/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/layout/item_single_chat_right.xml b/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/layout/item_single_chat_right.xml index 8f1467c..e4c2320 100644 --- a/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/layout/item_single_chat_right.xml +++ b/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/layout/item_single_chat_right.xml @@ -1,11 +1,14 @@ + xmlns:custom="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + xmlns:emojicon="http://schemas.android.com/apk/res-auto" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + style="@style/RightChatItemRelativeLayout" + android:layout_marginTop="6dp" + android:layout_marginBottom="6dp" + android:paddingTop="13dp"> + + tools:text="Hi Daniel! What advice could you give me on speed cooking? I’m thinking of opening a small bistro" + android:textColor="@color/colorWhite" + /> \ No newline at end of file diff --git a/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/values/styles.xml b/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/values/styles.xml index a56a9f3..ab770d5 100644 --- a/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/values/styles.xml +++ b/BeWoPlanerChat/bewoplaner-chat-android/app/src/main/res/values/styles.xml @@ -111,4 +111,12 @@ @color/colorWhite + + + +