Add ListView, make FrameLayout do something

This commit is contained in:
Henrik Rydgard committed 2013-06-09 11:20:15 +02:00
1 parent 2143b5b608
commit bc2a18eeee
8 files changed
+120 -24

No files matched your search

+12 -1
View File
@@ -154,8 +154,19 @@ Item::Item(LayoutParams *layoutParams) : InertView(layoutParams) {
layoutParams_->height = ITEM_HEIGHT;
}
void Item::GetContentDimensions(const UIContext &dc, float &w, float &h) const {
w = 0.0f;
h = 0.0f;
}
void ClickableItem::GetContentDimensions(const UIContext &dc, float &w, float &h) const {
w = 0.0f;
h = 0.0f;
}
ClickableItem::ClickableItem(LayoutParams *layoutParams) : Clickable(layoutParams) {
layoutParams_->width = FILL_PARENT;
if (layoutParams_->width == WRAP_CONTENT)
layoutParams_->width = FILL_PARENT;
layoutParams_->height = ITEM_HEIGHT;
}