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…
Continue ReadingAndroid Swipe Left Right Top Bottom
Create SwipeTouch Listener Class 2. Now implement with the view which should touch. Like background LinearLayout or other
Continue ReadingHow 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…
Continue ReadingAndroid 4.0 Stable version Released
https://developer.android.com/studio/releases/?utm_medium=studio-assistant&utm_source=android-studio#4-0-0 Major Features Build Analyzer Java 8 library desugaring in D8 and R8 Feature-on-feature dependencies Dependencies metadata Support for Kotlin…
Continue ReadingAndroid 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…
Continue ReadingJSON String to Android class object conversion using GSON
JSON Array conversion Gson gson = new Gson(); List globalDataListModelArrayList = new ArrayList(); globalDataListModelArrayList = Arrays.asList(gson.fromJson(matterEditModels.get(position).getGlobalDataList(), GlobalDataListModel[].class)); JSON Object conversion…
Continue ReadingGet 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)) {…
Continue Reading