Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24822] Android: TableView with sections will error on Android N

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2017-06-26T23:29:39.000+0000
Affected Version/sn/a
Fix Version/sRelease 6.2.0
ComponentsAndroid
Labelsn/a
ReporterGary Mathews
AssigneeGary Mathews
Created2017-06-14T21:50:39.000+0000
Updated2017-07-20T18:44:00.000+0000

Description

- TableView with sections will throw an error on Android N
var win = Ti.UI.createWindow({
        backgroundColor: 'gray',
        layout: 'vertical'
    }),
    tv = Ti.UI.createTableView({
        headerTitle: 'TableView',
        data: [
            {
                title: 'Apples',
                hasChild: true
            }, {
                title: 'Bananas'
            }
        ],
        height: Ti.UI.SIZE
    }),
    ls = Ti.UI.createListSection({
        headerTitle: 'ListView'
    }),
    lv = Ti.UI.createListView({
        height: Ti.UI.SIZE
    });

ls.setItems([
    {
        properties: {
            title: 'Apples',
            accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK
        }
    }, {
        properties: {
           title: 'Bananas',
           accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_DETAIL
       }
    }
]);
lv.sections = [ls];

win.add(tv);
win.add(lv);
win.open();

Comments

  1. Gary Mathews 2017-06-14

    master: https://github.com/appcelerator/titanium_mobile/pull/9144
  2. Samir Mohammed 2017-07-20

    Verified fix in SDK Version: 6.2.0.v20170719160617. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/9144

JSON Source