(1)让EditText无法点击

解决办法:

将EditText中设置三个属性就行了
android:focusable="false"
android:focusableInTouchMode="false"
android:clickable="false"

如下:

<EditText
android:id="@+id/thhxq_eidt_shuoming"
android:layout_width="match_parent"
android:layout_height="180dp"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginTop="5dp"
android:background="@drawable/shape_rec_little"
android:gravity="left|top"
android:focusable="false"
android:focusableInTouchMode="false"
android:clickable="false"

android:paddingLeft="5dp"
android:paddingTop="5dp" />

(2)让RatingBar无法点击

ratingbar.setEnable(false);



更多相关文章

  1. android Property Animation 属性动画详解
  2. 探讨相对布局的重要特性和属性
  3. Android 的系统属性(SystemProperties)设置分析
  4. android 组件,xml布局中属性详解
  5. [置顶] android:configChanges属性

随机推荐

  1. android下的MVP架构
  2. Android之Adapter用法总结
  3. 深入解析Android关机
  4. Android中利用GridView实现水平和垂直均
  5. Android初学者学习之Android(安卓)屏幕适
  6. Android(安卓)Eclipse关联 android API d
  7. android - AsyncTask的使用
  8. android中AVD的使用
  9. mysql5.6及以下版本如何查询数据库里的js
  10. 解决Mysql5.7中文乱码的问题