4
0
mirror of https://github.com/cwinfo/envayasms.git synced 2025-06-26 02:39:23 +00:00

add settings screen for ignored phone numbers; allow user to specify if they want to ignore non-numeric senders and shortcodes

This commit is contained in:
Jesse Young
2011-11-25 19:36:04 -08:00
parent f430ddbe29
commit 22f8c26da1
13 changed files with 317 additions and 85 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<EditText xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/add_test_sender_text"
<EditText xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/add_phone_number_text"
android:layout_width="fill_parent"
android:inputType="phone"
android:layout_height="wrap_content">

View File

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="#333333">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10sp"
android:text="@string/ignored_phone_numbers">
</TextView>
<CheckBox android:id="@+id/ignore_shortcodes"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="ignoreShortcodesClicked"
android:text="Ignore all shortcodes"
/>
<CheckBox android:id="@+id/ignore_non_numeric"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="ignoreNonNumericClicked"
android:text="Ignore all non-numeric senders"
/>
<ListView android:id="@android:id/list"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1" />
<Button
android:id="@+id/add_phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:onClick="addIgnoredPhoneNumber"
android:text="Add Ignored Phone Number" />
</LinearLayout>

View File

@ -8,7 +8,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10sp"
android:text="@string/test_senders">
android:text="@string/test_phone_numbers">
</TextView>
<ListView android:id="@android:id/list"
@ -17,12 +17,12 @@
android:layout_weight="1" />
<Button
android:id="@+id/add_test_phone_number"
android:id="@+id/add_phone_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="10dp"
android:onClick="addTestSender"
android:text="Add Test Sender" />
android:onClick="addTestPhoneNumber"
android:text="Add Test Phone Number" />
</LinearLayout>