From 28c3f6bb71da1727fdc39bdc622518b1daeb3b0a Mon Sep 17 00:00:00 2001 From: Maurice Lam Date: Tue, 21 Apr 2015 23:01:11 -0700 Subject: [WifiSettings] Add progress bar when scanning Add a progress bar when the Wi-Fi screen is in a transient state, like enabling, disabling Wi-Fi and scanning for network. This change sets the progress bar as a pinned header at the top of the activity. The pinned header container needs to be match parent so that the progress bar can occupy the full width of the screen. If the header view doesn't want to fill the width, then the header view *inside* the container should be wrap_content. Added an overloaded setPinnedHeader method that takes a layout resource ID, and returns the view to the caller. This way the inflater can set the parent property so that layout params will not be ignored. Bug: 17389577 Change-Id: I18d0eb7c72ad31d1c4b35a54789016c32c81fb93 --- ...s_indeterminate_horizontal_material_trimmed.xml | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 res/drawable/progress_indeterminate_horizontal_material_trimmed.xml (limited to 'res/drawable/progress_indeterminate_horizontal_material_trimmed.xml') diff --git a/res/drawable/progress_indeterminate_horizontal_material_trimmed.xml b/res/drawable/progress_indeterminate_horizontal_material_trimmed.xml new file mode 100644 index 0000000..070b9a1 --- /dev/null +++ b/res/drawable/progress_indeterminate_horizontal_material_trimmed.xml @@ -0,0 +1,28 @@ + + + + + + + + -- cgit v1.1