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: fba08eff05e5b6b9ec6b7ec9c0e79af3e773f7c6 (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
<?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">

    <!-- Widget header -->
    <RelativeLayout
        android:id="@+id/widget_stack_header_rl"
        android:layout_width="match_parent"
        android:layout_height="@dimen/widget_stack_header_height"
        android:padding="@dimen/widget_stack_card_padding">

        <ImageView
            android:id="@+id/widget_stack_header_icon"
            android:layout_width="@dimen/widget_stack_icon_width"
            android:layout_height="match_parent"
            android:src="@drawable/circle_grey600_8dp"
            android:layout_alignParentStart="true"
            android:layout_alignParentBottom="true"
            android:paddingStart="@dimen/widget_stack_card_padding"
            android:paddingEnd="@dimen/widget_stack_card_padding"
            android:contentDescription="@string/widget_stack_header_icon" />

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

    </RelativeLayout>
    <!-- End header -->

    <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:padding="@dimen/spacer_1x"
        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:gravity="center"
        android:text="@string/app_name_short"
        android:textColor="@color/fg_secondary"
        app:srcCompat="@drawable/ic_local_movies_grey600_24dp"
        tools:visibility="gone"
        android:contentDescription="@string/widget_placeholder_icon" />

</LinearLayout>