limit the size of contact action buttons

This commit is contained in:
tibbi 2017-12-17 22:58:11 +01:00
parent 0beac47494
commit 0a90594d32
3 changed files with 10 additions and 6 deletions

View File

@ -114,6 +114,7 @@ class ContactActivity : SimpleActivity() {
contact_start_call.setOnClickListener { startCallIntent(contact!!.number) }
//contact_send_email.setOnClickListener { sendEmailIntent(contact!!.email) }
contact_source.setOnClickListener { showAccountSourcePicker() }
contact_number_type.setOnClickListener { }
updateTextColors(contact_scrollview)
wasActivityInitialized = true

View File

@ -28,8 +28,9 @@
<ImageView
android:id="@+id/contact_send_email"
style="@style/MyBorderlessBackgroundStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="@dimen/contact_action_size"
android:layout_height="@dimen/contact_action_size"
android:layout_marginRight="@dimen/activity_margin"
android:adjustViewBounds="true"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"
@ -39,8 +40,9 @@
<ImageView
android:id="@+id/contact_start_call"
style="@style/MyBorderlessBackgroundStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="@dimen/contact_action_size"
android:layout_height="@dimen/contact_action_size"
android:layout_marginRight="@dimen/activity_margin"
android:adjustViewBounds="true"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"
@ -50,8 +52,8 @@
<ImageView
android:id="@+id/contact_send_sms"
style="@style/MyBorderlessBackgroundStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_width="@dimen/contact_action_size"
android:layout_height="@dimen/contact_action_size"
android:adjustViewBounds="true"
android:paddingLeft="@dimen/activity_margin"
android:paddingRight="@dimen/activity_margin"

View File

@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="contact_photo_size">80dp</dimen>
<dimen name="contact_action_size">50dp</dimen>
</resources>