Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Custom Twitter TweetView Style
<resources>
<style name="CustomTwitterStyle" parent="tw__TweetLightStyle">
<item name="tw__tweet_actions_enabled">false</item>
<!-- default values -->
<item name="tw__container_bg_color">@color/tw__tweet_light_container_bg_color</item>
<item name="tw__primary_text_color">@color/tw__tweet_light_primary_text_color</item>
<item name="tw__action_color">@color/tw__tweet_action_color</item>
<item name="tw__action_highlight_color">@color/tw__tweet_action_light_highlight_color</item>
</style>
</resources>
override fun success(result: Result<Tweet>?) {
val tweet = result!!.data
componentInstance.addView(TweetView(componentInstance.context, tweet, R.style.CustomTwitterStyle))
invalidate()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.