Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fragment_chat.xml « layout « res « main « src « app - gitlab.com/quite/mumla.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d3d8c7c51b85b221f44cff438fbdf33891eb18bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2014 Andrew Comminos
  ~
  ~ This program is free software: you can redistribute it and/or modify
  ~ it under the terms of the GNU General Public License as published by
  ~ the Free Software Foundation, either version 3 of the License, or
  ~ (at your option) any later version.
  ~
  ~ This program is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  ~ GNU General Public License for more details.
  ~
  ~ You should have received a copy of the GNU General Public License
  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
  -->

<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:orientation="vertical"
    android:layout_height="fill_parent"
    android:layout_width="fill_parent"
    tools:ignore="NewApi"
    android:divider="?attr/dividerVertical"
    android:showDividers="middle" >

    <ListView
        android:id="@+id/chat_list"
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_weight="1"
        android:dividerHeight="4dp"
        android:divider="@android:color/transparent"
        android:clipToPadding="false"
        android:padding="8dp"
        tools:listitem="@layout/list_chat_item"></ListView>

    <!--
    <TextView
        android:id="@+id/chat_target"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="To: Richard Matthew Stallman"
        android:fontFamily="sans-serif-light"
        android:padding="4dp"/>
    -->

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:divider="?attr/dividerHorizontal"
        android:showDividers="middle">

        <ImageButton
            android:id="@+id/chatImageSend"
            android:layout_width="48dp"
            android:layout_height="match_parent"
            android:layout_gravity="bottom"
            android:background="?attr/selectableItemBackground"
            android:enabled="false"
            app:srcCompat="@android:drawable/ic_menu_upload"
            app:tint="?android:attr/textColorPrimary" />

        <EditText
            android:id="@+id/chatTextEdit"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:minHeight="48dp"
            android:hint="@string/send_message"
            android:maxLines="4"
            android:inputType="textAutoCorrect|textMultiLine"
            android:imeOptions="actionSend"
            android:layout_marginLeft="10dp"
            android:layout_marginRight="10dp" >
        </EditText>

        <ImageButton
            android:id="@+id/chatTextSend"
            android:layout_width="48dp"
            android:layout_height="match_parent"
            app:srcCompat="@drawable/ic_action_send"
            android:tint="?android:attr/textColorPrimary"
            android:enabled="false"
            android:layout_gravity="bottom"
            android:background="?attr/selectableItemBackground"/>

    </LinearLayout>
</LinearLayout>