OSDN Git Service

split filter show into multiple files
authorJohn Hoford <hoford@google.com>
Mon, 11 Mar 2013 22:08:26 +0000 (15:08 -0700)
committerJohn Hoford <hoford@google.com>
Mon, 11 Mar 2013 22:32:03 +0000 (15:32 -0700)
Change-Id: I3d6b61ed893befa24a8c8306981d74096db91535

src/com/android/gallery3d/filtershow/FilterShowActivity.java

index 37115a5..1c1a2bc 100644 (file)
@@ -162,6 +162,11 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
     private void loadXML() {
         setContentView(R.layout.filtershow_activity);
 
+        ((ViewStub) findViewById(R.id.stateCategoryStub)).inflate();
+        ((ViewStub) findViewById(R.id.editorPanelStub)).inflate();
+        ((ViewStub) findViewById(R.id.historyPanelStub)).inflate();
+        ((ViewStub) findViewById(R.id.statePanelStub)).inflate();
+
         ActionBar actionBar = getActionBar();
         actionBar.setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM);
         actionBar.setCustomView(R.layout.filtershow_actionbar);
@@ -206,8 +211,6 @@ public class FilterShowActivity extends Activity implements OnItemClickListener,
 
         mPanelController.addView(findViewById(R.id.applyEffect));
 
-        ((ViewStub) findViewById(R.id.historyPanelStub)).inflate();
-        ((ViewStub) findViewById(R.id.statePanelStub)).inflate();
         setupHistoryPanel();
         setupStatePanel();
     }