pts_list_item.xml 4.53 KB
Newer Older
Toni Beier's avatar
Toni Beier committed
1 2 3
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
4 5
    android:layout_height="wrap_content"
    xmlns:app="http://schemas.android.com/apk/res-auto"
Toni Beier's avatar
Toni Beier committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
    android:orientation="horizontal"
    android:background="@color/white"
    android:paddingStart="10dp"
    android:paddingLeft="10dp"
    android:paddingEnd="5dp"
    android:paddingRight="5dp"
    android:baselineAligned="false">
    <!--android:minHeight="50dp"-->

    <TextView
        android:id="@+id/emptyStationList"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:textColor="@color/descColor"
        style="@style/TitleTextField"
        android:visibility="gone"
    />

24
   <androidx.constraintlayout.widget.ConstraintLayout
Toni Beier's avatar
Toni Beier committed
25
        android:id="@+id/pts_list_item"
26
        android:layout_width="wrap_content"
Toni Beier's avatar
Toni Beier committed
27 28 29 30 31 32 33
        android:layout_height="wrap_content"
        android:layout_weight="1.0"
        android:layout_gravity="center_vertical"
		android:textColor="@color/defaultTitleColor"
        android:orientation="vertical"
        android:paddingBottom="5dp"
        android:paddingTop="5dp"
34 35 36 37
       app:layout_constraintTop_toTopOf="parent"
       app:layout_constraintLeft_toLeftOf="parent"
       app:layout_constraintRight_toRightOf="parent"
       app:layout_constraintBottom_toBottomOf="parent"
Toni Beier's avatar
Toni Beier committed
38
        >
39 40
       <androidx.constraintlayout.widget.ConstraintLayout
           android:layout_width="0dp"
Toni Beier's avatar
Toni Beier committed
41 42 43
           android:layout_height="wrap_content"
           android:textColor="@color/defaultTitleColor"
           android:orientation="horizontal"
44 45 46 47
           app:layout_constraintTop_toTopOf="parent"
           app:layout_constraintLeft_toLeftOf="parent"
           app:layout_constraintRight_toRightOf="parent"
           android:id="@+id/constraintLayoutHeader"
Toni Beier's avatar
Toni Beier committed
48 49
           >

50 51 52 53 54 55 56 57 58
           <androidx.constraintlayout.widget.Guideline
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:id="@+id/guideline"
               app:layout_constraintGuide_begin="0dp"
               app:layout_constraintGuide_percent="0.6"
               android:orientation="vertical"
               />

Toni Beier's avatar
Toni Beier committed
59 60
        <TextView
            android:id="@+id/stationName"
61
            android:layout_width="0dp"
Toni Beier's avatar
Toni Beier committed
62 63
            android:layout_height="wrap_content"
            android:textColor="@color/defaultTitleColor"
64 65 66 67 68 69 70 71 72 73 74 75
            style="@style/TitleTextField"
            android:lines= "1"
            android:singleLine="true"
            android:ellipsize="end"
            android:maxLines="1"
            android:ems="6"
            app:layout_constraintTop_toTopOf="parent"
            app:layout_constraintLeft_toLeftOf="parent"
            android:autoSizeTextType="uniform"
            app:autoSizeMinTextSize="16sp"
            app:autoSizeMaxTextSize="100sp"
            app:autoSizeStepGranularity="1sp"
Toni Beier's avatar
Toni Beier committed
76 77 78
        />
       <TextView
           android:id="@+id/distance"
79
           android:layout_width="0dp"
Toni Beier's avatar
Toni Beier committed
80 81 82 83 84
           android:layout_height="wrap_content"
           android:textColor="@color/descColor"
           android:textSize="@dimen/descTextSize"
           android:paddingLeft="7dp"
           style="@style/TitleTextField"
85 86 87
           app:layout_constraintLeft_toRightOf="@id/stationName"
           app:layout_constraintRight_toLeftOf="@id/favStation"
           app:layout_constraintTop_toTopOf="parent"
Toni Beier's avatar
Toni Beier committed
88
        />
89 90 91 92 93 94 95 96 97 98 99 100 101 102
           <ImageView
               android:layout_width="wrap_content"
               android:layout_height="wrap_content"
               android:id="@+id/favStation"
               app:srcCompat="@drawable/ic_fav_unselected"
               android:paddingLeft="7dp"
               android:paddingBottom="10dp"
               android:paddingTop="5dp"
               android:layout_marginRight="5dp"
               app:layout_constraintRight_toRightOf="parent"
               app:layout_constraintTop_toTopOf="parent"
           />

       </androidx.constraintlayout.widget.ConstraintLayout>
Toni Beier's avatar
Toni Beier committed
103 104
       <ListView
           android:id="@+id/dep_list"
105 106
           android:layout_width="0dp"
           android:layout_height="0dp"
Toni Beier's avatar
Toni Beier committed
107 108
           android:divider="@null"
           android:dividerHeight="0dp"
109 110 111 112
           app:layout_constraintTop_toBottomOf="@id/constraintLayoutHeader"
           app:layout_constraintLeft_toLeftOf="parent"
           app:layout_constraintRight_toRightOf="parent"
           app:layout_constraintBottom_toBottomOf="parent"
Toni Beier's avatar
Toni Beier committed
113
       />
114
    </androidx.constraintlayout.widget.ConstraintLayout>
Toni Beier's avatar
Toni Beier committed
115 116

</LinearLayout>