Code example for View

Methods: findViewById

0
        @Override 
        public View getDropDownView(int position, View convertView, ViewGroup parent) {
            if (convertView == null) {
                convertView = getLayoutInflater().inflate(R.layout.simple_list_item_1);
            } 
            TextView text = (TextView) convertView.findViewById(android.R.id.text1);
            DeveloperLink link = getItem(position);
            text.setText(link.text);
            return convertView;
        } 
 
        @Override 
        public View getView(int position, View convertView, ViewGroup parent) {
            if (convertView == null) {
                convertView = getLayoutInflater().inflate(R.layout.developer_name);
            } 
            TextView name = (TextView) convertView.findViewById(android.R.id.text1);
            name.setText(developer.name);
            return convertView;
        }