b9935889b1be2aac4a47d1acbf7547a832edf9f3 |
21-Jul-2015 |
Diego Perez <diegoperez@google.com> |
resolved conflicts for merge of 112d8a36 to mnc-dev Change-Id: Ic9511a57db8a96f54dba0704800789a8602b9dd2
|
4362443cd9a5df6c5cc012881a0aaf96c927b923 |
02-Jun-2015 |
Diego Perez <diegoperez@google.com> |
Render to measured size when using expand mode When using RenderingMode.V_SCROLL or RenderingMode.H_SCROLL, if the screen size is smaller than the measured size but as large as the desired size, the layout will render incorrectly and won't expand. This changes that to expand to at least the size of the screen. Added tests for the V_SCROLL and H_SCROLL modes. Bug: http://b.android.com/174928 Change-Id: I22686903560775e2e4f362af1d7b50c9b985467d
lasses/debug/com/android/layoutlib/test/myapplication/R$layout.class
|
642cff50f8f7a67eed09eac1e56d7133b26a192c |
23-May-2015 |
Deepanshu Gupta <deepanshu@google.com> |
LayoutLib: Support getting resource arrays. - Don't crash when Resources.get<Type>Array() is called. - If the IDE supports it, actually return the value. - Add tests for getArray. - Update test app to latest gradle plugin version. - Switch to using AppTheme for tests, since the tests depend on some custom theme attributes. The AppTheme now inherits from Material.Light.DarkActionBar, so other tests should be unaffected. Depends on a newer version of sdk-common, which fixes the parsing of array resource in value files. Bug: 12372031 Change-Id: I313b61511e98ac1402d75056ebfdeeb005ebb96d
lasses/debug/com/android/layoutlib/test/myapplication/ArraysCheckWidget.class
lasses/debug/com/android/layoutlib/test/myapplication/MyActivity.class
lasses/debug/com/android/layoutlib/test/myapplication/R$array.class
lasses/debug/com/android/layoutlib/test/myapplication/R$attr.class
lasses/debug/com/android/layoutlib/test/myapplication/R$dimen.class
lasses/debug/com/android/layoutlib/test/myapplication/R$drawable.class
lasses/debug/com/android/layoutlib/test/myapplication/R$id.class
lasses/debug/com/android/layoutlib/test/myapplication/R$integer.class
lasses/debug/com/android/layoutlib/test/myapplication/R$layout.class
lasses/debug/com/android/layoutlib/test/myapplication/R$menu.class
lasses/debug/com/android/layoutlib/test/myapplication/R$string.class
lasses/debug/com/android/layoutlib/test/myapplication/R$style.class
lasses/debug/com/android/layoutlib/test/myapplication/R.class
|
a035dfbf8ddfc8d301dd96088eb50e8c2e63e487 |
17-Apr-2015 |
Deepanshu Gupta <deepanshu@google.com> |
More layoutlib tests. - Add another layout including more widgets and thus testing layoutlib better. - Update targetSdk Version to 22. - Handling of dynamic ids (@+id/) in LayoutLibTestCallback is buggy. Since this is not a problem in Studio, and this is not testing the callback, work around the issue by declaring the ids in values/ids.xml. Change-Id: I457c105e8556c4df13cd86da2250fe5fd37843a8
lasses/debug/com/android/layoutlib/test/myapplication/MyActivity.class
lasses/debug/com/android/layoutlib/test/myapplication/R$id.class
lasses/debug/com/android/layoutlib/test/myapplication/R$layout.class
lasses/debug/com/android/layoutlib/test/myapplication/R$menu.class
lasses/debug/com/android/layoutlib/test/myapplication/R$string.class
lasses/debug/com/android/layoutlib/test/myapplication/R$style.class
lasses/debug/com/android/layoutlib/test/myapplication/R.class
|
ec8df9af2f35eb5be4df01d66b1add4a4e7546c7 |
26-Mar-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix tests for Java 6. - Change the guava version used to match the one included in the SDK. The test server uses the same. However, the command line build still uses the guava present at platform/external/guava, which is compiled with Java 7. Thus, running the tests from inside the IDE can be done via Java 6. - Rebuilt the test app classes with Java 6 compatibility. - Change similarity threshold to prevent differences due to some locale settings different java versions. Change-Id: Ic71d43256a8cf6f9df296e63550667a202c7105f
lasses/androidTest/debug/com/android/layoutlib/test/myapplication/test/BuildConfig.class
lasses/debug/com/android/layoutlib/test/myapplication/BuildConfig.class
lasses/debug/com/android/layoutlib/test/myapplication/CustomCalendar.class
lasses/debug/com/android/layoutlib/test/myapplication/CustomDate.class
lasses/debug/com/android/layoutlib/test/myapplication/MyActivity.class
lasses/debug/com/android/layoutlib/test/myapplication/R$attr.class
lasses/debug/com/android/layoutlib/test/myapplication/R$dimen.class
lasses/debug/com/android/layoutlib/test/myapplication/R$drawable.class
lasses/debug/com/android/layoutlib/test/myapplication/R$id.class
lasses/debug/com/android/layoutlib/test/myapplication/R$layout.class
lasses/debug/com/android/layoutlib/test/myapplication/R$menu.class
lasses/debug/com/android/layoutlib/test/myapplication/R$string.class
lasses/debug/com/android/layoutlib/test/myapplication/R$style.class
lasses/debug/com/android/layoutlib/test/myapplication/R.class
|
84e550f5e6b286f6f2194d0a01b460df331dae03 |
18-Mar-2015 |
Deepanshu Gupta <deepanshu@google.com> |
Fix layoutlib tests. The date picker and calendar widgets show the current date. Comparing widgets showing current date with a static golden image wasn't the best idea. - Change the widgets to custom widgets that set a predefined date/time so that the rendering is independent of the system date. - Change the layout slightly to make it look nicer. - Update gradle plugin version. Change-Id: Ia3fb4965a372a28087a0d8c9df40fd6779df6050
lasses/debug/com/android/layoutlib/test/myapplication/BuildConfig.class
lasses/debug/com/android/layoutlib/test/myapplication/CustomCalendar.class
lasses/debug/com/android/layoutlib/test/myapplication/CustomDate.class
lasses/debug/com/android/layoutlib/test/myapplication/MyActivity.class
lasses/debug/com/android/layoutlib/test/myapplication/R$attr.class
lasses/debug/com/android/layoutlib/test/myapplication/R$dimen.class
lasses/debug/com/android/layoutlib/test/myapplication/R$drawable.class
lasses/debug/com/android/layoutlib/test/myapplication/R$id.class
lasses/debug/com/android/layoutlib/test/myapplication/R$layout.class
lasses/debug/com/android/layoutlib/test/myapplication/R$menu.class
lasses/debug/com/android/layoutlib/test/myapplication/R$string.class
lasses/debug/com/android/layoutlib/test/myapplication/R$style.class
lasses/debug/com/android/layoutlib/test/myapplication/R.class
|
86eb8b4e29b1ad889fc814bae723d4d6e491f53f |
31-Jul-2014 |
Deepanshu Gupta <deepanshu@google.com> |
Add testing framework to LayoutLib. This change adds an end to end test which loads the framework resources and a test app and ensures that no exceptions or warnings are thrown. The change also adds project configuration for intelliJ. Change-Id: I7b67c0f1a2af2dac95df7f3231cab537b9826d7d
lasses/debug/com/android/layoutlib/test/myapplication/BuildConfig.class
lasses/debug/com/android/layoutlib/test/myapplication/MyActivity.class
lasses/debug/com/android/layoutlib/test/myapplication/R$attr.class
lasses/debug/com/android/layoutlib/test/myapplication/R$dimen.class
lasses/debug/com/android/layoutlib/test/myapplication/R$drawable.class
lasses/debug/com/android/layoutlib/test/myapplication/R$id.class
lasses/debug/com/android/layoutlib/test/myapplication/R$layout.class
lasses/debug/com/android/layoutlib/test/myapplication/R$menu.class
lasses/debug/com/android/layoutlib/test/myapplication/R$string.class
lasses/debug/com/android/layoutlib/test/myapplication/R$style.class
lasses/debug/com/android/layoutlib/test/myapplication/R.class
|