adding some contact related layouts

This commit is contained in:
tibbi 2020-05-07 13:36:32 +02:00
parent 52daf7d314
commit 011f372a35
6 changed files with 104 additions and 2 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.27.10'
propVersionName = '5.27.11'
kotlin_version = '1.3.72'
}

View file

@ -31,6 +31,7 @@ dependencies {
implementation 'com.andrognito.patternlockview:patternlockview:1.0.0'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
api 'androidx.appcompat:appcompat:1.0.2'
api 'com.github.ajalt.reprint:core:3.3.0@aar'

View file

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/item_contact_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="@dimen/small_margin"
android:paddingTop="@dimen/medium_margin"
android:paddingEnd="@dimen/medium_margin"
android:paddingBottom="@dimen/medium_margin">
<ImageView
android:id="@+id/item_contact_image"
android:layout_width="@dimen/list_avatar_size"
android:layout_height="@dimen/list_avatar_size"
android:layout_margin="@dimen/tiny_margin"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/item_contact_name"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:lines="1"
android:maxLines="1"
android:paddingStart="@dimen/medium_margin"
android:paddingEnd="@dimen/medium_margin"
android:singleLine="true"
android:textSize="@dimen/bigger_text_size"
app:layout_constraintBottom_toTopOf="@+id/item_contact_number"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/item_contact_image"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintVertical_chainStyle="packed"
tools:text="Simple Mobile" />
<TextView
android:id="@+id/item_contact_number"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_below="@+id/item_contact_name"
android:layout_marginEnd="8dp"
android:alpha="0.8"
android:lines="1"
android:maxLines="1"
android:paddingStart="@dimen/medium_margin"
android:paddingEnd="@dimen/medium_margin"
android:singleLine="true"
android:textSize="@dimen/normal_text_size"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@+id/item_contact_image"
app:layout_constraintTop_toBottomOf="@+id/item_contact_name"
tools:text="123456" />
</androidx.constraintlayout.widget.ConstraintLayout>

View file

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/item_contact_holder"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/medium_margin"
android:paddingEnd="@dimen/activity_margin"
android:paddingBottom="@dimen/medium_margin">
<ImageView
android:id="@+id/item_contact_tmb"
android:layout_width="@dimen/normal_icon_size"
android:layout_height="@dimen/normal_icon_size"
android:layout_centerVertical="true"
android:layout_marginStart="@dimen/small_margin"
android:layout_marginEnd="@dimen/small_margin"
android:padding="@dimen/small_margin"
android:src="@drawable/ic_person_vector" />
<TextView
android:id="@+id/item_contact_name"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/item_contact_tmb"
android:ellipsize="end"
android:maxLines="1"
android:textSize="@dimen/bigger_text_size"
tools:text="John Doe" />
<TextView
android:id="@+id/item_contact_number"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/item_contact_name"
android:layout_alignStart="@+id/item_contact_name"
android:layout_toEndOf="@+id/item_contact_tmb"
android:alpha="0.6"
android:maxLines="1"
android:textSize="@dimen/normal_text_size"
tools:text="0123 456 789" />
</RelativeLayout>

View file

@ -37,7 +37,7 @@
<!-- Blocked numbers -->
<string name="manage_blocked_numbers">Gérer les numéros bloqués</string>
<string name="not_blocking_anyone">Aucun numéro n'est bloqué</string>
<string name="not_blocking_anyone">Aucun numéro n\'est bloqué</string>
<string name="add_a_blocked_number">Ajouter un numéro bloqué</string>
<string name="block_number">Numéro bloqué</string>
<string name="block_numbers">Numéros bloqués</string>

View file

@ -27,6 +27,7 @@
<dimen name="fab_size">56dp</dimen>
<dimen name="secondary_fab_bottom_margin">92dp</dimen>
<dimen name="file_picker_icon_size">54dp</dimen>
<dimen name="list_avatar_size">40dp</dimen>
<dimen name="dragselect_hotspot_height">56dp</dimen>
<dimen name="selection_check_size">26dp</dimen>