Xml文件  |  98行  |  4.41 KB

<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright (C) 2016 The Android Open Source Project
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License
  -->

<ScrollView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:fillViewport="true">

    <LinearLayout
            android:orientation="vertical"
            android:layout_width="match_parent"
            android:layout_height="match_parent">

        <include
                android:id="@+id/butter_bar"
                android:visibility="gone"
                layout="@xml/blocking_suppressed_butterbar" />

        <FrameLayout
                android:layout_width="match_parent"
                android:layout_height="match_parent">

            <TextView
                    android:id="@+id/non_primary_user"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:text="@string/non_primary_user"
                    android:paddingTop="@dimen/blocked_numbers_large_padding"
                    android:paddingLeft="@dimen/blocked_numbers_large_padding"
                    android:paddingRight="@dimen/blocked_numbers_large_padding"
                    style="@style/BlockedNumbersTitleText"
                    android:visibility="gone" />

            <LinearLayout
                    android:id="@+id/manage_blocked_ui"
                    android:orientation="vertical"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content">

                <FrameLayout
                        android:id="@+id/enhanced_call_blocking_container"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content" />

                <LinearLayout
                        android:orientation="vertical"
                        android:layout_width="match_parent"
                        android:layout_height="wrap_content"
                        android:paddingTop="@dimen/blocked_numbers_large_padding"
                        android:paddingLeft="@dimen/blocked_numbers_large_padding"
                        android:paddingRight="@dimen/blocked_numbers_large_padding">

                    <TextView
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/blocked_numbers_msg"
                            android:paddingBottom="@dimen/blocked_numbers_extra_large_padding"
                            style="@style/BlockedNumbersTitleText" />

                    <TextView
                            android:id="@+id/add_blocked"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="@string/block_number"
                            android:layout_marginBottom="@dimen/blocked_numbers_button_bottom_margin"
                            style="@style/BlockedNumbersButton"
                            android:background="?android:attr/selectableItemBackgroundBorderless" />

                    <ProgressBar
                            android:id="@+id/progress_bar"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:layout_gravity="center"
                            android:indeterminate="true"
                            android:layout_marginTop="@dimen/blocked_numbers_progress_bar_padding"
                            style="@android:style/Widget.ProgressBar.Large" />

                    <include layout="@xml/layout_customized_listview" />
                </LinearLayout>
            </LinearLayout>
        </FrameLayout>
    </LinearLayout>
</ScrollView>