[android-developers] Set password text as case sensitive

2010-09-23 Thread harshe
HI ,
I want to know how to set the password and user name edit text
so that it will be case sensitive.. as of now in the login screen If i
give my credentials user name and password in any case( higher or
lower) it accepts.. i mean the fields are case in -sensitive.. Can
anyone please help me out in this

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: allign text vertically in a text view

2010-08-01 Thread harshe
yeah it works ... thanks a lot paul...:)
hey Paul I have posted one more query regarding pinch in pinch out
zoom can u plz check and share ur idea on that and help me in
resolving it .. PLZZZ



On Jul 28, 12:50 pm, Paul Turchenko  wrote:
> Yeah, no problem with that. Just declare you DemoView in the layout.
> For now it goes like this:
> 
> 
> 
> 
>
> And set this layout to be activity's content.
>
> On Jul 27, 1:32 pm, harshe  wrote:
>
> > Thanks Paul.As u said, the following code works well . But it
> > looks like a custom view , i cant see the textview itself. I have set
> > the ContentView to main.XML only but still the views in the main.XML r
> > not seen. am getting an output were i can see only the given string
> > rotated -90 degrees in the specified location. i want this rotation of
> > the string to happen inside the textview and the other components in
> > the main.xml has to be displayed.do i have to change anything in
> > this code And if i want to add an ImageView next to this textview
> > ( linear layout is horizontal orientation)
> > wat i should do. Please do help me
>
> > public class textrotate extends Activity {
>
> >     DemoView dview;
> >         /** Called when the activity is first created. */
> >     @Override
> >     public void onCreate(Bundle savedInstanceState) {
> >         super.onCreate(savedInstanceState);
> >         dview= new DemoView(this);
> >         setContentView(dview);
> >        // rotateText("FACEBOOK");
> >     }
>
> >         private class DemoView extends TextView{
>
> >                 public DemoView(Context context) {
> >                         super(context);
> >                         // TODO Auto-generated constructor stub
> >                 }
>
> >                 protected void onDraw(Canvas canvas){
> >                         super.onDraw(canvas);
> >                         // x increases from left to right
> >                         // y increases from top to bottom
> >                         canvas.save();
> >                         //int x=0;
> >                         //int y=0;
> >                         Paint paint= new Paint();
> >                         paint.setStyle(Paint.Style.FILL);
> >                         paint.setColor(Color.WHITE);
> >                         //x=30;
> >                         //y=400;
> >                         paint.setTextSize(40);
> >                         String str2Rotate = "FACEBOOK";
> >                         float py = this.getHeight();
> >             float px = this.getWidth()/8.0f;
> >             //canvas.rotate(180, px, py);
>
> >                         canvas.rotate(-90, px,py);
> >                         canvas.drawText(str2Rotate, px, py, paint);
> >                         canvas.restore();
>
> >                 }
> >         }
>
> > }
>
> > On Jul 27, 3:33 am, Paul Turchenko  wrote:
>
> > > Inherit from TextView, override measure pass and during draw, rotate
> > > the canvas, call super, restore it. This will do the trick
>
> > > On Jul 26, 12:38 am, harshe  wrote:
>
> > > > I have a textview placed vertically in an activity.. I Want the text
> > > > within the textview to be shown as bottom to top facing right side.
> > > > Can anyone please help me out..
> > > > my XML file is
>
> > > >  > > >     android:layout_height="200dp"
> > > >     android:layout_width="50dp"
> > > >     android:paddingTop="100dp"
> > > >     android:text="ALL"
> > > >     android:textSize=" 20px"
> > > >     android:autoText="true"
> > > >      android:paddingLeft="5dp"
> > > >      android:layout_gravity="fill_vertical"
> > > >   />

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Pinch in , Pinch-out Zoom in android

2010-07-30 Thread harshe
HI,

   I need to implement the pinch in and pinch out zoom on a list
adapter.
I have a list of contacts sorted alphabetically. Using pinch-in the
list has to be zoomed out(shrinked).. and in Pinch-Out the list has to
be Zoom-in (enlarged or expanded)..i tried with onTouchListener and
onTouch() event but it looks very complex... and In my perspective  i
think we have to find the velocity ( distance between the two fingers
and how fast the user does pinch in or out i mean the time) since
velocity =distance/time... i am not sure does my perspective is
correct  So pleas e suggest me how I can Achieve the expected
feature.   can any on please help me out from this..

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: allign text vertically in a text view

2010-07-27 Thread harshe
Thanks Paul.As u said, the following code works well . But it
looks like a custom view , i cant see the textview itself. I have set
the ContentView to main.XML only but still the views in the main.XML r
not seen. am getting an output were i can see only the given string
rotated -90 degrees in the specified location. i want this rotation of
the string to happen inside the textview and the other components in
the main.xml has to be displayed.do i have to change anything in
this code And if i want to add an ImageView next to this textview
( linear layout is horizontal orientation)
wat i should do. Please do help me


public class textrotate extends Activity {

DemoView dview;
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
dview= new DemoView(this);
setContentView(dview);
   // rotateText("FACEBOOK");
}

private class DemoView extends TextView{

public DemoView(Context context) {
super(context);
// TODO Auto-generated constructor stub
}

protected void onDraw(Canvas canvas){
super.onDraw(canvas);
// x increases from left to right
// y increases from top to bottom
canvas.save();
//int x=0;
//int y=0;
Paint paint= new Paint();
paint.setStyle(Paint.Style.FILL);
paint.setColor(Color.WHITE);
//x=30;
//y=400;
paint.setTextSize(40);
String str2Rotate = "FACEBOOK";
float py = this.getHeight();
float px = this.getWidth()/8.0f;
//canvas.rotate(180, px, py);

canvas.rotate(-90, px,py);
canvas.drawText(str2Rotate, px, py, paint);
canvas.restore();



}
}
}

On Jul 27, 3:33 am, Paul Turchenko  wrote:
> Inherit from TextView, override measure pass and during draw, rotate
> the canvas, call super, restore it. This will do the trick
>
> On Jul 26, 12:38 am, harshe  wrote:
>
> > I have a textview placed vertically in an activity.. I Want the text
> > within the textview to be shown as bottom to top facing right side.
> > Can anyone please help me out..
> > my XML file is
>
> >  >     android:layout_height="200dp"
> >     android:layout_width="50dp"
> >     android:paddingTop="100dp"
> >     android:text="ALL"
> >     android:textSize=" 20px"
> >     android:autoText="true"
> >      android:paddingLeft="5dp"
> >      android:layout_gravity="fill_vertical"
> >   />

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: To display the soft keyboard during the launch itself

2010-07-25 Thread harshe
i tried even this but still it doesnot work for me :( :(


On Jul 23, 8:30 pm, Matt Quigley  wrote:
> You might get it to work if you request the focus for EditText on
> creation.  Either add "editText.requestFocus()" in your onCreate(), or
> add a  tag inside the EditText's XML layout.
> 
>   
> 
>
> -Matt
>
> On Jul 23, 4:52 am, harshe  wrote:
>
> > no it didnot work :(
> > am working in android sdk 2.2
>
> > my manifest is
> > 
> > http://schemas.android.com/apk/res/android";
> >       package="com.android.keyboard"
> >       android:versionCode="1"
> >       android:versionName="1.0">
> >       >
> >     
> >          >                   android:label="@string/app_name"
>
> > android:windowSoftInputMode="stateAlwaysVisible">
> >            
> >                 
> >                  > android:name="android.intent.category.LAUNCHER" />
> >             
>
> >        
> >         
>
> >     
> > please help me ..
> > Thanks
> > Harshe
>
> > On Jul 23, 5:51 am, Matt  wrote:
>
> > >http://developer.android.com/guide/topics/manifest/activity-element.h...
>
> > > On Jul 22, 8:54 am, harshe  wrote:
>
> > > > i have an activity with few edit text views and a button. TheSoft
> > > >Keyboardis visible when I click the edit text view. But i want the
> > > >softkeyboardto be visible  during the launch itself , without
> > > > clicking the edit text itself i must get thesoftkeyboardon the
> > > > screen. Can  anyone plzzz help me out in this 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] allign text vertically in a text view

2010-07-25 Thread harshe
I have a textview placed vertically in an activity.. I Want the text
within the textview to be shown as bottom to top facing right side.
Can anyone please help me out..
my XML file is



-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] Re: To display the soft keyboard during the launch itself

2010-07-23 Thread harshe
no it didnot work :(
am working in android sdk 2.2

my manifest is

http://schemas.android.com/apk/res/android";
  package="com.android.keyboard"
  android:versionCode="1"
  android:versionName="1.0">
  >


   




   
    



please help me ..
Thanks
Harshe

On Jul 23, 5:51 am, Matt  wrote:
> http://developer.android.com/guide/topics/manifest/activity-element.h...
>
> On Jul 22, 8:54 am, harshe  wrote:
>
> > i have an activity with few edit text views and a button. TheSoft
> >Keyboardis visible when I click the edit text view. But i want the
> >softkeyboardto be visible  during the launch itself , without
> > clicking the edit text itself i must get thesoftkeyboardon the
> > screen. Can  anyone plzzz help me out in this 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en


[android-developers] To display the soft keyboard during the launch itself

2010-07-22 Thread harshe
i have an activity with few edit text views and a button. The Soft
Keyboard is visible when I click the edit text view. But i want the
soft keyboard to be visible  during the launch itself , without
clicking the edit text itself i must get the soft keyboard on the
screen. Can  anyone plzzz help me out in this 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en