Code example for View

Methods: getContentDescription

0
    /** 
     * {@inheritDoc} 
     */ 
    @Override 
    public boolean onLongClick(final View view) {
        if (TextUtils.isEmpty(view.getContentDescription())) {
            return false; 
        } else { 
            ApolloUtils.showCheatSheet(view);
            return true; 
        } 
    } 
 
    /** 
     * Sets the correct drawable for playback. 
     */ 
    public void updateState() { 
        if (MusicUtils.isPlaying()) { 
            setContentDescription(getResources().getString(R.string.accessibility_pause));
            setImageDrawable(mResources.getDrawable(PAUSE));
Experience pair programming with AI  Get Codota for Java