Android

Hex Color Code Opacity

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

November 2020
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Site Statistics

  • Users online: 0 
  • Visitors today : 14
  • Page views today : 14
  • Total visitors : 3,872
  • Total page view: 4,337