Skip to content

Instantly share code, notes, and snippets.

View RanjitPati's full-sized avatar
😉

Ranjit Pati RanjitPati

😉
View GitHub Profile
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/ivIcon"
android:layout_width="60dp"
android:layout_height="60dp"
fresco:placeholderImage="@drawable/ic_launcher"
/>
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.ajk.frescotestapp">
<application
android:name=".MyApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
}
}
public class MyApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
}
}
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollable_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true" >
<ImageView
android:id="@+id/image_home"
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/scrollable_layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:adjustViewBounds="true" >
<ImageView
android:id="@+id/image_home"
android:layout_width="fill_parent"
public class MainActivity extends AppCompactActivity{
private ShimmerFrameLayout mShimmerViewContainer;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.screen_businesslist);
//initialize the ShimmerLayout
mShimmerViewContainer = findViewById(R.id.shimmer_view_container);
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:shimmer="http://schemas.android.com/apk/res-auto"
tools:context="com.example.MainActivity">
<com.facebook.shimmer.ShimmerFrameLayout
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="0dp"
android:orientation="vertical">
<View
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_gravity="center"
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<include layout="@layout/custom_grid"