All Projects → tylersuehr7 → Social Text View

tylersuehr7 / Social Text View

Licence: mit
A custom Android TextView that highlights social media lingo (#hashtags, @mentions, phone, emails, and urls).

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Social Text View

anon.land
open source Imageboard just like was Voxed.net
Stars: ✭ 16 (-75%)
Mutual labels:  social, social-media
Spruce
A social networking platform made using Node.js and MongoDB
Stars: ✭ 399 (+523.44%)
Mutual labels:  social, media
FigmaConvertXib
FigmaConvertXib is a tool for exporting design elements from figma.com and generating files to a projects iOS .xib / Android .xml
Stars: ✭ 111 (+73.44%)
Mutual labels:  view, text
watchman
Watchman: An open-source social-media event-detection system
Stars: ✭ 18 (-71.87%)
Mutual labels:  social-media, media
Socialmanagertools Igbot
🤖 📷 Instagram Bot made with love and nodejs
Stars: ✭ 699 (+992.19%)
Mutual labels:  social, social-media
ts-serverless
Telar Social Network using OpenFaaS and Kubernetes. Run your own server-less social network. One command from OpenFaaS Cloud to build Social Network.
Stars: ✭ 34 (-46.87%)
Mutual labels:  social, social-media
Aardwolf
Powering connected social communities with open software.
Stars: ✭ 379 (+492.19%)
Mutual labels:  social, social-media
material-chip-view
Material Chip view. Can be used as tags for categories, contacts or creating text clouds
Stars: ✭ 1,300 (+1931.25%)
Mutual labels:  view, text
Befriended
Eloquent Befriended brings social media-like features like following, blocking and filtering content based on following or blocked models.
Stars: ✭ 596 (+831.25%)
Mutual labels:  social, media
Longshadow
Add a long shadow on any Android View
Stars: ✭ 562 (+778.13%)
Mutual labels:  text, view
QPrompt
Personal teleprompter software for all video creators. Built with ease of use, productivity, control accuracy, and smooth performance in mind.
Stars: ✭ 168 (+162.5%)
Mutual labels:  text, media
Mylittlecanvas
🎨Need to create a custom view ? You don't know how to use Canvas, use MyLittleCanvas instead !
Stars: ✭ 870 (+1259.38%)
Mutual labels:  text, view
CheckableTextView
A simple and flexible Checked TextView or Checkable TextView
Stars: ✭ 108 (+68.75%)
Mutual labels:  view, text
pH4Social
📣 Social Networking Software built with Laravel PHP framework and Bootstrap.
Stars: ✭ 27 (-57.81%)
Mutual labels:  social, social-media
SocialOrbitLayout
Kotlin based custom view to show floating objects that can be used for social apps.
Stars: ✭ 28 (-56.25%)
Mutual labels:  social, social-media
Socialhome
A federated social home
Stars: ✭ 282 (+340.63%)
Mutual labels:  social, social-media
socialx react native
The SocialX ecosystem takes the social media experience to the next level.
Stars: ✭ 20 (-68.75%)
Mutual labels:  social, social-media
LaColorduino
I build my own clone of "LaMetric"-smartwatch but with some Colorduino for Twitch, YouTube, Twitter, CSGO, etc.. (Working)
Stars: ✭ 56 (-12.5%)
Mutual labels:  social, social-media
Angular Socialshare
Angular social share module, share urls and content on social networks such as facebook, google+, twitter, pinterest and more ... - http://720kb.github.io/angular-socialshare
Stars: ✭ 508 (+693.75%)
Mutual labels:  social, media
Snax
Decentralized Social Media Overlay
Stars: ✭ 18 (-71.87%)
Mutual labels:  social, social-media

Social Text View

A custom Android TextView that highlights social media lingo (#hashtags, @mentions, phone, emails, and urls).

Core features of this library:

  • Highlight social media lingo in text
  • Clickable social media lingo in text

How to use it...

In your project level build.gradle :

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
} 

In your app level build.gradle:

dependencies {
    compile 'com.github.tylersuehr7:social-text-view:1.0.0'
}  

Using the Social Text View

The basic usage of this library is to highlight, and make clickable, whenever social media lingo appears in text. To achieve this functionality, you'll need to use the SocialTextView.

This library also includes an object, AccurateMovementMethod, which improves the touch on the Android LinkMovementMethod, so that clicking links are much more accurate.

Using in an XML layout

SocialTextView can be used in any ViewGroup and supports all available width and height attributes that TextView does. Simple usage is shown here:

<com.tylersuehr.socialtextview.SocialTextView
        android:id="@+id/social_text"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:text="@tylersuehr7, Android is awesome! #android"
        app:hashtagColor="#757575"
        app:mentionColor="#757575"
        app:linkModes="hashtag|mention"/>

Here is a table of all the XML attributes available for this view:

Attribute Type Summary
app:hashtagColor color Sets the text color of a hashtag link in the text.
app:mentionColor color Sets the text color of a mention link in the text.
app:phoneColor color Sets the text color of a phone number link in the text.
app:emailColor color Sets the text color of an email link in the text.
app:urlColor color Sets the text color of a web url link in the text.
app:selectedColor color Sets the text color of a selected link in the text.
app:linkModes int Sets flags for which types of links the text should show. i.e: "hashtag

Using in Java code

SocialTextView can be programmatically added into any ViewGroup. Simple usage in an Activity is shown here:

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    
    // Text to display in the view
    String example = "Really neat stuff @tylersuehr7! #Android #GitHub";
    
    // Create an instance of the view and set the text above
    SocialTextView textView = new SocialTextView(this);
    textView.setLinkText(example);
    // set any other properties you want social text view
    
    setContentView(textView);
}

Here is a table of all the accessible attributes available for this view:

Method Summary
setLinkText(String) Checks the given text for any available links and displays it.
appendLinkText(String) Checks the given text for any available links and appends it.
setOnLinkClickListener(OnLinkClickListener) Sets a listener for when available links are clicked.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].