Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14841] Android: Index Bar for TableView

GitHub Issuen/a
TypeNew Feature
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelsalphabet, index, sectionindexer, tableview
ReporterMatej
AssigneeUnknown
Created2013-08-10T09:46:50.000+0000
Updated2018-02-28T20:04:14.000+0000

Description

Index Bar for Android - Same as iOS.
 
var win = Titanium.UI.createWindow();
 
var data = [
    {title:'Alan (click to change index)', header:'A'},
    {title:'Alice' },
    {title:'Alexander'},
    {title:'Amos'},
    {title:'Alonzo'},
    {title:'Brad', header:'B'},
    {title:'Brent'},
    {title:'Billy'},
    {title:'Brenda'},
    {title:'Callie', header:'C'},
    {title:'Cassie'},
    {title:'Chris'},
    {title:'Cameron'},
    {title:'Don', header:'D'},
    {title:'Dilbert'},
    {title:'Deacon'},
    {title:'Devin'},
    {title:'Darin'},
    {title:'Darcy'},
    {title:'Erin', header:'E'},
    {title:'Erica'},
    {title:'Elvin'},
    {title:'Edrick'},
    {title:'Frank', header:'F'},
    {title:'Fred'},
    {title:'Fran'},
    {title:'Felicity'},
    {title:'George', header:'G'},
    {title:'Gina'},
    {title:'Gary'},
    {title:'Herbert', header:'H'},
    {title:'Henry'},
    {title:'Harold'},
    {title:'Ignatius', header:'I'},
    {title:'Irving'},
    {title:'Ivan'},
    {title:'Dr. J', header:'J'},
    {title:'Jefferson'},
    {title:'Jenkins'},
    {title:'Judy'},
    {title:'Julie'},
    {title:'Kristy', header:'K'},
    {title:'Krusty the Clown'},
    {title:'Klaus'},
    {title:'Larry', header:'L'},
    {title:'Leon'},
    {title:'Lucy'},
    {title:'Ludwig'},
    {title:'Mary', header:'M'},
    {title:'Mervin'},
    {title:'Malcom'},
    {title:'Mellon'},
    {title:'Ned', header:'N'},
    {title:'Nervous Eddie'},
    {title:'Nelson'},
    {title:'The Big O', header:'O'},
    {title:'Orlando'},
    {title:'Ox'},
    {title:'Pluto', header:'P'},
    {title:'Paris'},
    {title:'Potsie'}
];
 
var tableview = Titanium.UI.createTableView({ data:data });
 
var index = [
    {title:'A',index:0},
    {title:'B',index:5},
    {title:'C',index:9},
    {title:'D',index:13},
    {title:'E',index:19},
    {title:'F',index:23},
    {title:'G',index:27},
    {title:'H'},
    {title:'I',index:33},
    {title:'J',index:36},
    {title:'K',index:41},
    {title:'L',index:44},
    {title:'M',index:48},
    {title:'N',index:52},
    {title:'O',index:55},
    {title:'P',index:(data.length -1)}
];
 
tableview.index = index;
win.add(tableview);
win.open();

Comments

  1. Matej 2013-11-04

    Hi, is possible to set some priority for this issue? This is again base/often used feature that is missing... Thank you
  2. Matej 2014-11-25

JSON Source