Laravel

How to Install Composer on mac / OSX

1. Open Terminal and paste these code and run 2. It will install composer locally. Now we need to move it globally 3. If you facing the following problem mv: rename composer.phar to /usr/local/bin/composer: No such file or directory Then… Continue Reading…

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 –

News

Android 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 DSL script files CPU Profiler upgrades Design tools New Motion Editor Live Layout Inspector Layout Validation Smart editor features for… Continue Reading…

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”

IOS

JSON 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 Gson gson = new Gson(); GlobalDataListModel globalDataListModelArrayList = new GlobalDataListModel(); globalDataListModelArrayList = gson.fromJson(matterEditModels.get(position).getGlobalDataList(), GlobalDataListModel[].class);

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