标签:idt hint schema edittext contex ext out height context
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.example.a01.guangbo.MainActivity">
<EditText
android:id="@+id/et_ipnumber"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:hint="input"
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:onClick="setIP"
android:layout_below="@+id/et_ipnumber"
android:layout_centerHorizontal="true"
android:text="设置IP号码"/>
</RelativeLayout>
标签:idt hint schema edittext contex ext out height context
原文地址:http://www.cnblogs.com/yang11366/p/7077343.html