Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to receive long messages.
Send support is in here too. We'll enable it in a future release after enough people have updated.
- Loading branch information
1 parent
bf28e10
commit 55699e2
Showing
31 changed files
with
766 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ScrollView | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent"> | ||
|
||
<FrameLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:padding="16dp"> | ||
|
||
<ViewStub | ||
android:id="@+id/longmessage_sent_stub" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout="@layout/longmessage_bubble_sent"/> | ||
|
||
<ViewStub | ||
android:id="@+id/longmessage_received_stub" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout="@layout/longmessage_bubble_received"/> | ||
|
||
</FrameLayout> | ||
|
||
</ScrollView> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:background="@drawable/message_bubble_background_received_alone" | ||
android:visibility="gone" | ||
tools:visibility="visible"> | ||
|
||
<org.thoughtcrime.securesms.components.emoji.EmojiTextView | ||
android:id="@+id/longmessage_text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/message_bubble_top_padding" | ||
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding" | ||
android:layout_marginRight="@dimen/message_bubble_horizontal_padding" | ||
android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding" | ||
style="@style/Signal.Text.Body" | ||
android:textColor="?conversation_item_received_text_primary_color" | ||
android:textColorLink="?conversation_item_received_text_primary_color" | ||
android:textIsSelectable="true" | ||
app:scaleEmojis="true" | ||
tools:text="With great power comes great responsibility."/> | ||
|
||
<org.thoughtcrime.securesms.components.ConversationItemFooter | ||
android:id="@+id/longmessage_footer" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="-4dp" | ||
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding" | ||
android:layout_marginRight="@dimen/message_bubble_horizontal_padding" | ||
android:layout_marginBottom="@dimen/message_bubble_bottom_padding" | ||
android:clipChildren="false" | ||
android:clipToPadding="false" | ||
android:alpha="0.7" | ||
app:footer_text_color="?attr/conversation_item_received_text_secondary_color" | ||
app:footer_icon_color="?attr/conversation_item_received_text_secondary_color"/> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:orientation="vertical" | ||
android:background="@drawable/message_bubble_background_sent_alone" | ||
android:visibility="gone" | ||
tools:visibility="visible"> | ||
|
||
<org.thoughtcrime.securesms.components.emoji.EmojiTextView | ||
android:id="@+id/longmessage_text" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="@dimen/message_bubble_top_padding" | ||
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding" | ||
android:layout_marginRight="@dimen/message_bubble_horizontal_padding" | ||
android:layout_marginBottom="@dimen/message_bubble_collapsed_footer_padding" | ||
style="@style/Signal.Text.Body" | ||
android:textColor="?conversation_item_sent_text_primary_color" | ||
android:textColorLink="?conversation_item_sent_text_primary_color" | ||
android:textIsSelectable="true" | ||
app:scaleEmojis="true" | ||
tools:text="With great power comes great responsibility."/> | ||
|
||
<org.thoughtcrime.securesms.components.ConversationItemFooter | ||
android:id="@+id/longmessage_footer" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="-4dp" | ||
android:layout_marginLeft="@dimen/message_bubble_horizontal_padding" | ||
android:layout_marginRight="@dimen/message_bubble_horizontal_padding" | ||
android:layout_marginBottom="@dimen/message_bubble_bottom_padding" | ||
android:clipChildren="false" | ||
android:clipToPadding="false" | ||
app:footer_text_color="?attr/conversation_item_sent_text_secondary_color" | ||
app:footer_icon_color="?attr/conversation_item_sent_icon_color"/> | ||
|
||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.