jineshfrancs / LazyLoadingViews

Loading effect for the child views in Adapter View before binding data from service.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LazyLoadingViews

Loading effect for the child views in Adapter View before binding data from service.

Output sample

Just add the loading views in adapter layout.

  <test.jinesh.loadingviews.LoadingTextView
            android:layout_width="match_parent"
            android:textColor="#000"
            android:id="@+id/city"
            android:layout_margin="5dp"
            android:layout_weight="1"
            android:gravity="center_vertical"
            android:textSize="18sp"
            android:layout_height="0dp" />
			

Call startLoading() to show loading effect on views.

    LoadingTextView cityText = (LoadingTextView) view.findViewById(R.id.city);
	cityText.startLoading();

Call stopLoading() to hide loading effect on views.

cityText.stopLoading();

About

Loading effect for the child views in Adapter View before binding data from service.

License:Apache License 2.0


Languages

Language:Java 100.0%