android.support.constraint.Group Java Examples
The following examples show how to use
android.support.constraint.Group.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: VideoControllerView.java From VideoOS-Android-SDK with GNU General Public License v3.0 | 4 votes |
protected void initControllerView(View v) { mPauseButton = (ImageButton) v.findViewById(R.id.layout_media_pause); mPauseButton.setOnClickListener(mPauseListener); mCurrentTime = (TextView) v.findViewById(R.id.tv_media_time_current); mEndTime = (TextView) v.findViewById(R.id.tv_media_time); mVerticalProgress = (SeekBar) v.findViewById(R.id.media_controller_progress); mVerticalProgress.setOnSeekBarChangeListener(mSeekListener); mVerticalProgress.setMax(1000); mScreenChangeView = v.findViewById(R.id.ib_media_change_screen); mScreenChangeView.setOnClickListener(this); mButtonMall = v.findViewById(R.id.bt_media_mall); mButtonHy = v.findViewById(R.id.bt_media_huyu); mImageChange = v.findViewById(R.id.iv_media_change_screen); mButtonMall.setOnClickListener(this); mButtonHy.setOnClickListener(this); mImageChange.setOnClickListener(this); Group osGroup = (Group) v.findViewById(R.id.group_os_controller); switch (mVideoType) { case VIDEO_LIVE: osGroup.setVisibility(GONE); mButtonHy.setVisibility(GONE); break; case VIDEO_OS: mButtonMall.setVisibility(GONE); mImageChange.setVisibility(GONE); mButtonHy.setVisibility(GONE); break; case VIDEO_HY: osGroup.setVisibility(GONE); mImageChange.setVisibility(GONE); mScreenChangeView.setVisibility(GONE); break; } mFormatBuilder = new StringBuilder(); mFormatter = new Formatter(mFormatBuilder, Locale.getDefault()); }