Example usage for android.widget ScrollView setFadingEdgeLength

List of usage examples for android.widget ScrollView setFadingEdgeLength

Introduction

In this page you can find the example usage for android.widget ScrollView setFadingEdgeLength.

Prototype

public void setFadingEdgeLength(int length) 

Source Link

Document

Set the size of the faded edge used to indicate that more content in this view is available.

Usage

From source file:com.g11x.checklistapp.ChecklistItemActivity.java

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
    setContentView(R.layout.activity_checklist_item);

    language = AppPreferences.getLanguageOverride(this);

    DatabaseReference databaseRef = FirebaseDatabase.getInstance()
            .getReferenceFromUrl(this.getIntent().getStringExtra("databaseRefUrl"));

    databaseRef.addValueEventListener(new ValueEventListener() {
        @Override/*from w ww  .j  ava2s  .c o m*/
        public void onDataChange(DataSnapshot dataSnapshot) {
            checklistItem = dataSnapshot.getValue(ChecklistItem.class);
            createUI();
        }

        @Override
        public void onCancelled(DatabaseError databaseError) {
            Log.e("", "Unable to fetch database item.");
        }
    });

    getSupportLoaderManager().initLoader(LOADER_ID, null, this);

    ScrollView scrollView = (ScrollView) findViewById(R.id.scrollView);
    scrollView.setFadingEdgeLength(150);
}