Postagens

Mostrando postagens de setembro, 2013

Usando emojis em aplições Android

How to Add Smiley/Emojis in Edittext? Emoji.java :- package com.android.emoji; import android.app.Activity; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.drawable.Drawable; import android.os.Bundle; import android.text.Html; import android.text.Html.ImageGetter; import android.view.View; import android.view.View.OnClickListener; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; public class Emoji extends Activity implements OnClickListener {     EditText edttxtemoji;     Button btnsubmit, btnselectemoji;     TextView txtviewdisplay;     /** Called when the activity is first created. */     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.main);         edttxtemoji = (EditText) findViewById(R.id.edttxtemoji);         btnsubmit = (Button) findViewById(R.id.btnok);       

Imprimindo a WEB

Imagem
Hey there… This post is 184 days old. It was written on 25.03.2013. Please make sure to be careful with the information provided and check a more recent source on this topic. While it is possible to consume nearly all means of content on your smartphone or tablet it seems like the dream of a paperless office comes true for a lot of web developers. But digital natives are not the only ones who are on the web. There are still some people that like to print web sites on paper. Once you are aware of that you might want to include a dedicated print stylesheet into web sites you build. Here is some advice on what you can do to get the best out of your page. Disclaimer:  This article was first published in the German  Screen Guide Magazine  #15 (September to December 2012, pages 77 to 79). This article features more content and better research. The basics of a print style sheet should already be well known by most web developers. There are two possible ways to include CSS for pri

Imprimindo Página A4 com cabeçalho e rodapé usando CSS

Paged media differ from continuous media in that the content of the document is split into one or more discrete pages. Paged media includes paper, transparencies, pages that are displayed on computer screens, etc. The CSS2 standard introduces some basic pagination control features that let authors help the browser figure out how to best print their documents. The CSS2 page model specifies how a document is formatted within a rectangular area -- the page box -- that has a finite width and height. These features fall into two groups: CSS2 features that define a particular page layout. CSS2 features that control the pagination of a document. Defining Pages: the @page rule The CSS2 defines a "page box", a box of finite dimensions in which content is rendered. The page box is a rectangular region that contains two areas: The page area:  The page area includes the boxes laid out on that page. The edges of the page area act as the initial containing block for lay