java - Allow user to set part of multiline textbox bold -


i have multi line textview in app , want make bar user can click in bold/italic buttons , either selected area in multiline become bold/italic or text user types bold until user deselects bold/italic.

is possible? if can gives sample code. new programming in android difficult.

edit: changing font size , font if possible. edit: forgot using android 5.0, not makes of difference.

yes ,you can set text style , font using method use if else statement in method , pass integer

if(i==0){ textview.settypeface(null, typeface.bold);  } else if(i==1){ textview.settypeface(null, typeface.italic);} 

you can thing it's not complete write mind. hope ,and in similar way can set text size also.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -