Android

Android Add Animations Left Right Top Bottom Translation.

Animation animSlideDown = AnimationUtils.loadAnimation(getActivity(), R.anim.bottom_to_top); yourLayout.startAnimation(animSlideDown); Animations. Just create an animation file inside anim folder under the res. app->res->anim bottom_to_top.xml <?xml version=”1.0″ encoding=”utf-8″?><set xmlns:android=”http://schemas.android.com/apk/res/android”> <translate android:duration=”1000″ android:fromYDelta=”100%” android:toYDelta=”1%” /></set> Slide Up Slide Out Slide Down Bounce Animation

Android

Android Swipe Left Right Top Bottom

Create SwipeTouch Listener Class 2. Now implement with the view which should touch. Like background LinearLayout or other

Android

How to set fixed range in EditText input

1. First set EditText input type as number 2. Create a input filter class. that will filter the min to max value. 3. Now use it like this –

Android

Android EditText Capitalized Word , Sentence , Character

To capitalize the first word of each sentence use : android:inputType=”textCapSentences” To Capitalize The First Letter Of Every Word use : android:inputType=”textCapWords” To Capitalize every Character use : android:inputType=”textCapCharacters”

AndroidIOS

Get actual adapter position at Auto Complete TextView in Android

String selection = (String) parent.getItemAtPosition(position);int pos = -1;for (int i = 0; i < clientName.size(); i++) { if (clientName.get(i).equals(selection)) { pos = i; break; }}System.out.println(“Position ” + pos); //check it now in Logcat As Like

October 2020
M T W T F S S
« Sep    
 1234
567891011
12131415161718
19202122232425
262728293031  

Site Statistics

  • Users online: 0 
  • Visitors today : 2
  • Page views today : 2
  • Total visitors : 3,424
  • Total page view: 3,838