mDigits.setInputType(android.text.InputType.TYPE_NULL);//关闭软键盘

android:focusable="true"
android:focusableInTouchMode="true"//这个两个属性决定了编辑框的焦点去掉

<LinearLayout
android:id="@+id/contacts_input"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="invisible"
android:background="@drawable/dialbk"
android:focusable="true"
android:focusableInTouchMode="true"
>


<ImageButton
android:id="@+id/saveButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/btn_dial_save_xml"
android:contentDescription="@string/description_delete_button"
android:state_enabled="false"
android:layout_marginLeft="6dip"
android:layout_marginRight="6dip"
/>


<EditText
android:id="@+id/digits"
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_gravity="right|center"
android:layout_weight="1"
android:background="@drawable/dial_input_text_bg_xml"
android:contentDescription="@string/description_digits_edittext"
android:drawableLeft="@drawable/ic_calllog_call_active"
android:minWidth="140.0dip"
android:paddingLeft="13.0dip"
android:paddingRight="4.0dip"
android:scrollHorizontally="true"
android:drawablePadding="7dip"
android:singleLine="true"
android:textColor="@color/white"
android:textSize="22sp"
/>
<!-- </LinearLayout> -->


<ImageView
android:id="@+id/deleteButton"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/btn_dial_delete_xml"
android:contentDescription="@string/description_delete_button"
android:scaleType="centerCrop"
android:state_enabled="false"
android:layout_marginLeft="6dip"
android:layout_marginRight="6dip"/>
</LinearLayout>

更多相关文章

  1. API 23 widget.ImageView——属性分析
  2. API 23 widget.ProgressBar——属性分析
  3. mainfest文件中android属性
  4. EditText设置键盘操作
  5. Android布局属性全面剖析
  6. ProgressBar属性小结(转载)
  7. Android中attr自定义属性详解

随机推荐

  1. How to Implement Push Notifications fo
  2. Android消息处理探秘
  3. android sdcard文件存储 + 媒体库更新方
  4. 【入门篇】Android学习笔记——项目结构
  5. android >ToggleButton(开启/关闭) 控件
  6. Android简单短信发送示例
  7. Android 显示大图片
  8. Android SDcard目录文件操作
  9. android网络连接
  10. vs xamarin android 监听返回键退出程序