[TIMOB-3435] TableViewSection.headerView broken on Android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-03-07T00:31:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Sprint 2012-05, Release 2.0.0 |
Components | Android |
Labels | api, dr-list, module_tableview, parity, qe-testadded |
Reporter | Radu.V |
Assignee | Hieu Pham |
Created | 2011-04-15T03:45:10.000+0000 |
Updated | 2012-10-16T18:54:31.000+0000 |
Description
HeaderView option works on a TableView, but not on a TableViewSection on Android.
Assigning a custom view to a TableViewSection.headerView will
not result in that view being drawn on display.
It does work on iOS without problems, I would love to see it
working on Android too so I could do a nice GUI.
Documentation doesn't seem to mention anything related to
this.
The code I tested with is similar to KitchenSink demo. I can't run
the KitchenSink demo on android, since it
will not install due to the fact it can't find a required library
for google maps. There's no error display when
trying to install KitchenSink on my Android phone. (Yes I
downloaded the latest version from github)
Expected output (similar to iOS):
http://imm.io/4yR0">http://imm.io/4yR0
Actual output (on Android):
http://imm.io/4yR1">http://imm.io/4yR1
Titanium SDK 1.6.1
Titanium Developer 1.2.2
Compiled for Android SDK 2.2, Android tools version 10
Code attached for test, simple app.js
https://gist.github.com/886885">https://gist.github.com/886885
Thank you for your time.
Associated HD ticket
A Customer relies on this, http://appc.me/c/APP-229546Environment
{panel} Product: Mobile Titanium SDK: Mobile 1.6.2 Platform OS: Android Platform OS Version: 2.1, 2.2, 2.3 {panel}We also need this functionality in our company's internal app, would be great to have it finally fixed on Android.
This does still not work with: Titanium SDK 1.8.0.1RC Platform OS: Android 2.3.3 This works on iOS as acpected
Confirmed with:
TiSDK 1.8.1 Android Emulator 2.3.3, V8Steps to reproduce:
Step 1: run the code below Step 2: notice that the pink headerView does not display in Android (it works fine in iOS).Closing bug. Verified fix on: SDK build: 2.0.0.v20120307090205 Runtime: V8, Rhino Titanium Studio, build: 1.0.9.201202141208 Device: Galaxy Tab 10.1 (3.2)
Can we reopen this one. It crashes on TiTableViewHeaderItem.getRowData wih a null pointer exception! This is normal as in the case of a custom headerView, rowView is null. SDK build: 3.1.0 master Runtime: V* Titanium Studio, build: 1.0.9.201202141208 Device: Simulator
Even fixing this it still crashes because cell reuse. The custom headerView is not removed from its parent view on reuse. I am not sure on how to fix this