EditText 和 Button 制作输入框
作者:
CPU_Easy | 来源:发表于
2018-11-21 18:46 被阅读0次<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<EditText
android:layout_width="0dp"
android:layout_height="wrap_content"
android:id="@+id/editText"
android:layout_weight="4"
android:hint="Input something..."
/>
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/button_1"
android:layout_weight="1"
android:text="Button 1"
/>
</LinearLayout>
效果:

EditText演示.jpg
文件结构:

文件结构
本文标题:EditText 和 Button 制作输入框
本文链接:https://www.haomeiwen.com/subject/esthqqtx.html
网友评论