History log of /frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
b1ae00e68fac4cb755d3d1b5ed66f0df4adf3fba 18-May-2017 Diego Perez <diegoperez@google.com> Add itemCount to RecyclerView

tools:itemCount allows customizing the number of elements in the
RecyclerView adapter

Bug: 38316827
Test: This needs to be manually tested on the Studio side since the
adapter only exists there.
Change-Id: I5377bd5ab180676d46a06bccdd4462be9f27bb42
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
b321cbfeb00723a6d18746f0d5bbcfd6b6602f6e 16-May-2016 Diego Perez <diegoperez@google.com> Add support for appcompat preferences rendering

This CL adds new code to handle the support preferences classes. If the
support library is not installed in the project, it will use the regular
inflater as fallback.
This also ports the hotfix that used to live in Android Studio to
support "*Compat" preferences to the regular BridgePreferenceInflater.

Change-Id: I8ff34455d46b6188f0931e821d329224f6a0a343
(cherry picked from commit 90110d50f4c48ea7ec196a068f55b0eb86114c46)
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
c102fc0ddf298edd8c1dd17454b564acb1b2bb80 27-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Fix imports.

Also remove null checks on return value of ReflectionUtils.getMethod()
as the method always return non null.

Change-Id: Ib476302c2cf0504a0f54db4e795955ad10e5df3f
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
9028fa93da0f9c7dad2176de347cd6e705084c9f 11-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Add tools:openDrawer to open a DrawerLayout.

Store a list of drawer layouts with tools:openDrawer encountered and
call openDrawer on them during the post-inflation processing.

Change-Id: Idee299a9af1bb106509a03bb2e8424c372b93dc5
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
baf88de1f5c435a788f6c38720354b2dbaa19e60 07-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Implement tools:list_item for RecyclerView.

It's now possible to use tools:list_item attribute for RecyclerView to
point to a default layout, rather than always using a TextView.

Change-Id: I5d522b2f0ca38b420fddfcb0f73a26d95707da79
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
442aee6bc1abfb143dcfa1ba60d696e576d066c4 22-May-2015 Deepanshu Gupta <deepanshu@google.com> LayoutLib: Change nullity annotations.

Switch from using tools nullity annotations (com.android.annotations)
to android framework annotations (android.annotation).

A new sdk-common prebuilt is required for LayoutLib tests. The new
sdk-common requires an updated tools-common. The updated tools-common
doesn't have nullity annotations. So, instead of adding the annotation
dependency, just reuse the platform ones. This also paves the way to
include other platform annotations like IdRes etc.

Change-Id: I87b8f767d3681d914abe7d1329e26a87f49f50a7
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
cb40f2cb35d559d9ea60382b6dee80022c851124 31-Mar-2015 Deepanshu Gupta <deepanshu@google.com> RecyclerView in LayoutLib: better XML attrs.

- RecyclerView now supports XML attributes natively. Thus, remove the
custom support via tools attribute. Users with older versions of
RecyclerView should update.
- Add Context.getPackageName() support used by RecyclerView.
- Update SessionParamsFlags with the new changes and rename it to
RenderParamsFlags.

The attribute behaves slightly different from the original tools
attribute. For usage, see commit 044b5b61e96 in frameworks/support.

Change-Id: I12073e37a2ba411558ca1d3e30c399e3d9a0b144
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
b111e84752652ec862efa7e0fcaa224430feb97f 15-Apr-2015 Deepanshu Gupta <deepanshu@google.com> Update to using LayoutlibCallback.

Change-Id: Ia89d418b0d40ca8efef8968a4a2a635616b945ac
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
285e339995fa90126405643519b0b8bb645b268e 12-Mar-2015 Deepanshu Gupta <deepanshu@google.com> Tools attribute improvements for RecyclerView LayoutManager.

1. Change tools attribute for layout manager from layoutManagerType to
LayoutManager.
2. Support classnames in the tools attribute.

This change doesn't try to supprt arbitrary classnames for now. The
reason for this is that the new layoutlib API is supposed to contain a
new method for inflating custom classes that are not views. This will
allow us to throw better error messages. Without the new API, trying for
different constructors, will result in a error messages being logged.

Change-Id: I3a31359c06b7452bfd973c3e5e54f9038acccfaa
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java
432578acb80cf2fa827ddb9595cf46edf0b340b0 06-Mar-2015 Deepanshu Gupta <deepanshu@google.com> Add RecyclerView support.

Bug: http://b.android.com/72117
Change-Id: Iba95baff59f1b715f91da25e15acf27bc052d95e
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/support/RecyclerViewUtil.java