Skip to content

Android

The Definitive Way to Play Videos on Android: ExoPlayer

[vc_row type=”in_container” full_screen_row_position=”middle” scene_position=”center” text_color=”dark” text_align=”left” overlay_strength=”0.3″ shape_divider_position=”bottom” bg_image_animation=”none”][vc_column column_padding=”no-extra-padding” column_padding_position=”all” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_link_target=”_self” column_shadow=”none” column_border_radius=”none” width=”1/1″ tablet_width_inherit=”default” tablet_text_alignment=”default” phone_text_alignment=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][vc_column_text]ExoPlayer is a media player for Android initially developed by Google for their own applications, but released as a library for any Android… Read More »The Definitive Way to Play Videos on Android: ExoPlayer

Android Textview Spannable Cheat Sheet

Note that this cheat sheet will explain everything using text.setSpan. The code that around this should resemble something like this. val text = SpannableString(“Hello World”) text.setSpan(…) textview.setText(text, TextView.BufferType.SPANNABLE) Bold text.setSpan( StyleSpan(android.graphics.Typeface.BOLD), 0, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ) Italic text.setSpan( StyleSpan(android.graphics.Typeface.ITALIC), 0, 3, Spannable.SPAN_EXCLUSIVE_EXCLUSIVE ) Bold Italic text.setSpan(… Read More »Android Textview Spannable Cheat Sheet