You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
metu.life-android/app/src/main/res/layout/item_their_message.xml

76 lines
4.5 KiB

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/chat_between_messages_padding"
android:paddingBottom="@dimen/chat_between_messages_padding"
android:paddingStart="@dimen/chat_message_h_padding"
android:paddingEnd="@dimen/chat_message_h_padding"
android:layout_gravity="start">
<LinearLayout
android:id="@+id/contentLayout"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/message_background"
android:backgroundTint="?attr/colorPrimaryDark"
android:orientation="vertical"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toStartOf="@id/datetime"
>
<FrameLayout
android:id="@+id/attachmentLayout"
android:layout_width="match_parent"
android:layout_height="@dimen/chat_media_preview_item_height"
android:layout_marginTop="@dimen/chat_message_h_padding"
android:visibility="gone"
tools:visibility="visible">
<com.keylesspalace.tusky.view.MediaPreviewImageView
android:id="@+id/attachment"
android:layout_width="match_parent"
android:layout_height="@dimen/chat_media_preview_item_height"
tools:src="@drawable/elephant_friend_empty"
/>
<ImageView
android:id="@+id/mediaOverlay"
android:layout_width="match_parent"
android:layout_height="@dimen/chat_media_preview_item_height"
android:scaleType="center"
app:srcCompat="@drawable/ic_play_indicator"
tools:ignore="ContentDescription" />
</FrameLayout>
<androidx.emoji.widget.EmojiTextView
android:id="@+id/content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="@dimen/chat_message_h_padding"
android:paddingTop="@dimen/chat_message_v_padding"
android:paddingEnd="@dimen/chat_message_h_padding"
android:paddingBottom="@dimen/chat_message_v_padding"
android:textSize="?attr/status_text_large"
android:textColor="@color/textColorPrimary"
app:layout_constrainedWidth="true"
tools:text="What you guys are referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux. Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX. Many computer users run a modified version of the GNU system every day, without realizing it. Through a peculiar turn of events, the version of GNU which is widely used today is often called Linux, and many of its users are not aware that it is basically the GNU system, developed by the GNU Project. There really is a Linux, and these people are using it, but it is just a part of the system they use. Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run. The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system. Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux. All the so-called Linux distributions are really distributions of GNU/Linux. Thank you for taking your time to cooperate with with me, your friendly GNU+Linux neighbor, Richard Stallman." />
</LinearLayout>
<TextView
android:id="@+id/datetime"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="@dimen/chat_message_h_padding"
android:paddingEnd="@dimen/chat_message_h_padding"
app:layout_constraintStart_toEndOf="@id/contentLayout"
app:layout_constraintBottom_toBottomOf="@id/contentLayout"
tools:text="12:39"
/>
</androidx.constraintlayout.widget.ConstraintLayout>