From 9af1b36e999036f4045b07285962cfdb7bfbcca7 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 15 Oct 2015 23:17:30 -0700 Subject: Add import fragment, rearrange fragments. + Add a fragment (and adapter) for displaying numbers from contacts marked as send to voicemail. This fragment has import functionality. + Refactor logic around the Blocked Numbers activity; relocate a lot of the fragment-specific logic, particularly around actionbars, to within the fragments themselves. + Simplify fragment management logic by using replace instead of show/hide. Bug: 23351616 Change-Id: I5c1076d6d001a8401234f57c27ada4bcd90e6c27 --- res/layout/blocked_number_fragment.xml | 42 +++++++++++-------- res/layout/blocked_number_header.xml | 9 +---- res/layout/view_numbers_to_import_fragment.xml | 56 ++++++++++++++++++++++++++ res/values/strings.xml | 4 ++ 4 files changed, 87 insertions(+), 24 deletions(-) create mode 100644 res/layout/view_numbers_to_import_fragment.xml (limited to 'res') diff --git a/res/layout/blocked_number_fragment.xml b/res/layout/blocked_number_fragment.xml index f8d303010..e41d6bc80 100644 --- a/res/layout/blocked_number_fragment.xml +++ b/res/layout/blocked_number_fragment.xml @@ -53,28 +53,36 @@ - - + card_view:cardCornerRadius="0dp"> - + android:layout_height="wrap_content" + android:background="@color/background_dialer_white"> - + - + + + + + + + diff --git a/res/layout/blocked_number_header.xml b/res/layout/blocked_number_header.xml index 0c8c086e4..e16efbcf4 100644 --- a/res/layout/blocked_number_header.xml +++ b/res/layout/blocked_number_header.xml @@ -13,12 +13,7 @@ See the License for the specific language governing permissions and limitations under the License. --> - + - + diff --git a/res/layout/view_numbers_to_import_fragment.xml b/res/layout/view_numbers_to_import_fragment.xml new file mode 100644 index 000000000..fae708bf1 --- /dev/null +++ b/res/layout/view_numbers_to_import_fragment.xml @@ -0,0 +1,56 @@ + + + + + + + + +