diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ce27f3d1..1cde8a1e 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -103,7 +103,8 @@ + android:parentActivityName=".activities.MainActivity" + android:theme="@style/TranslucentTheme"> diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt index 2e463177..9d7e0716 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/EditContactActivity.kt @@ -5,15 +5,14 @@ import android.content.ClipData import android.content.ContentValues import android.content.Intent import android.graphics.Bitmap +import android.graphics.Color +import android.graphics.drawable.ColorDrawable import android.net.Uri import android.os.Bundle import android.provider.ContactsContract.CommonDataKinds import android.provider.ContactsContract.CommonDataKinds.* import android.provider.MediaStore -import android.view.Menu -import android.view.MenuItem -import android.view.ViewGroup -import android.view.WindowManager +import android.view.* import android.widget.EditText import android.widget.ImageView import android.widget.TextView @@ -60,6 +59,7 @@ class EditContactActivity : ContactActivity() { private var originalContactSource = "" override fun onCreate(savedInstanceState: Bundle?) { + useDynamicTheme = false super.onCreate(savedInstanceState) setContentView(R.layout.activity_edit_contact) @@ -67,6 +67,9 @@ class EditContactActivity : ContactActivity() { return } + contact_wrapper.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN + contact_wrapper.background = ColorDrawable(config.backgroundColor) + val action = intent.action isThirdPartyIntent = action == Intent.ACTION_EDIT || action == Intent.ACTION_INSERT || action == ADD_NEW_CONTACT_NUMBER val isFromSimpleContacts = intent.getBooleanExtra(IS_FROM_SIMPLE_CONTACTS, false) @@ -91,6 +94,11 @@ class EditContactActivity : ContactActivity() { } } + override fun onResume() { + super.onResume() + window.statusBarColor = Color.TRANSPARENT + } + override fun onCreateOptionsMenu(menu: Menu): Boolean { menuInflater.inflate(R.menu.menu_edit_contact, menu) if (wasActivityInitialized) { diff --git a/app/src/main/res/layout/activity_edit_contact.xml b/app/src/main/res/layout/activity_edit_contact.xml index f24bd75e..4f9f8375 100644 --- a/app/src/main/res/layout/activity_edit_contact.xml +++ b/app/src/main/res/layout/activity_edit_contact.xml @@ -1,539 +1,545 @@ - + android:layout_height="match_parent"> - + android:scrollbars="none" + android:visibility="gone"> - - - - - + android:paddingStart="@dimen/normal_margin" + android:paddingTop="@dimen/activity_margin" + android:paddingEnd="@dimen/normal_margin" + android:paddingBottom="@dimen/medium_margin"> + 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:id="@+id/contact_numbers_add_new" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@+id/contact_numbers_holder" + android:layout_centerHorizontal="true" + android:layout_marginBottom="@dimen/medium_margin" + android:background="@drawable/button_background" + android:paddingStart="@dimen/activity_margin" + android:paddingTop="@dimen/medium_margin" + android:paddingEnd="@dimen/activity_margin" + android:paddingBottom="@dimen/medium_margin" + android:src="@drawable/ic_plus_vector" /> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + diff --git a/app/src/main/res/layout/activity_view_contact.xml b/app/src/main/res/layout/activity_view_contact.xml index 6d6280de..4e130734 100644 --- a/app/src/main/res/layout/activity_view_contact.xml +++ b/app/src/main/res/layout/activity_view_contact.xml @@ -59,8 +59,8 @@ android:layout_height="@dimen/contact_actions_size" android:adjustViewBounds="true" android:background="?attr/selectableItemBackgroundBorderless" - android:paddingLeft="@dimen/small_margin" - android:paddingRight="@dimen/small_margin" + android:paddingStart="@dimen/small_margin" + android:paddingEnd="@dimen/small_margin" android:scaleType="fitCenter" android:src="@drawable/ic_email_vector" /> @@ -71,8 +71,8 @@ android:layout_marginStart="@dimen/normal_margin" android:adjustViewBounds="true" android:background="?attr/selectableItemBackgroundBorderless" - android:paddingLeft="@dimen/small_margin" - android:paddingRight="@dimen/small_margin" + android:paddingStart="@dimen/small_margin" + android:paddingEnd="@dimen/small_margin" android:scaleType="fitCenter" android:src="@drawable/ic_phone_vector" /> @@ -83,8 +83,8 @@ android:layout_marginStart="@dimen/normal_margin" android:adjustViewBounds="true" android:background="?attr/selectableItemBackgroundBorderless" - android:paddingLeft="@dimen/small_margin" - android:paddingRight="@dimen/small_margin" + android:paddingStart="@dimen/small_margin" + android:paddingEnd="@dimen/small_margin" android:scaleType="fitCenter" android:src="@drawable/ic_sms_vector" />