1. /Hello_word/res/layout/activity_main.xml

Graphical  Layout/activity_fullsreen.xml(layout/) 代码与设置界面互换!

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="@string/hello_world" />

<Button

android:id="@+id/button1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/textView1"

android:layout_centerHorizontal="true"

android:layout_marginTop="145dp"

android:text="Button" />

---------------------------------------------------------------------------------------------------------------

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="@string/hello_world" />

<Button

android:id="@+id/button1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_below="@+id/textView1"

android:layout_centerHorizontal="true"

android:layout_marginTop="145dp"

android:text="你知道的" />

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"

android:layout_width="match_parent"

android:layout_height="match_parent"

android:paddingBottom="@dimen/activity_vertical_margin"

android:paddingLeft="@dimen/activity_horizontal_margin"

android:paddingRight="@dimen/activity_horizontal_margin"

android:paddingTop="@dimen/activity_vertical_margin"

tools:context="com.example.test1.MainActivity" >

<TextView

android:id="@+id/textView1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:text="@string/hello_world" />

<Button

android:id="@+id/button1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignParentBottom="true"

android:layout_centerHorizontal="true"

android:layout_marginBottom="168dp"

android:hint="确定功能提示"

android:text="确定"

android:textStyle="bold" />

<TextView

android:id="@+id/textView2"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_alignLeft="@+id/editText1"

android:layout_alignParentLeft="true"

android:layout_alignParentRight="true"

android:layout_alignRight="@+id/button1"

android:layout_below="@+id/textView1"

android:layout_marginTop="59dp"

android:text="只读文本"

android:textSize="15pt"

android:textColor="#0092c7" />

<EditText

android:id="@+id/editText1"

android:layout_width="wrap_content"

android:layout_height="wrap_content"

android:layout_above="@+id/button1"

android:layout_centerHorizontal="true"

android:layout_marginBottom="55dp"

android:ems="10"

android:hint="删除完成后显示,提示功能"

android:text="文本框测试" >

<requestFocus />

</EditText>

</RelativeLayout>

______________________________________________________________________

最新文章

  1. selenium+python环境搭建
  2. window.open()读取本地图片简单使用总结
  3. [51NOD1090] 3个数和为0(水题,二分)
  4. Palindrome Number ---- LeetCode 009
  5. 优化UITableViewCell高度计算的那些事(RunLoop)
  6. HTML语义化标签(一)
  7. MVC学习笔记--IEnumerable的用法
  8. Jxl创建Excel文件和解析Excel文件
  9. PHP下载网页
  10. CSS 居中布局
  11. Thread.Sleep(0)妙用
  12. Remote Debugging (1)
  13. CF1082解题报告
  14. effective c++ 笔记 (18-22)
  15. Android之多种Bitmap效果
  16. Python初体验(一)—【配置环境变量】【变量】【input】【条件语句】【循环语句】
  17. TCP/IP 协议簇 端口 三次握手 四次挥手 11种状态集
  18. 今日头条、抖音、西瓜、火山、微视、陌陌等自媒体平台小视频批量下载工具v1.1.0(视频搬运福利)
  19. Eclipse下搭建Django环境
  20. 多线程编程(一)-Semaphore(信号量)的使用

热门文章

  1. Freetds 连接数据库问题
  2. ubuntu16.04 下 卸载CUDA9.1
  3. SVN cleanup 报错,清除svn的工作队列
  4. numpy.ndarray的赋值操作
  5. HDU 6318 - Swaps and Inversions - [离散化+树状数组求逆序数][杭电2018多校赛2]
  6. model方法取值总结
  7. IDA的头像
  8. sublime安装install package
  9. mysql union出错: &quot;Every derived table must have its own alias&quot;
  10. Distribution(F题)---第八届河南省程序设计大赛