Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15559] Android: textField in listView cannot be focused on Android 4.3

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2013-10-29T20:55:59.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2013 Sprint 22 API, Release 3.2.0
ComponentsAndroid
Labelsn/a
ReporterFederico Casali
AssigneeIngo Muschenetz
Created2013-10-22T19:03:29.000+0000
Updated2017-03-23T18:24:53.000+0000

Description

Problem description

On Android 4.3 (Google Nexus Galaxy phone tested) is not possible to focus a textField placed inside a listView. Sample code:
var sections = [];
       
var fruitSection = Ti.UI.createListSection({ headerTitle: 'Fruits'});
var fruitDataSet = [
    {properties: { title: 'Apple', searchableText:' Fruits Apple', itemId:'0 0'}},
    {properties: { title: 'Banana', searchableText:'Fruits Banana', itemId:'0 1'}}
];
fruitSection.setItems(fruitDataSet);
sections.push(fruitSection);
 
var tf = Ti.UI.createTextField({
        color: '#336699',
        height: 100,
        top:10,
        bottom:10,
        left:10,
        right:10,
        font:{fontSize:20,fontWeight:'bold'},
        hintText: 'Search'
    });
 
// tf.addEventListener('change',function(e){
//         listView.searchText = e.value;
//  });
 
 
var listView = Ti.UI.createListView({
    top: 20,
    headerView: tf
});
listView.sections = sections;
 
 
var win = Ti.UI.createWindow({
    backgroundColor:'black',
    windowSoftInputMode:Ti.UI.Android.SOFT_INPUT_ADJUST_PAN
});
 
win.add(listView);
 
win.open();

Comments

  1. Ping Wang 2013-10-29

    PR: https://github.com/appcelerator/titanium_mobile/pull/4819
  2. Lee Morris 2017-03-23

    Closing ticket as duplicate with reference to the linked issues above.

JSON Source