本文整理了Java中android.widget.ImageView.bringToFront()
方法的一些代码示例,展示了ImageView.bringToFront()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ImageView.bringToFront()
方法的具体详情如下:
包路径:android.widget.ImageView
类名称:ImageView
方法名:bringToFront
暂无
代码示例来源:origin: stackoverflow.com
ImageView yourImageView = (ImageView)findViewById(R.id.rev_arrow);
yourImageView.bringToFront();
代码示例来源:origin: stackoverflow.com
ImageView m=(ImageView)findViewById(R.id.image);
m.bringToFront();
代码示例来源:origin: stackoverflow.com
ImageView captureButton = (ImageView) findViewById(R.id.button_capture);
captureButton.bringToFront();
代码示例来源:origin: stackoverflow.com
ImageView drawable= (ImageView) findViewById(R.id.viewOnMap);
drawable.setVisibility(View.VISIBLE);
drawable.bringToFront();
代码示例来源:origin: stackoverflow.com
public class Menu extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_menu);
ImageView imgview = (ImageView) findViewById(R.id.table);
imgview.bringToFront();
imgview.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent myIntent = new Intent(Menu.this, Options.class);
startActivity(myIntent);
}
});
}
}
代码示例来源:origin: stackoverflow.com
public static void setLoaderVisible(ImageView loader)
{
loader.setImageResource(R.drawable.loading_animation);
loader.setVisibility(View.VISIBLE);
loader.bringToFront();
final AnimationDrawable anim = (AnimationDrawable) loader.getDrawable();
loader.post(new Runnable() {
@Override
public void run() {
anim.start();
}
});
}
代码示例来源:origin: stackoverflow.com
@Override
protected void onResume(){
super.onResume();
camera = Camera.open();
// We resumed so lock the camera
Camera.Parameters params = camera.getParameters();
params.setFlashMode(Parameters.FLASH_MODE_ON);
//params.setFocusMode(Parameters.FOCUS_MODE_AUTO);
//params.setWhiteBalance(Parameters.WHITE_BALANCE_AUTO);
params.setJpegQuality(100);
camera.setParameters(params);
ImageView overlay = (ImageView) findViewById(R.id.ImageView01);
overlay.bringToFront();
}
代码示例来源:origin: stackoverflow.com
imageView4.setOnTouchListener(new Touch(PutPhoto.this));
imageView4.setVisibility(View.GONE);
imageView3.bringToFront();
imageView4.setVisibility(View.VISIBLE);
代码示例来源:origin: marzika/Snapprefs
private static void showStealthToast(ToastType type) {
if (Preferences.getLicence() < 2 || statusDrawable == null)
return;
final int offset = 20;
final boolean longLength = Preferences.getInt(Prefs.TOAST_LENGTH) == Preferences.TOAST_LENGTH_LONG;
if (lastToastType == null || type != lastToastType) {
lastToastType = type;
statusDrawable.setColorFilter(new
PorterDuffColorFilter(type.color, PorterDuff.Mode.MULTIPLY));
}
final ImageView view = new ImageView(HookMethods.SnapContext);
view.setImageDrawable(statusDrawable);
view.bringToFront();
final int horizontalPosition = Preferences.getBool(Prefs.BUTTON_POSITION) ? Gravity.END : Gravity.START;
HookMethods.SnapContext.runOnUiThread(new Runnable() {
@Override
public void run() {
Toast statusToast = new Toast(HookMethods.SnapContext);
statusToast.setView(view);
statusToast.setGravity(Gravity.BOTTOM | horizontalPosition, offset, offset);
statusToast.setDuration(longLength ? Toast.LENGTH_LONG : Toast.LENGTH_SHORT);
statusToast.show();
}
});
}
代码示例来源:origin: stackoverflow.com
v1.animate().alpha(0f).setDuration(2000);
v2.animate().alpha(1f).setDuration(2000);
v2.bringToFront();
代码示例来源:origin: EzequielAdrianM/Camera2Vision
ivAutoFocus.setTranslationY(autoFocusY);
ivAutoFocus.setVisibility(View.VISIBLE);
ivAutoFocus.bringToFront();
if(useCamera2) {
if(mCamera2Source != null) {
代码示例来源:origin: stackoverflow.com
leftThumb.bringToFront();
return true;
}else if (event.getAction() == MotionEvent.ACTION_MOVE ) {
rightThumb.bringToFront();
return true;
}else if (event.getAction() == MotionEvent.ACTION_MOVE) {
代码示例来源:origin: f2prateek/device-frame-generator
@Override public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
picasso.load(getResourceIdentifierForDrawable(getActivity(), device.getThumbnailResourceName()))
.fit()
.centerInside()
.into(deviceThumbnailText);
deviceDefaultText.bringToFront();
deviceDefaultText.setImageResource(
isDefault() ? R.drawable.ic_action_star_selected : R.drawable.ic_action_star);
deviceSizeText.setText(device.physicalSize() + "\" @ " + device.density());
deviceNameText.setText(device.name());
deviceResolutionText.setText(device.realSize().x() + "x" + device.realSize().y());
}
代码示例来源:origin: TobiasBielefeld/Simple-Solitaire
/**
* Sets the size of the highlighting and moves it behin the cards.
*
* @param card The card on the stack to highlight
*/
public void set(GameManager gm, Card card) {
Stack stack = card.getStack();
padding = (int) (Card.width * 0.25);
width = Card.width + padding;
height = (int) (stack.getTopCard().getY() + Card.height - card.getY() + padding);
gm.highlight.setLayoutParams(new RelativeLayout.LayoutParams(width, height));
gm.highlight.setX(card.getX() - padding / 2);
gm.highlight.setY(card.getY() - padding / 2);
gm.highlight.setVisibility(View.VISIBLE);
gm.highlight.bringToFront();
for (int i = card.getIndexOnStack(); i < stack.getSize(); i++) {
stack.getCard(i).bringToFront();
}
moveStarted = false;
}
代码示例来源:origin: msayan/star-dns-changer
private void initViews() {
toolbar.setTitle("");
setSupportActionBar(toolbar);
logo.bringToFront();
logo.requestLayout();
logo.invalidate();
内容来源于网络,如有侵权,请联系作者删除!