I have gotten a project for school called " Notifications " I need to recieve notifications from google sheet to mit ai2 companion app and when you click on any notification in listview it opens screen2 on which you see full text of notification and can mark you read the notification and Unread notification number goes from 2 to 1 (which I still didn't figure out how to do) but main thing I need to ask is how do I limit the number of words in list view?
lets say if in notification there is 10 words I wanna see only 5 words in screen1 and when I click that notification on screen2 I see full message.
any Ideas?
thanks it helped but may I know is there way I can only define how many words in listview there can be?.
this code only limits how many letters there will be in the text part of listview.