adding an initial Dialpad activity
This commit is contained in:
parent
31fae0b97c
commit
52a8f6fde4
|
@ -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"
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue