本文整理了Java中android.widget.Button.setVisibility()
方法的一些代码示例,展示了Button.setVisibility()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setVisibility()
方法的具体详情如下:
包路径:android.widget.Button
类名称:Button
方法名:setVisibility
暂无
代码示例来源:origin: MindorksOpenSource/android-mvp-architecture
@Override
public void hideSubmitButton() {
mSubmitButton.setVisibility(View.GONE);
}
代码示例来源:origin: k9mail/k-9
private void setShowDownloadButton(MessageViewInfo messageViewInfo) {
if (messageViewInfo.isMessageIncomplete) {
mDownloadRemainder.setEnabled(true);
mDownloadRemainder.setVisibility(View.VISIBLE);
} else {
mDownloadRemainder.setVisibility(View.GONE);
}
}
代码示例来源:origin: sd6352051/NiftyDialogEffects
@Override
public void dismiss() {
super.dismiss();
mButton1.setVisibility(View.GONE);
mButton2.setVisibility(View.GONE);
}
}
代码示例来源:origin: sd6352051/NiftyDialogEffects
public NiftyDialogBuilder withButton1Text(CharSequence text) {
mButton1.setVisibility(View.VISIBLE);
mButton1.setText(text);
return this;
}
代码示例来源:origin: sd6352051/NiftyDialogEffects
public NiftyDialogBuilder withButton2Text(CharSequence text) {
mButton2.setVisibility(View.VISIBLE);
mButton2.setText(text);
return this;
}
代码示例来源:origin: k9mail/k-9
private void resetAndPrepareMessageView(MessageViewInfo messageViewInfo) {
mDownloadRemainder.setVisibility(View.GONE);
containerView.removeAllViews();
setShowDownloadButton(messageViewInfo);
}
代码示例来源:origin: GitLqr/LQRWeChat
private void hideAudioButton() {
mBtnAudio.setVisibility(View.GONE);
mEtContent.setVisibility(View.VISIBLE);
mIvAudio.setImageResource(R.mipmap.ic_cheat_voice);
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void initView() {
mBtnToolbarSend.setVisibility(View.VISIBLE);
mBtnToolbarSend.setText(UIUtils.getString(R.string.sure));
mBtnToolbarSend.setEnabled(false);
mHeaderView = View.inflate(this, R.layout.header_group_cheat, null);
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void initView() {
mBtnToolbarSend.setVisibility(View.VISIBLE);
if (TextUtils.isEmpty(mUserId)) {
finish();
}
}
代码示例来源:origin: WVector/AppUpdate
private void showInstallBtn(final File file) {
mNumberProgressBar.setVisibility(View.GONE);
mUpdateOkButton.setText("安装");
mUpdateOkButton.setVisibility(View.VISIBLE);
mUpdateOkButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
AppUpdateUtils.installApp(UpdateDialogFragment.this, file);
}
});
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void onTextChanged(CharSequence s, int start, int before, int count) {
if (mEtContent.getText().toString().trim().length() > 0) {
mBtnSend.setVisibility(View.VISIBLE);
mIvMore.setVisibility(View.GONE);
RongIMClient.getInstance().sendTypingStatus(mConversationType, mSessionId, TextMessage.class.getAnnotation(MessageTag.class).value());
} else {
mBtnSend.setVisibility(View.GONE);
mIvMore.setVisibility(View.VISIBLE);
}
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void initView() {
if (TextUtils.isEmpty(mFriendId)) {
finish();
return;
}
mBtnToolbarSend.setVisibility(View.VISIBLE);
mBtnToolbarSend.setText(UIUtils.getString(R.string.complete));
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void initView() {
if (TextUtils.isEmpty(mGroupId)) {
finish();
return;
}
mBtnToolbarSend.setVisibility(View.VISIBLE);
mBtnToolbarSend.setText(UIUtils.getString(R.string.save));
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void initView() {
if (TextUtils.isEmpty(mGroupId)) {
finish();
return;
}
mBtnToolbarSend.setText(UIUtils.getString(R.string.delete));
mBtnToolbarSend.setVisibility(View.VISIBLE);
mBtnToolbarSend.setBackgroundResource(R.drawable.shape_btn_delete);
mBtnToolbarSend.setEnabled(false);
}
代码示例来源:origin: k9mail/k-9
private void displayAttachmentInformation() {
viewButton = findViewById(R.id.view);
downloadButton = findViewById(R.id.download);
if (attachment.size > K9.MAX_ATTACHMENT_DOWNLOAD_SIZE) {
viewButton.setVisibility(View.GONE);
downloadButton.setVisibility(View.GONE);
}
viewButton.setOnClickListener(this);
downloadButton.setOnClickListener(this);
TextView attachmentName = findViewById(R.id.attachment_name);
attachmentName.setText(attachment.displayName);
setAttachmentSize(attachment.size);
refreshThumbnail();
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void initView() {
mBtnToolbarSend.setText(UIUtils.getString(R.string.save));
mBtnToolbarSend.setVisibility(View.VISIBLE);
UserInfo userInfo = DBManager.getInstance().getUserInfo(UserCache.getId());
if (userInfo != null)
mEtName.setText(userInfo.getName());
mEtName.setSelection(mEtName.getText().toString().trim().length());
}
代码示例来源:origin: yanzhenjie/NoHttp
@Override
public void setLocalFile(String filepath) {
Album.getAlbumConfig().getAlbumLoader().load(mIvImage, filepath);
mTvStatus.setText(R.string.body_status_un_upload);
mBtnCopy.setVisibility(View.GONE);
}
代码示例来源:origin: yanzhenjie/NoHttp
@Override
public void setRemoteFile(String filepath) {
Album.getAlbumConfig().getAlbumLoader().load(mIvImage, filepath);
mTvStatus.setText(R.string.body_status_upload_succeed);
mBtnCopy.setVisibility(View.VISIBLE);
}
}
代码示例来源:origin: TangoAgency/material-intro-screen
private void showMessageButton(final SlideFragment fragment) {
if (messageButton.getVisibility() != View.VISIBLE) {
messageButton.setVisibility(View.VISIBLE);
if (fragment.getActivity() != null) {
messageButton.startAnimation(AnimationUtils.loadAnimation(fragment.getActivity(), R.anim.fade_in));
}
}
}
}
代码示例来源:origin: GitLqr/LQRWeChat
@Override
public void initView() {
mBtnToolbarSend.setVisibility(View.VISIBLE);
setRlMapHeight(maxHeight);
mSensorManager = (SensorManager) getSystemService(SENSOR_SERVICE);
mOritationSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ORIENTATION);
mLocationManager = TencentLocationManager.getInstance(this);
mLocationRequest = TencentLocationRequest.create();
mTencentMap = mMap.getMap();
mTencentSearch = new TencentSearch(this);
}
内容来源于网络,如有侵权,请联系作者删除!