android.widget.TextView.setPressed()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.2k)|赞(0)|评价(0)|浏览(254)

本文整理了Java中android.widget.TextView.setPressed()方法的一些代码示例,展示了TextView.setPressed()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextView.setPressed()方法的具体详情如下:
包路径:android.widget.TextView
类名称:TextView
方法名:setPressed

TextView.setPressed介绍

暂无

代码示例

代码示例来源:origin: aa112901/remusic

bit1.setPressed(true);
  break;
case 128:
  bit2.setPressed(true);
  break;
case 192:
  bit3.setPressed(true);
  break;
case 256:
  bit256.setPressed(true);
  break;
case 320:
  bit320.setPressed(true);
  break;

代码示例来源:origin: fookwood/Launcher3

@Override
public void setPressed(boolean pressed) {
  super.setPressed(pressed);
  if (!mIgnorePressedStateChange) {
    updateIconState();
  }
}

代码示例来源:origin: klinker24/launcher3

@Override
public void setPressed(boolean pressed) {
  super.setPressed(pressed);
  if (!mIgnorePressedStateChange) {
    updateIconState();
  }
}

代码示例来源:origin: AriesHoo/UIWidget

@Override
  public void setPressed(boolean pressed) {
    super.setPressed(pressed);
    if (delegate != null && pressed) {
      delegate.init();
    }
  }
}

代码示例来源:origin: zhangliangming/HappyPlayer-AS

public void setPressed(boolean pressed) {
    isLoadColor = false;
    isPressed = pressed;
    invalidate();
    super.setPressed(pressed);
  }
}

代码示例来源:origin: zhangliangming/HappyPlayer-AS

public void setPressed(boolean pressed) {
    isLoadColor = false;
    isPressed = pressed;
    invalidate();
    super.setPressed(pressed);
  }
}

代码示例来源:origin: klinker24/Android-Blur-Launcher

@Override
public void setPressed(boolean pressed) {
  super.setPressed(pressed);
  if (!mIgnorePressedStateChange) {
    updateIconState();
  }
}

代码示例来源:origin: WeAreFairphone/FP2-Launcher

@Override
public void setPressed(boolean pressed) {
  super.setPressed(pressed);
  if (!mIgnorePressedStateChange) {
    updateIconState();
  }
}

代码示例来源:origin: stackoverflow.com

public boolean onTouch(View v, MotionEvent event)
 {
   TextView text = (TextView) findViewById(R.id.textview);
   ImageView image = (ImageView) findViewById(R.id.imageview);
   RelativeLayout layout = (RelativeLayout) findViewById(R.id.relativelayout);
   if (event.getAction() == android.view.MotionEvent.ACTION_DOWN)
   {
     layout.setBackgroundResource(R.color.background_pressed);
     text.setPressed(true);
     image.setPressed(true);
   } else if (event.getAction() == android.view.MotionEvent.ACTION_UP)
   {
     layout.setBackgroundResource(R._background);
     text.setPressed(false);
     image.setPressed(false);
   }
   return false;
 }

代码示例来源:origin: AriesHoo/UIWidget

@Override
public void setPressed(boolean pressed) {
  super.setPressed(pressed);
  delegate.getAlphaViewHelper().onPressedChanged(this, pressed);
}

代码示例来源:origin: com.albedinsky.android/ui-widget-text

/**
 */
@Override
public void setPressed(boolean pressed) {
  final boolean isPressed = isPressed();
  super.setPressed(pressed);
  if (!isPressed && pressed) onPressed();
  else if (isPressed) onReleased();
}

代码示例来源:origin: com.albedinsky.android/ui-widget-common

/**
 */
@Override
public void setPressed(boolean pressed) {
  final boolean isPressed = isPressed();
  super.setPressed(pressed);
  if (!isPressed && pressed) onPressed();
  else if (isPressed) onReleased();
}

代码示例来源:origin: com.albedinsky.android/ui

/**
 */
@Override
public void setPressed(boolean pressed) {
  final boolean isPressed = isPressed();
  super.setPressed(pressed);
  if (!isPressed && pressed) onPressed();
  else if (isPressed) onReleased();
}

代码示例来源:origin: fire3/sailorcast

@Override
  public void onClick(View v) {
    mVideoClose.requestFocus();
    mVideoClose.setPressed(true);
    mVideoTitle.requestFocus();
    mVideoTitle.setPressed(true);
    finish();
  }
});

相关文章

TextView类方法