Minor changes.

This commit is contained in:
staccatomamba
2017-09-29 18:04:41 +02:00
parent 0917284f8f
commit 7ce3e1595c
4 changed files with 32 additions and 16 deletions

View File

@@ -380,7 +380,7 @@ public class ChatPresenter extends MVPAbstractPresenter<ChatView>
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],

View File

@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
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="match_parent"
android:layout_height="wrap_content"
android:paddingTop="13dp">
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">
<TextView
android:id="@+id/chat_item_time"
@@ -48,10 +51,10 @@
<hani.momanii.supernova_emoji_library.Helper.EmojiconTextView
android:id="@+id/chat_item_message"
style="@style/LeftChatItemText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
emojicon:emojiconSize="20sp"
android:textColor="@color/colorBlack"
android:layout_below="@id/chat_item_file"
tools:text="Hi Daniel! What advice could you give me on speed cooking? Im thinking of opening a small bistro" />

View File

@@ -1,11 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
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="match_parent"
android:layout_height="wrap_content"
android:paddingTop="13dp">
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">
<TextView
android:id="@+id/chat_item_sending_failed"
@@ -97,9 +100,9 @@
android:textColor="@color/colorBlack"
android:visibility="gone" />
<!-- style="@style/RightChatItemText" -->
<hani.momanii.supernova_emoji_library.Helper.EmojiconTextView
android:id="@+id/chat_item_message"
style="@style/RightChatItemText"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentEnd="true"
@@ -107,6 +110,8 @@
android:layout_below="@id/chat_item_file"
android:visibility="gone"
emojicon:emojiconSize="20sp"
tools:text="Hi Daniel! What advice could you give me on speed cooking? Im thinking of opening a small bistro"/>
tools:text="Hi Daniel! What advice could you give me on speed cooking? Im thinking of opening a small bistro"
android:textColor="@color/colorWhite"
/>
</RelativeLayout>

View File

@@ -111,4 +111,12 @@
<item name="android:textColor">@color/colorWhite</item>
</style>
<style name="RightChatItemRelativeLayout">
<item name="android:background">@drawable/chat_right</item>
</style>
<style name="LeftChatItemRelativeLayout">
<item name="android:background">@drawable/chat_left</item>
</style>
</resources>