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

widget_stack.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: f0b0c33fd4f4b9af6861611c8ca764a361e9fcfe (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"?>
<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="match_parent"
    android:background="@drawable/widget_outer_background"
    android:orientation="vertical">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:paddingStart="@dimen/widget_inner_padding_horizontal"
        android:paddingTop="@dimen/widget_inner_padding_vertical"
        android:paddingEnd="@dimen/widget_inner_padding_horizontal">

        <RelativeLayout
            android:id="@+id/widget_stack_header_rl"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:paddingStart="@dimen/spacer_1x"
            android:paddingEnd="@dimen/spacer_1x"
            tools:ignore="UselessParent">

            <ImageView
                android:id="@+id/widget_stack_header_icon"
                android:layout_width="@dimen/widget_font_size_header"
                android:layout_height="@dimen/widget_font_size_header"
                android:layout_alignParentStart="true"
                android:layout_centerVertical="true"
                android:contentDescription="@string/widget_stack_header_icon"
                android:src="@drawable/circle_8dp" />

            <TextView
                android:id="@+id/widget_stack_title_tv"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignParentEnd="true"
                android:layout_toEndOf="@id/widget_stack_header_icon"
                android:gravity="center_vertical"
                android:paddingStart="@dimen/spacer_1x"
                android:paddingEnd="@null"
                android:textAppearance="?attr/textAppearanceBody1"
                android:textColor="@color/widget_foreground"
                android:textSize="@dimen/widget_font_size_header"
                android:textStyle="bold"
                tools:text="@string/app_name" />

        </RelativeLayout>
    </LinearLayout>

    <ListView
        android:id="@+id/stack_widget_lv"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:divider="@android:color/transparent"
        android:dividerHeight="@dimen/spacer_1x"
        android:paddingStart="@dimen/widget_inner_padding_horizontal"
        android:paddingTop="@dimen/spacer_1x"
        android:paddingEnd="@dimen/widget_inner_padding_horizontal"
        android:paddingBottom="@dimen/widget_inner_padding_vertical"
        tools:listitem="@layout/widget_stack_entry" />

    <ImageView
        android:id="@+id/widget_stack_placeholder_iv"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:contentDescription="@string/widget_placeholder_icon"
        android:gravity="center"
        android:text="@string/app_name_short"
        android:textColor="?attr/colorOnSurfaceVariant"
        app:srcCompat="@drawable/ic_local_movies_24dp"
        tools:visibility="gone" />

</LinearLayout>