diff options
author | Parménides GV <parmegv@sdf.org> | 2013-07-04 21:44:16 +0200 |
---|---|---|
committer | cyBerta <richy@cyborgsociety.org> | 2013-11-15 23:02:37 +0100 |
commit | 4256f21a0a27032fd37bdf9b428009da5b7ba27a (patch) | |
tree | 088369da03ec2763c4176a659dc7918bfc7f9ac7 /res/layout | |
parent | be3f2ba04e96bc21a1c9c0459218a1d964af1945 (diff) |
Added a progressbar to ConfigurationWizard.
It resizes the provider list, pushing it down to show the progressbar
up, and back to the original layout after the operation.
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/configuration_wizard_activity.xml | 11 | ||||
-rw-r--r-- | res/layout/provider_list_fragment.xml | 12 |
2 files changed, 17 insertions, 6 deletions
diff --git a/res/layout/configuration_wizard_activity.xml b/res/layout/configuration_wizard_activity.xml index 264ccf98..4bc4a8e1 100644 --- a/res/layout/configuration_wizard_activity.xml +++ b/res/layout/configuration_wizard_activity.xml @@ -5,4 +5,15 @@ android:layout_height="match_parent" tools:context=".ConfigurationWizard" > + <ProgressBar + android:id="@+id/progressbar" + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:max="3" + android:maxHeight="20dip" + android:minHeight="20dip" + android:progress="0" + android:background="@android:color/transparent"/> + </RelativeLayout>
\ No newline at end of file diff --git a/res/layout/provider_list_fragment.xml b/res/layout/provider_list_fragment.xml index 5a6770c8..70dbae0d 100644 --- a/res/layout/provider_list_fragment.xml +++ b/res/layout/provider_list_fragment.xml @@ -1,9 +1,9 @@ <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingLeft="8dp"
- android:paddingRight="8dp">
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:paddingLeft="8dp"
+ android:paddingRight="8dp" >
<ListView
android:id="@id/android:list"
@@ -12,4 +12,4 @@ android:layout_weight="1"
android:drawSelectorOnTop="false" />
-</LinearLayout>
+</LinearLayout> |