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

fragment_card_edit_tab_comments.xml « layout « res « main « src « app - github.com/stefan-niedermann/nextcloud-deck.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ca5ff8ca03075c3b260f9cbe8f48c2815b648bec (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
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout 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">

    <androidx.recyclerview.widget.RecyclerView
        android:id="@+id/comments"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_above="@id/addCommentLayout"
        app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
        app:reverseLayout="true"
        tools:listitem="@layout/item_comment" />

    <it.niedermann.nextcloud.deck.ui.view.EmptyContentView
        android:id="@+id/empty_content_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:visibility="gone"
        app:description="@string/no_comments_yet"
        app:image="@drawable/type_comment_grey600_36dp"
        app:title="@string/card_edit_comments" />

    <LinearLayout
        android:id="@+id/addCommentLayout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_alignParentBottom="true"
        android:clipToPadding="false"
        android:orientation="horizontal"
        android:padding="@dimen/spacer_2x">

        <ImageView
            android:layout_width="@dimen/icon_size_details"
            android:layout_height="match_parent"
            android:layout_marginEnd="@dimen/spacer_2x"
            android:layout_marginRight="@dimen/spacer_2x"
            android:contentDescription="@null"
            android:tint="@color/grey600"
            app:srcCompat="@drawable/ic_comment_white_24dp" />

        <EditText
            android:id="@+id/message"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:layout_marginStart="@dimen/spacer_2x"
            android:layout_marginLeft="@dimen/spacer_2x"
            android:layout_weight="1"
            android:autofillHints="@null"
            android:hint="@string/add_comment"
            android:imeOptions="flagNoExtractUi|actionSend"
            android:inputType="text"
            android:maxLength="@integer/comment_max_length"
            android:paddingEnd="@dimen/spacer_1x"
            android:paddingRight="@dimen/spacer_1x"
            tools:ignore="RtlSymmetry">

            <requestFocus />
        </EditText>

        <com.google.android.material.floatingactionbutton.FloatingActionButton
            android:id="@+id/fab"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:contentDescription="@string/add_comment"
            android:tint="@android:color/white"
            app:fabSize="mini"
            app:srcCompat="@drawable/ic_send_white_24dp" />
    </LinearLayout>
</RelativeLayout>