Is there any easy way to Uppercase the DigitalClock "am/pm"?

Put your problem here if it does not fit any of the other categories.

Is there any easy way to Uppercase the DigitalClock "am/pm"?

Postby amitku » Wed Mar 30, 2011 12:36 pm

Hi all,
I am working in android 1.6 and I tried to uppercase the "am/pm" of DigitalClock . I used the android:inputType="textCapCharacters" and android:capitalize="characters" properties but it does not work. Is there any easty way to uppercase "am/pm" ??
amitku
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Mar 02, 2011 9:10 am
Location: Bangladesh

Top

Re: Is there any easy way to Uppercase the DigitalClock "am/

Postby blundell » Wed Mar 30, 2011 1:02 pm

Sorry where is am/pm displayed?

What does the XML look like?
User avatar
blundell
Master Developer
Master Developer
 
Posts: 1610
Joined: Tue Nov 18, 2008 12:58 pm
Location: UK

Re: Is there any easy way to Uppercase the DigitalClock "am/

Postby amitku » Thu Mar 31, 2011 4:23 pm

Thanks for response. am/pm is displayed with time info by default. Here is my XML code..

Syntax: [ Download ] [ Hide ]
Using xml Syntax Highlighting
  1. <DigitalClock android:id="@+id/DigitalClock"
  2.                                                                         android:layout_width="wrap_content"
  3.                                                                         android:layout_height="wrap_content"
  4.                                                                         android:textStyle="bold"
  5.                                                                         android:ellipsize="middle" android:textSize="27sp" android:textColor="@color/white_color" android:inputType="textCapCharacters"/>
  6.  
  7.  
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
amitku
Junior Developer
Junior Developer
 
Posts: 15
Joined: Wed Mar 02, 2011 9:10 am
Location: Bangladesh

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot], TurnitinBot [Bot] and 14 guests