added priority to messages
This commit is contained in:
9
android/app/src/main/res/drawable/priority_high.xml
Normal file
9
android/app/src/main/res/drawable/priority_high.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M21.4,10.6l-8,-8c-0.8,-0.8 -2,-0.8 -2.8,0l-8,8c-0.8,0.8 -0.8,2 0,2.8l8,8c0.8,0.8 2,0.8 2.8,0l8,-8C22.2,12.6 22.2,11.4 21.4,10.6zM13,17h-2v-2h2V17zM13,13h-2V7h2V13z"/>
|
||||
</vector>
|
9
android/app/src/main/res/drawable/priority_low.xml
Normal file
9
android/app/src/main/res/drawable/priority_low.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:fillColor="#FF000000"
|
||||
android:pathData="M21.4,10.6l-8,-8c-0.8,-0.8 -2,-0.8 -2.8,0l-8,8c-0.8,0.8 -0.8,2 0,2.8l8,8c0.8,0.8 2,0.8 2.8,0l8,-8C22.2,12.6 22.2,11.4 21.4,10.6zM12,17l-3,-3h2V7h2v7h2L12,17z"/>
|
||||
</vector>
|
@@ -15,7 +15,7 @@
|
||||
|
||||
|
||||
<android.support.constraint.ConstraintLayout
|
||||
android:background="@color/cardview_light_background"
|
||||
android:background="#FFFFFFFF"
|
||||
android:layout_margin="3dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
@@ -28,6 +28,7 @@
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:textSize="12sp"
|
||||
android:textStyle="italic"
|
||||
|
||||
android:text="2018-09-11 20:22:32" />
|
||||
|
||||
<TextView
|
||||
@@ -37,7 +38,6 @@
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@+id/tvTimestamp"
|
||||
android:layout_marginRight="4sp"
|
||||
android:layout_marginEnd="4sp"
|
||||
android:textSize="16sp"
|
||||
android:textColor="@color/colorBlack"
|
||||
@@ -52,14 +52,26 @@
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvTitle"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@+id/ivPriority"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
android:layout_margin="4sp"
|
||||
android:ellipsize="none"
|
||||
android:maxLines="32"
|
||||
android:scrollHorizontally="false"
|
||||
|
||||
android:text="asdasd asdasd asd asd a" />
|
||||
android:text="asdasd asdasd asdasd a" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/ivPriority"
|
||||
android:visibility="gone"
|
||||
android:layout_width="24dp"
|
||||
android:layout_height="24dp"
|
||||
app:layout_constraintTop_toBottomOf="@+id/tvTimestamp"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
android:layout_margin="4sp"
|
||||
android:paddingTop="3dp"
|
||||
android:contentDescription="@string/desc_priority_icon" />
|
||||
|
||||
</android.support.constraint.ConstraintLayout>
|
||||
|
||||
|
@@ -14,4 +14,5 @@
|
||||
<string name="no_notifications">No notifications</string>
|
||||
<string name="str_not_connected">not connected</string>
|
||||
<string name="str_reload">reload</string>
|
||||
<string name="desc_priority_icon">Priority icon</string>
|
||||
</resources>
|
||||
|
Reference in New Issue
Block a user