set the alpha of big contact image at View Details to 0 by default

This commit is contained in:
tibbi 2020-05-01 22:26:43 +02:00
parent 6aec222a15
commit 76a85466ce

View file

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/contact_wrapper"
android:layout_width="match_parent"
android:layout_height="match_parent">
@ -25,7 +23,7 @@
android:id="@+id/contact_photo"
android:layout_width="@dimen/contact_photo_size"
android:layout_height="@dimen/contact_photo_size"
android:layout_marginBottom="@dimen/normal_margin"/>
android:layout_marginBottom="@dimen/normal_margin" />
<ImageView
android:id="@+id/contact_toggle_favorite"
@ -39,7 +37,7 @@
android:background="?attr/selectableItemBackgroundBorderless"
android:padding="@dimen/tiny_margin"
android:src="@drawable/ic_star_off_vector"
android:visibility="gone"/>
android:visibility="gone" />
<LinearLayout
android:id="@+id/contact_actions_holder"
@ -58,7 +56,7 @@
android:paddingLeft="@dimen/small_margin"
android:paddingRight="@dimen/small_margin"
android:scaleType="fitCenter"
android:src="@drawable/ic_email_vector"/>
android:src="@drawable/ic_email_vector" />
<ImageView
android:id="@+id/contact_start_call"
@ -70,7 +68,7 @@
android:paddingLeft="@dimen/small_margin"
android:paddingRight="@dimen/small_margin"
android:scaleType="fitCenter"
android:src="@drawable/ic_phone_vector"/>
android:src="@drawable/ic_phone_vector" />
<ImageView
android:id="@+id/contact_send_sms"
@ -82,7 +80,7 @@
android:paddingLeft="@dimen/small_margin"
android:paddingRight="@dimen/small_margin"
android:scaleType="fitCenter"
android:src="@drawable/ic_sms_vector"/>
android:src="@drawable/ic_sms_vector" />
</LinearLayout>
@ -94,7 +92,7 @@
android:paddingTop="@dimen/medium_margin"
android:paddingEnd="@dimen/small_margin"
android:paddingBottom="@dimen/small_margin"
android:src="@drawable/ic_person_vector"/>
android:src="@drawable/ic_person_vector" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/contact_prefix"
@ -110,7 +108,7 @@
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/normal_margin"
android:singleLine="true"
android:textSize="@dimen/bigger_text_size"/>
android:textSize="@dimen/bigger_text_size" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/contact_first_name"
@ -126,7 +124,7 @@
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/normal_margin"
android:singleLine="true"
android:textSize="@dimen/bigger_text_size"/>
android:textSize="@dimen/bigger_text_size" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/contact_middle_name"
@ -142,7 +140,7 @@
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/normal_margin"
android:singleLine="true"
android:textSize="@dimen/bigger_text_size"/>
android:textSize="@dimen/bigger_text_size" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/contact_surname"
@ -158,7 +156,7 @@
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/normal_margin"
android:singleLine="true"
android:textSize="@dimen/bigger_text_size"/>
android:textSize="@dimen/bigger_text_size" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/contact_suffix"
@ -174,7 +172,7 @@
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/normal_margin"
android:singleLine="true"
android:textSize="@dimen/bigger_text_size"/>
android:textSize="@dimen/bigger_text_size" />
<com.simplemobiletools.commons.views.MyTextView
android:id="@+id/contact_nickname"
@ -190,7 +188,7 @@
android:paddingTop="@dimen/normal_margin"
android:paddingBottom="@dimen/normal_margin"
android:singleLine="true"
android:textSize="@dimen/bigger_text_size"/>
android:textSize="@dimen/bigger_text_size" />
<ImageView
android:id="@+id/contact_numbers_image"
@ -432,11 +430,12 @@
android:id="@+id/contact_photo_big"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:alpha="0"
android:background="#88000000"
android:clickable="true"
android:padding="@dimen/activity_margin"
android:src="@drawable/img_write_storage"
android:scaleType="fitCenter"
android:visibility="gone"/>
android:src="@drawable/img_write_storage"
android:visibility="gone" />
</RelativeLayout>