Permalink
Browse files

Fix crash in landscape orientation (using wrong button IDs)

  • Loading branch information...
djbe committed Mar 26, 2012
1 parent eaed926 commit 7913decf30c164c63c357529d1b020a033940a35
Showing with 608 additions and 618 deletions.
  1. +43 −46 res/drawable/vertical_progress_bar.xml
  2. +565 −572 res/layout-land/instrument_looper.xml
@@ -1,48 +1,45 @@
<?xml version="1.0" encoding="utf-8"?>
-<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
- <item android:id="@android:id/progress">
- <clip>
- <shape>
- <corners android:radius="5dip" />
- <gradient
- android:startColor="#ffffd300"
- android:centerColor="#ffffb600"
- android:centerY="0.75"
- android:endColor="#ffffcb00"
- android:angle="270"
- />
- </shape>
- </clip>
- </item>
-
-
- <item android:id="@android:id/secondaryProgress">
- <clip>
- <shape>
- <corners android:radius="5dip" />
- <gradient
- android:startColor="#80ffd300"
- android:centerColor="#80ffb600"
- android:centerY="0.75"
- android:endColor="#a0ffcb00"
- android:angle="270"
- />
- </shape>
- </clip>
- </item>
-
-
- <item android:id="@android:id/background">
- <shape>
- <corners android:radius="5dip" />
- <gradient
- android:startColor="#ff9d9e9d"
- android:centerColor="#ff5a5d5a"
- android:centerY="0.75"
- android:endColor="#ff747674"
- android:angle="270"
- />
- </shape>
- </item>
-</layer-list>
+ <item android:id="@android:id/progress">
+ <clip>
+ <shape>
+ <corners android:radius="5dip" />
+
+ <gradient
+ android:angle="270"
+ android:centerColor="#ffffb600"
+ android:centerY="0.75"
+ android:endColor="#ffffcb00"
+ android:startColor="#ffffd300" />
+ </shape>
+ </clip>
+ </item>
+ <item android:id="@android:id/secondaryProgress">
+ <clip>
+ <shape>
+ <corners android:radius="5dip" />
+
+ <gradient
+ android:angle="270"
+ android:centerColor="#80ffb600"
+ android:centerY="0.75"
+ android:endColor="#a0ffcb00"
+ android:startColor="#80ffd300" />
+ </shape>
+ </clip>
+ </item>
+ <item android:id="@android:id/background">
+ <shape>
+ <corners android:radius="5dip" />
+
+ <gradient
+ android:angle="270"
+ android:centerColor="#ff5a5d5a"
+ android:centerY="0.75"
+ android:endColor="#ff747674"
+ android:startColor="#ff9d9e9d" />
+ </shape>
+ </item>
+
+</layer-list>
Oops, something went wrong.

0 comments on commit 7913dec

Please sign in to comment.