List of usage examples for android.widget ScrollView setFadingEdgeLength
public void setFadingEdgeLength(int length)
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); }