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

September 2020
M T W T F S S
« Jul    
 123456
78910111213
14151617181920
21222324252627
282930  

Site Statistics

  • Users online: 0 
  • Visitors today : 6
  • Page views today : 6
  • Total visitors : 2,876
  • Total page view: 3,222