Text Formatting

Put problem concerning Views, Layouts and other XML-Resources (like AndroidManifest) here.

Text Formatting

Postby sojo » Thu Apr 30, 2009 7:04 pm

Hello all
How can change text size in text view ? and Is it possible to coordinate the text that appears in the lists and buttons to change the color, size, and how could it??
Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <TextView  
  2.  
  3.    android:layout_width="fill_parent"
  4.  
  5.    android:layout_height="wrap_content"
  6.  
  7.    android:text="hello"
  8.  
  9. android:textStyle="italic"
  10.  
  11. android:textColor="#f200"
  12.  
  13. />
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
sojo
Developer
Developer
 
Posts: 35
Joined: Sat Apr 25, 2009 2:06 am

Top

Postby nmc » Thu Apr 30, 2009 8:38 pm

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1.  
  2.         <TextView android:id="@+id/Src"
  3.  
  4.                 android:layout_width="fill_parent"
  5.  
  6.                 android:layout_height="wrap_content"
  7.  
  8.                 android:text="hello"
  9.  
  10.                 android:textSize="14px"
  11.  
  12.                 android:textColor="#AAAAFF"
  13.  
  14.                 android:textStyle="bold"
  15.  
  16.         />
  17.  
  18.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4


Buttons: just the same.

Lists: each entry is a view, containing textviews, buttons etc. - so again, its just the same.
nmc
Senior Developer
Senior Developer
 
Posts: 154
Joined: Thu Nov 27, 2008 8:30 pm
Location: Germany

Re: Text Formatting

Postby kodex83 » Sat May 02, 2009 7:33 am

sojo wrote:Hello all
How can change text size in text view ? and Is it possible to coordinate the text that appears in the lists and buttons to change the color, size, and how could it??



you can do it with styles and themes.
kodex83
Freshman
Freshman
 
Posts: 9
Joined: Wed Dec 03, 2008 6:00 pm
Location: Germay

Top

Return to View, Layout & Resource Problems

Who is online

Users browsing this forum: Google [Bot] and 10 guests