| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
#pragma once |
| 17 |
|
| 18 |
#include <RenderNode.h> |
| 19 |
#include <RenderProperties.h> |
| 20 |
#include "TestScene.h" |
| 21 |
|
| 22 |
namespace android { |
| 23 |
namespace uirenderer { |
| 24 |
namespace test { |
| 25 |
|
| 26 |
class TestListViewSceneBase : public TestScene { |
| 27 |
public: |
| 28 |
virtual void createListItem(RenderProperties& props, Canvas& canvas, int id, int itemWidth, |
| 29 |
int itemHeight) = 0; |
| 30 |
|
| 31 |
private: |
| 32 |
int mItemHeight; |
| 33 |
int mItemSpacing; |
| 34 |
int mItemWidth; |
| 35 |
int mItemLeft; |
| 36 |
sp<RenderNode> mListView; |
| 37 |
std::vector<sp<RenderNode> > mListItems; |
| 38 |
|
| 39 |
void createContent(int width, int height, Canvas& canvas) override; |
| 40 |
void doFrame(int frameNr) override; |
| 41 |
}; |
| 42 |
|
| 43 |
} |
| 44 |
} |
| 45 |
} |