This is a migrated thread and some comments may be shown as answers.

SuggestionView Font

1 Answer 33 Views
AutoCompleteTextView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Josian
Top achievements
Rank 1
Josian asked on 02 Sep 2016, 11:51 AM

Hi,

I changes the Font of the TexField of the AutoCompleteTextView.

Now i would like to set the same Font to the SuggestionView.

 

How can I do this ?

Regards,

Jos

1 Answer, 1 is accepted

Sort by
0
Sophi
Telerik team
answered on 07 Sep 2016, 11:22 AM
Hi Josian,

You can customize the suggestionView by providing custom cell for it. 
Consider the following snippets.
@implementation CustomListViewCell
 
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.textLabel.font =[UIFont fontWithName:@"HelveticaNeue-Italic" size:16];
    }
    return self;
}
TKListView *listView = (TKListView*)self.autocomplete.suggestionView;
[listView registerClass:[CustomListViewCell class] forCellWithReuseIdentifier:@"cell"];

I hope this is helpful.

Regards,
Sophi
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
AutoCompleteTextView
Asked by
Josian
Top achievements
Rank 1
Answers by
Sophi
Telerik team
Share this question
or