hendraanggrian / Socialview
Licence: apache-2.0
Android TextView and EditText with hashtag, mention, and hyperlink support
Stars: ✭ 217
Programming Languages
java
68154 projects - #9 most used programming language
Projects that are alternatives of or similar to Socialview
ts-ui
Telar Social Network using Reactjs
Stars: ✭ 35 (-83.87%)
Mutual labels: social, social-media, social-network
Graphjs
A set of widgets for a meaningfully social web.
Stars: ✭ 212 (-2.3%)
Mutual labels: social, social-network, social-media
social
A simple social media using MEAN Stack. Frontend: Angular 6.
Stars: ✭ 13 (-94.01%)
Mutual labels: social, social-media, social-network
SocialMedia-App
A fully functional social media app built with flutter with multiple features
Stars: ✭ 646 (+197.7%)
Mutual labels: social, social-media, social-network
Socialblocklists
Blocklists to block the communication to social networking sites and privacy harming services
Stars: ✭ 161 (-25.81%)
Mutual labels: social, social-network, social-media
socialx react native
The SocialX ecosystem takes the social media experience to the next level.
Stars: ✭ 20 (-90.78%)
Mutual labels: social, social-media, social-network
LinkedIn Scraper
🙋 A Selenium based automated program that scrapes profiles data,stores in CSV,follows them and saves their profile in PDF.
Stars: ✭ 25 (-88.48%)
Mutual labels: social, social-media, social-network
Aardwolf
Powering connected social communities with open software.
Stars: ✭ 379 (+74.65%)
Mutual labels: social, social-network, social-media
anon.land
open source Imageboard just like was Voxed.net
Stars: ✭ 16 (-92.63%)
Mutual labels: social, social-media, social-network
pH4Social
📣 Social Networking Software built with Laravel PHP framework and Bootstrap.
Stars: ✭ 27 (-87.56%)
Mutual labels: social, social-media, social-network
Socialhome
A federated social home
Stars: ✭ 282 (+29.95%)
Mutual labels: social, social-network, social-media
Reddit Detective
Play detective on Reddit: Discover political disinformation campaigns, secret influencers and more
Stars: ✭ 129 (-40.55%)
Mutual labels: social, social-network, social-media
Hack The Media
This repo collects examples of intentional and unintentional hacks of media sources
Stars: ✭ 1,194 (+450.23%)
Mutual labels: social-network, social-media
Svelte Social Auth
Social Auth for Svelte v3
Stars: ✭ 86 (-60.37%)
Mutual labels: social, social-network
Dandelion
a diaspora* client for Android
Stars: ✭ 100 (-53.92%)
Mutual labels: social-network, social-media
Social Text View
A custom Android TextView that highlights social media lingo (#hashtags, @mentions, phone, emails, and urls).
Stars: ✭ 64 (-70.51%)
Mutual labels: social, social-media
Friendica Addons
Addons for Friendica
Stars: ✭ 94 (-56.68%)
Mutual labels: social-network, social-media
Laravel Social Network
Laravel 5.4 - location-based social network
Stars: ✭ 114 (-47.47%)
Mutual labels: social, social-network
Dfw1n Osint
Australian Open Source Intelligence Gathering Resources, Australias Largest Open Source Intelligence Repository for Cyber Professionals and Ethical Hackers
Stars: ✭ 63 (-70.97%)
Mutual labels: social-network, social-media
SocialView
TextView and EditText with hashtag, mention, and hyperlink support.
- Pre-loaded with default views, but also installable to any custom view.
- Display hashtag and mention suggestions as you type.
Download
repositories {
google()
jcenter()
}
dependencies {
implementation "com.hendraanggrian.appcompat:socialview:$version"
// auto-complete hashtag and mention
implementation "com.hendraanggrian.appcompat:socialview-commons:$version"
}
Core
Write SocialTextView
or SocialEditText
in xml.
<com.hendraanggrian.appcompat.widget.SocialTextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="#hashtag and @mention."
app:socialFlags="hashtag|mention"
app:hashtagColor="@color/blue"
app:mentionColor="@color/red"/>
See attrs.xml for full list of available attributes.
Modify its state and set listeners programmatically.
textView.setMentionEnabled(false);
textView.setHashtagColor(Color.RED);
textView.setOnHashtagClickListener(new Function2<SocialView, String, Unit>() {
@Override
public Unit invoke(SocialView socialView, String s) {
// do something
return null;
}
});
Any TextView or subclasses of TextView can be made social, see SocialTextView.kt for example.
Commons
NOTE: Custom adapters are experimental, see demo for example.
Write SocialAutoCompleteTextView
in xml.
<com.hendraanggrian.appcompat.widget.SocialAutoCompleteTextView
android:id="@+id/textView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:hint="What's on your mind?"
app:socialFlags="hyperlink"
app:hyperlinkColor="@color/green"/>
To display suggestions, it is required to setHashtagAdapter()
and setMentionAdapter()
.
ArrayAdapter<Hashtag> hashtagAdapter = new HashtagAdapter(getContext());
hashtagAdapter.add(new Hashtag("follow"));
hashtagAdapter.add(new Hashtag("followme", 1000));
hashtagAdapter.add(new Hashtag("followmeorillkillyou", 500));
textView.setHashtagAdapter(hashtagAdapter);
ArrayAdapter<Mention> mentionAdapter = new MentionAdapter(getContext());
mentionAdapter.add(new Mention("dirtyhobo"));
mentionAdapter.add(new Mention("hobo", "Regular Hobo", R.mipmap.ic_launcher));
mentionAdapter.add(new Mention("hendraanggrian", "Hendra Anggrian", "https://avatars0.githubusercontent.com/u/11507430?v=3&s=460"));
textView.setMentionAdapter(mentionAdapter);
To customize hashtag or mention adapter, create a custom adapter using customized SocialAdapter
or write your own ArrayAdapter
.
public class Person {
public final String name;
public Person(String name) {
this.name = name;
}
}
// easier
public class PersonAdapter extends SocialAdapter<Person> {
public PersonAdapter(@NonNull Context context) {
super(context, R.layout.item_person, R.id.textview_person);
}
@Override
public String convertToString(Person $receiver) {
return $receiver.name;
}
@Override
public View getView(int position, View convertView, @NonNull ViewGroup parent) {
...
}
}
// this works too
public class PersonAdapter extends ArrayAdapter<Person> {
// your own adapter layout, view holder, data binding
// and of course, filtering logic
}
Then, use the custom adapter.
ArrayAdapter<Person> adapter = new PersonAdapter(getContext());
adapter.add(personA);
adapter.add(personB);
textView.setMentionAdapter(adapter);
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].