adding an initial Dialpad activity

This commit is contained in:
tibbi 2018-09-22 20:52:53 +02:00
parent 31fae0b97c
commit 52a8f6fde4
21 changed files with 78 additions and 8 deletions

View File

@ -183,6 +183,11 @@
android:label="@string/frequently_asked_questions"
android:parentActivityName="com.simplemobiletools.commons.activities.AboutActivity"/>
<activity
android:name=".activities.DialpadActivity"
android:label="@string/dialpad"
android:parentActivityName=".activities.MainActivity"/>
<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.provider"

View File

@ -0,0 +1,11 @@
package com.simplemobiletools.contacts.activities
import android.os.Bundle
import com.simplemobiletools.contacts.R
class DialpadActivity : SimpleActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_dialpad)
}
}

View File

@ -166,8 +166,8 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
isFirstResume = false
val blackIcon = resources.getColoredDrawableWithColor(R.drawable.ic_phone_big, if (isBlackAndWhiteTheme()) Color.BLACK else Color.WHITE)
main_dialer_button.setImageDrawable(blackIcon)
main_dialer_button.background.applyColorFilter(getAdjustedPrimaryColor())
main_dialpad_button.setImageDrawable(blackIcon)
main_dialpad_button.background.applyColorFilter(getAdjustedPrimaryColor())
}
override fun onPause() {
@ -375,8 +375,9 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
main_tabs_holder.beVisibleIf(skippedTabs < 3)
main_dialer_button.setOnClickListener {
main_dialpad_button.setOnClickListener {
val intent = Intent(applicationContext, DialpadActivity::class.java)
startActivity(intent)
}
}

View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/dialpad_holder"
android:layout_width="match_parent"
android:layout_height="match_parent">
</RelativeLayout>

View File

@ -23,9 +23,9 @@
android:layout_below="@+id/main_tabs_holder"/>
<ImageView
android:id="@+id/main_dialer_button"
android:layout_width="@dimen/dialer_button_size"
android:layout_height="@dimen/dialer_button_size"
android:id="@+id/main_dialpad_button"
android:layout_width="@dimen/dialpad_button_size"
android:layout_height="@dimen/dialpad_button_size"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="@dimen/activity_margin"

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Kontakt köklərini daxil et</string>
<string name="filename_without_vcf">Fayl adı (.vcf olmadan)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Göstərmək üçün sahəni seç</string>
<string name="prefix">Ön şəkilçi</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Kontaktquellen einschließen</string>
<string name="filename_without_vcf">Dateiname (ohne .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Sichtbare Felder auswählen</string>
<string name="prefix">Titel</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Συμπερίληψη πηγών επαφών</string>
<string name="filename_without_vcf">Όνομα αρχείου (χωρίς .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Επιλογή εμφάνισης πεδίων</string>
<string name="prefix">Πρόθεμα</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Inclure les sources du contact</string>
<string name="filename_without_vcf">Nom du fichier (sans .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Sélectionner les champs à afficher</string>
<string name="prefix">Préfixe</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Uključi izvore kontakta</string>
<string name="filename_without_vcf">Naziv datoteke (bez .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Odaberi polja za prikaz</string>
<string name="prefix">Prefiks</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Include contact sources</string>
<string name="filename_without_vcf">ファイル名 (.vcfを含めない)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">表示する項目を選択</string>
<string name="prefix">敬称(名前の前)</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">가져오기 대상</string>
<string name="filename_without_vcf">파일이름 (.vcf 확장자 생략)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Select fields to show</string>
<string name="prefix">Prefix</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Įtraukti kontaktų šaltinius</string>
<string name="filename_without_vcf">Bylos vardas (be .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Pasirinkti rodomus laukelius</string>
<string name="prefix">Priešdėlis</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Incluir fontes dos contactos</string>
<string name="filename_without_vcf">Nome do ficheiro (sem .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Selecione os campos a mostrar</string>
<string name="prefix">Prefixo</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Включить источники контактов</string>
<string name="filename_without_vcf">Имя файла (без .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Выберите отображаемые поля</string>
<string name="prefix">Префикс</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Zahrnúť zdroje kontaktov</string>
<string name="filename_without_vcf">Názov súboru (bez .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Číselník</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Zvoľte polia na zobrazenie</string>
<string name="prefix">Titul pred menom</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Inkludera kontaktkällor</string>
<string name="filename_without_vcf">Filnamn (utan .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Välj vilka fält som ska visas</string>
<string name="prefix">Prefix</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Kişi kaynaklarını dahil et</string>
<string name="filename_without_vcf">Dosya adı (.vcf olmadan)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Görüntülenecek alanları seç</string>
<string name="prefix">Önek</string>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">包含聯絡人來源</string>
<string name="filename_without_vcf">檔案名稱 (不含.vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">選擇要顯示的欄位</string>
<string name="prefix">前缀</string>

View File

@ -4,5 +4,5 @@
<dimen name="contact_actions_size">45dp</dimen>
<dimen name="contact_icons_size">40dp</dimen>
<dimen name="contact_item_height">52dp</dimen>
<dimen name="dialer_button_size">60dp</dimen>
<dimen name="dialpad_button_size">60dp</dimen>
</resources>

View File

@ -95,6 +95,9 @@
<string name="include_contact_sources">Include contact sources</string>
<string name="filename_without_vcf">Filename (without .vcf)</string>
<!-- Dialpad -->
<string name="dialpad">Dialpad</string>
<!-- Visible fields -->
<string name="select_fields_to_show">Select fields to show</string>
<string name="prefix">Prefix</string>