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

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

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

laravel - Undefined property: Illuminate\Pagination\LengthAwarePaginator::$id (View: F:\project\resources\views\admin\carousels\index.blade.php) -