List of usage examples for android.widget ScrollView getVisibility
@ViewDebug.ExportedProperty(mapping = { @ViewDebug.IntToString(from = VISIBLE, to = "VISIBLE"), @ViewDebug.IntToString(from = INVISIBLE, to = "INVISIBLE"), @ViewDebug.IntToString(from = GONE, to = "GONE") }) @Visibility public int getVisibility()
From source file:org.dharmaseed.android.NavigationActivity.java
public void headingDetailCollapseExpandButtonClicked(View view) { ScrollView scrollView = (ScrollView) findViewById(R.id.nav_sub_header_description_scroll); ImageButton button = (ImageButton) findViewById(R.id.heading_detail_collapse_expand_button); if (scrollView.getVisibility() == View.VISIBLE) { scrollView.setVisibility(View.GONE); button.setImageDrawable(ContextCompat.getDrawable(this, getResources().getIdentifier("arrow_down_float", "drawable", "android"))); } else {//from w w w .j av a 2 s. c om scrollView.setVisibility(View.VISIBLE); button.setImageDrawable(ContextCompat.getDrawable(this, getResources().getIdentifier("arrow_up_float", "drawable", "android"))); } }