This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| final AppBarLayout app = (AppBarLayout) findViewById(R.id.app_bar); | |
| final CardView search = (CardView) findViewById(R.id.search); | |
| final TextView searchTv = (TextView) findViewById(R.id.search_text); | |
| final TabLayout tab = (TabLayout) findViewById(R.id.tab2); | |
| final RelativeLayout rl = (RelativeLayout) findViewById(R.id.rl); | |
| app.addOnOffsetChangedListener(new AppBarLayout.OnOffsetChangedListener() { | |
| @Override | |
| public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class SliderView extends View { | |
| public static final int HORIZONTAL = 0; | |
| public static final int VERTICAL = 1; | |
| private Bitmap mKeyBitmap; | |
| private Bitmap mLockBitmap; | |
| /** | |
| * 方向, 默认水平方向 |