CopyPastor

Detecting plagiarism made easy.

Score: 1.7248165607452393; Reported for: String similarity, Exact paragraph match Open both answers

Possible Plagiarism

Plagiarized on 2016-08-10
by Zeeshan Khan

Original Post

Original - Posted on 2010-11-30
by Konrad Nowicki



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Android does not support justify ,To justify text in android use WebView
WebView view = new WebView(this); view.setVerticalScrollBarEnabled(false); ((LinearLayout)findViewById(R.id.inset_web_view)).addView(view); view.loadData(getString(R.string.hello), "text/html; charset=utf-8", "utf-8");
and html code
<string name="hello"> <![CDATA[ <html> <head></head> <body style="text-align:justify;color:gray;background-color:black;"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc pellentesque, urna nec hendrerit pellentesque, risus massa </body> </html> ]]> </string>
<strong>EDIT:</strong> to set Background transparent in it, use:
webView.setBackgroundColor(0x00000000); if (Build.VERSION.SDK_INT >= 11) webView.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null);
this.wv.setWebViewClient(new WebViewClient() {
@Override public void onPageFinished(WebView view, String url) { view.setBackgroundColor(0x00000000); if (Build.VERSION.SDK_INT >= 11) view.setLayerType(WebView.LAYER_TYPE_SOFTWARE, null); } });


To justify text in android I used WebView

setContentView(R.layout.main); WebView view = new WebView(this); view.setVerticalScrollBarEnabled(false);
((LinearLayout)findViewById(R.id.inset_web_view)).addView(view); view.loadData(getString(R.string.hello), "text/html; charset=utf-8", "utf-8"); and html.
<string name="hello"> <![CDATA[ <html> <head></head> <body style="text-align:justify;color:gray;background-color:black;"> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc pellentesque, urna nec hendrerit pellentesque, risus massa </body> </html> ]]> </string>
I can't yet upload images to prove it but "it works for me".


        
Present in both answers; Present only in the new answer; Present only in the old answer;