Android Open Source - RealTextView Real Url






From Project

Back to project page RealTextView.

License

The source code is released under:

Apache License

If you think the Android project RealTextView listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.hardsoftstudio.real.textview.utils;
//from ww  w  . j  a v a2 s. c o m
/**
 * Created by Marcel on 07/10/2014.
 */
public class RealUrl {

    public final static String TAG_SPLITER = "&&&";
    public final static String TAG_PARAM_SPLITER = ",";

    public final static String TAG_WIDTH = "width=";
    public final static String TAG_HEIGHT = "height=";
    public static final String TAG_GRAVITY = "gravity=";


    public static String makeImageUrl(String url, int width, int height, int gravity) {
        StringBuilder result = new StringBuilder();
        return result.insert(0,url)
                .append(TAG_SPLITER)
                .append(TAG_WIDTH+width)
                .append(TAG_PARAM_SPLITER)
                .append(TAG_HEIGHT+height)
                .append(TAG_PARAM_SPLITER)
                .append(TAG_GRAVITY+gravity)
                .toString();
    }
}




Java Source Code List

com.hardsoftstudio.real.textview.exceptions.RealHtmlTextViewException.java
com.hardsoftstudio.real.textview.utils.AutofitHelper.java
com.hardsoftstudio.real.textview.utils.FontManager.java
com.hardsoftstudio.real.textview.utils.HtmlTagHandler.java
com.hardsoftstudio.real.textview.utils.LocalImageGetter.java
com.hardsoftstudio.real.textview.utils.RealUrl.java
com.hardsoftstudio.real.textview.utils.SizeUtils.java
com.hardsoftstudio.real.textview.utils.UrlImageGetter.java
com.hardsoftstudio.real.textview.views.BaseTextView.java
com.hardsoftstudio.real.textview.views.RealButton.java
com.hardsoftstudio.real.textview.views.RealCheckBox.java
com.hardsoftstudio.real.textview.views.RealEditText.java
com.hardsoftstudio.real.textview.views.RealTextView.java
org.hardsoftstudio.real.example.ApplicationTest.java
org.hardsoftstudio.real.example.BaseActivity.java
org.hardsoftstudio.real.example.ExampleMainActivity.java
org.hardsoftstudio.real.example.HtmlExampleActivity.java
org.hardsoftstudio.real.example.MainActivity.java
org.hardsoftstudio.real.textview.ApplicationTest.java