本帖最后由 liyilike 于 2013-04-23 16:31:26 编辑

解决方案 »

  1.   

    android:ellipsize是为了应对文字太长的时候的对应方法。
    android:ellipsize="start"        省略号在开头        
    android:ellipsize="middle"       省略号在中间        
    android:ellipsize="end"          省略号在结尾        
    android:ellipsize="marquee"      跑马灯显示android:focusable="true" 表示这个view有获得焦点的资格。android:focusableInTouchMode="true"属性,可以使ItemView在Touch mode 下获取焦点。
      

  2.   

    android:focusableInTouchMode="true"
    这个属性一般是在listview等嵌套的view中,使子view可以获得焦点的。
      

  3.   

    问一下Touch mode是什么,2楼说的touch mode不太懂?
      

  4.   

    没用到过。所以查了下api。
    api这样解释的:
    Boolean that controls whether a view can take focus while in touch mode. If this is true for a view, that view can gain focus when clicked on, and can keep focus if another view is clicked on that doesn't have this attribute set to true.设置一个view是否能在touch模式下获取焦点。如果设置为true,当点击这个view时能获取焦点,如果别的焦点没有对这个属性(focusableInTouchMode)设置为true的话,这个view可以继续保持焦点。
      

  5.   

    http://developer.android.com/reference/android/view/View.html#attr_android:focusableInTouchMode