touch mode 是用户在交互过程中的一种视图模式。当用户touch手机屏幕执行操作的时候就
会触发该模式。而在非touch 模式下,则触发的是trackball 模式, navigation 模式or keyboard
navigation 模式,这些模式发生的情况比如,按功能键,键盘等等。
touch mode下,没有selection foucus。
在touch mode,ListView.getSelectedItemPosition()返回值为INVALIDATE_POSITION
我们应该使用Click listener(setOnItemClickListener)或者choice mode(setChoiceMode
(int))
View.setFocusableInTouchMode()若为true,view在touch mode下可以接受focus。
focusable在touch mode
如果,用户在touch mode触摸的widget为focusable,则该widget可以获得焦点,否则,该
widget不能获得焦点。
备注:listview修改listview选中项的状态,背景,获取焦点等等
可以通过自定义adapter实现
(1)自定义adapter,提供方法setSelectedPosition(int positon)
(2)在listview的onListItemClick()中设置选中项position,(即调用etSelectedPosition方法);调用adapter.notifiyDataSetChange()
(3)在adapter中getView中修改,当position等于设置的选中position时,对item进行自定义修改(修改背景颜色,添加跑马灯效果等等)
分享到:
相关推荐
使用的方式也非常简单,架包的源码也一同包含在内,侧滑滑动区域也可以设置自定义的模式,如menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN);则设置为边缘滑动模式,即只有滑动边缘的时候才会启动菜单,...
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); menu.setShadowWidthRes(R.dimen.shadow_width); menu.setShadowDrawable(R.drawable.shadow); menu.setBehindOffsetRes(R.dimen.slidingmenu_...
menu.setTouchModeAbove(SlidingMenu.TOUCHMODE_FULLSCREEN); menu.setShadowWidthRes(R.dimen.shadow_width); menu.setShadowDrawable(R.drawable.shadow); // 设置滑动菜单视图的宽度 menu....
Fixed : Enabling touch mode in none selection mode in TTMSFMXGrid Fixed : Issue with OnClick / OnDblClick in instrumentation components Fixed : Issue with scrolling and selecting value in iOS in ...
Touch mode Gyroscope mode DisplayMode Glass mode Eye mode Update v1.0(2017-7-31) v1.1(2017-8-22) Remove Carbon and use native SDK UI BaseOn IJKPlayer MD360player4Android Glide StatusBarUtil You...
BifacialView Gradle allprojects { repositories { ... } } dependencies { ...To install the picture ...TouchMode ALL - reacts to the touch in any part of view. DELIMITER - reacts to a touch in the deli
当设置slidingMenu.setTouchModeBehind(SlidingMenu.TOUCHMODE_FULLSCREEN);后,侧滑菜单内容点击事件被屏蔽。现已打成Jar包供大家使用。现在已经实现滑动打开,滑动收起的炫酷效果。
合泰HT66F0185单片机的HT66F0185_Touch_UART读写函数处理。
经过本人的不懈努力,终于修改了slidingmenu的一个Bug,当设置slidingMenu.setTouchModeBehind(SlidingMenu.TOUCHMODE_FULLSCREEN);后,侧滑菜单内容点击事件被屏蔽。现已打成Jar包供大家使用。现在已经实现滑动打开...
Flash BIOS update - Flash from Operating System version for IdeaPad Z400/Z500/Z400 Touch/Z500 Touch/P400 Touch/P500/P500 Touch, Erazer Z400/Z400 Touch/Z500/Z500 Touch Version 71CN51WW(V1.21) ...
原创资源 1.Changing su password: 1.1 Method1:Enter su and then type in: sudo passwd Method2:Enter su and then... 2.3tyoe in:touch , you create a file 3.File Directory:... ... 5.Terminate a process:...
touchkey, linear and rotary touch sensors • 16x timers: 2x 16-bit advanced motor-control, 2x 32-bit and 5x 16-bit general purpose, 2x 16- bit basic, 2x low-power 16-bit timers (available in Stop mode...
The IoT gateway mode also supports touch panel and Bluetooth Low Energy, Zigbee/Z-Wave and Sub-1 GHz RF for smart home control. In IoT device mode, MT7688 supports eMMC, SD-XC and USB 2.0 in addition...
WinCE下的触控屏驱动程序源代码(MS提供) -------------------------------------------------------------------------------- 时间:2003-1-8... TouchPanelSetMode Sets mode information for a touch screen device.
义隆电子股份有限公司新推出eFinger Touch Sensor控制器eKT2101与eKT4306系列产品,已有众多厂商,包括欧美咖啡机知名品牌与运动器材表头厂商,陆续使用,并量产交货。 eKT2101系列最多支持18 traces的触摸按键,...
lumixproto Lumix GX80 wifi协议反向 满足相机并完成配对 得到一些信息/cam.cgi?...mode=getsetting&type=touch_type /cam.cgi?mode=getstate /cam.cgi?mode=camcmd&value=playmode 开始视频流/cam.cgi?mode=star
DSelectorBryant 单选滚动选择器 模组 allprojects { repositories { google() jcenter() maven { url ' ... } } ... public class MainActivity extends AppCompatActivity { DSelectorPopup dSelectorPopup;...
public class Touch extends Activity implements OnTouchListener, OnClickListener { private static final String TAG = "Touch" ; // These matrices will be used to move and zoom image Matrix matrix = ...
msp430g2xx3_pinosc_03.c Capacitive Touch, Pin Oscillator Method, 4-buttons, ACLK for CCR msp430g2xx3_pinosc_04.c Capacitive Touch, Pin Oscillator Method, 8 buttons, UART msp430g2xx3_ta_01.c Timer_A, ...
* Boot into CWM Touch, TWRP or Stock Recovery without Flashing it * Boot or Flash .img Files directly from your PC * Install a single apk or multiple apk’s to your phone * Push Files from your PC to ...