Back to project page joanne.
The source code is released under:
GNU General Public License
If you think the Android project joanne listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.gmail.altakey.joanne.view; /* w ww . j a va2 s . co m*/ import android.annotation.SuppressLint; import android.content.Context; import android.view.Gravity; import android.widget.Toast; import com.gmail.altakey.joanne.hack.ToastAnimationCanceler; public class TweetDisplayBuilder { private Context mContext; private Radio mRadio; public TweetDisplayBuilder(final Context context, final Radio radio) { mContext = context; mRadio = radio; } public Toast build() { @SuppressLint("ShowToast") final Toast message = Toast.makeText(mContext, "", Toast.LENGTH_LONG); message.setView(new TweetView(mContext).radio(mRadio)); message.setGravity(Gravity.TOP, 0, 0); message.setMargin(0.0f, 0.0f); message.setDuration(mRadio.getDuration()); new ToastAnimationCanceler(message).apply(); return message; } }