scroller

水平滑动自带删除当前列表项功能的ListView

倾然丶 夕夏残阳落幕 提交于 2019-12-04 18:22:49
package com.hjw.removelistview; import android.content.Context; import android.util.AttributeSet; import android.util.DisplayMetrics; import android.util.Log; import android.view.MotionEvent; import android.view.View; import android.view.WindowManager; import android.view.animation.AccelerateDecelerateInterpolator; import android.widget.ListView; import android.widget.Scroller; /** * 水平滑动自带删除当前列表项功能的ListView * * @author 何佳伟 * */ public class RemoveListView extends ListView { /** * 滑动类 */ private Scroller scroller; /** * 滑动删除的列表项 */ private View item; /** * 手指滑动的状态 */ private boolean isScroller

Scroller background not transparent in NSScrollView

余生颓废 提交于 2019-12-03 14:44:41
Hi! I am using an NSScrollView which has a view-based NSTableView. Whenever the table adds a table cell the scrollers show up which is fine until you see that the scrollers don't have a transparent background. For some reason it's background is white as you can see on the image. I used IB to set up the NSScrollView and NSTableView and I cannot find any option where I can disable the scroller's background. Any ideas what may have cause this? Update: Settings for my NSScrollView in Xcode My only suggestion is to make sure that your NSScrollers are of the default style, or set to a class that

How to create continuous scrolling content using Jquery .animate() function? [duplicate]

你离开我真会死。 提交于 2019-12-03 13:31:14
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Implementing circular scroller in jquery I want to create vertical scroller, which will work exactly like marquee. But I want it to be continuous, like when we use marquee the whole content comes back only after it completely goes up, but I want it to be continuous. this is what I have... http://jsfiddle.net/JWfaf/1/ I want only in one direction and keep on scrolling. I hope I have cleared what I want to achieve

Scroller background not transparent in NSScrollView

匿名 (未验证) 提交于 2019-12-03 02:59:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Scroller http://f.cl.ly/items/1b1v2D2X1D092k2R1C0i/Scrollbar.png Hi! I am using an NSScrollView which has a view-based NSTableView. Whenever the table adds a table cell the scrollers show up which is fine until you see that the scrollers don't have a transparent background. For some reason it's background is white as you can see on the image. I used IB to set up the NSScrollView and NSTableView and I cannot find any option where I can disable the scroller's background. Any ideas what may have cause this? Update: Settings for my NSScrollView

Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: [duplicate]

匿名 (未验证) 提交于 2019-12-03 02:50:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This question already has an answer here: How to select JSF components using jQuery? 4 answers i have an txtBox and its id is : beginDateTxt but jsf makes it j_idt8:beginDateTxt in jquery i try to reach it like that <script type="text/javascript"> $(document).ready(function() { $(function() { $("#j_idt8:beginDateTxt").mobiscroll().date({ theme: 'android-ics light', mode:'scroller', display: 'bottom' }); }); }); </script> but i get below error: Uncaught Error: Syntax error, unrecognized expression: unsupported pseudo: beginDateTxt why? 回答1:

Android Scroller完全解析,关于Scroller你所需知道的一切

好久不见. 提交于 2019-12-02 17:44:50
转载请注明出处: http://blog.csdn.net/guolin_blog/article/details/48719871 2016大家新年好!这是今年的第一篇文章,那么应CSDN工作人员的建议,为了能给大家带来更好的阅读体验,我也是将博客换成了宽屏版。另外,作为一个对新鲜事物从来后知后觉的人,我终于也在新的一年里改用MarkDown编辑器来写博客了,希望大家在我的博客里也能体验到新年新的气象。 我写博客的题材很多时候取决于平时大家问的问题,最近一段时间有不少朋友都问到ViewPager是怎么实现的。那ViewPager相信每个人都再熟悉不过了,因此它实在是太常用了,我们可以借助ViewPager来轻松完成页面之间的滑动切换效果,但是如果问到它是如何实现的话,我感觉大部分人还是比较陌生的, 为此我也是做了一番功课。其实说到ViewPager最基本的实现原理主要就是两部分内容,一个是事件分发,一个是Scroller,那么对于事件分发,其实我在很早之前就已经写过了相关的内容,感兴趣的朋友可以去阅读 Android事件分发机制完全解析,带你从源码的角度彻底理解 ,但是对于Scroller我还从来没有讲过,因此本篇文章我们就先来学习一下Scroller的用法,并结合事件分发和Scroller来实现一个简易版的ViewPager。 Scroller是一个专门用于处理滚动效果的工具类

Android Scroller详解,实现仿QQ列表item侧滑删除功能

回眸只為那壹抹淺笑 提交于 2019-12-02 13:09:16
概述 Scroller,主要用于实现View的滚动。这个滚动主要是指平滑滚动 要想通过Scroller实现滑动,只要实现以下步骤即可: 创建一个Scroller对象,调用startScroll方法,然后调用invalidate()方法重新绘制View 重写View的computeScroll方法 在computeScroll方法中,调用Scroller的computeScrollOffset方法,该方法用于判断滑动是否结束 如果滑动没有结束,通过调用scrollTo方法和postInvalidate方法完成滑动 简单代码实现如下: //1、启动滑动 public void scroll (){ Scroller.startScroll(getScrollX(), getScrollY(), offsetX, offsetY); invalidate(); } //实现具体的滑动逻辑 public void computeScroll () { super .computeScroll(); if (mScroller.computeScrollOffset()) { scrollTo(mScroller.getCurrX(), mScroller.getCurrY()); postInvalidate(); } } scrollTo和scrollBy介绍

Android 向右滑动销毁(finish)Activity, 随着手势的滑动而滑动的效果

不羁岁月 提交于 2019-12-02 12:20:39
转载请注明本文出自xiaanming的博客( http://blog.csdn.net/xiaanming/article/details/20934541 ),请尊重他人的辛勤劳动成果,谢谢! 今天给大家带来一个向右滑动销毁Activity的效果,Activtiy随着手指的移动而移动,该效果在Android应用中还是比较少见的,在IOS中就比较常见了,例如“网易新闻” ,"美食杰" , "淘宝"等应用采用此效果,而Android应用中“知乎”采用的也是这种滑动切换Activity的效果, 不过我发现“淘宝”并没有随着手势的移动而移动,只是捕捉到滑动手势,然后产生平滑切换界面的动画效果,这个在Android中还是很好实现的, 网上很多滑动切换Activity的Demo貌似都是这种效果的吧,如果要实现类似“网易新闻”的随手势的滑动而滑动,似乎就要复杂一些了,我之前在IOS中看到"网易新闻"的这种效果就很感兴趣,然后群里也有朋友问我怎么实现类似“知乎”这个应用的滑动切换的效果,我也特意去下了一个“知乎”,在之前的实现中我遇到了一些瓶颈,没有实现出来就搁置了在那里,今天无意中看到给Activity设置透明的背景,于是乎我恍然大悟,真是灵感来源于瞬间,不能强求啊,然后自己就将此效果实现了出来,给大家分享一下,希望给有此需求的你一点点帮助。

移动端日期选择插件

纵然是瞬间 提交于 2019-11-30 01:17:00
index.html <!DOCTYPE html> <html lang="zh-cn"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"> <title>rolldate demo</title> <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> <style type="text/css"> h1{font-size:30px;} .form-control[readonly]{background:none;} @media(max-width:414px){.form-control{font-size:12px;}} @media(max-width:360px){.form-control{font-size:10px;padding:0 5px;}} @media(max-width:320px){.col-xs-6 {padding:0 5px;}} <

Android: Scroller Animation?

 ̄綄美尐妖づ 提交于 2019-11-28 17:18:33
问题 I'm a newbie in Android development, and I would just like to know a little bit about the Scroller widget (android.widget.Scroller). How does it animate the view? Can the Animation object, if it exists, be accessed? If so, how? I've read the source code, but could find no clues, or maybe I'm too new? I just wanted to do some operations after a Scroller finishes scrolling, something like m_scroller.getAnimation().setAnimationListener(...); 回答1: The Scroller widget doesn't actually do much of