-
Notifications
You must be signed in to change notification settings - Fork 12
Widgets
Dan edited this page Jul 4, 2014
·
2 revisions
A log in/log out button. When the user is not logged in, shows the given loginText text or 'Login and starts WebLoginActivity when clicked. When the user logged in, shows the given *logoutText text or 'Log out' and deletes all Twitter data stored on the device and logs out from Twitter when clicked.
You can add this button in layout like this:
<com.twitt4droid.widget.LogInOutButton
xmlns:twitt4droid="http://schemas.android.com/apk/res-auto"
android:id="@+id/loginout_button"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
twitt4droid:loginText="@string/custom_login"
twitt4droid:logoutText="@string/custom_logout" />A dialog to compose a tweet. Call it like this:
new TweetDialog(context).show();
new TweetDialog(context).addTextToTweet(text).show();
