布局文件

<LinearLayout 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:background="@android:color/white" android:orientation="vertical" >

<RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content"> <EditText android:id="@+id/bookname" android:layout_width="fill_parent" android:layout_height="50dp" android:layout_alignBottom="@+id/btn" android:layout_marginRight="70dp" android:background="@android:color/white" android:ems="10" android:hint="enter new note" android:textColorHint="#238745" /> <Button android:id="@+id/btn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/btn" android:text="add" android:layout_alignParentTop="true" android:layout_alignParentRight="true" /> </RelativeLayout> <ListView android:id="@+id/bookslist" android:layout_width="match_parent" android:layout_height="wrap_content" > </ListView>

</LinearLayout>

更多相关文章

  1. Android,visibility属性
  2. mainfest文件中android属性
  3. Failed to fetch URL https://dl-ssl.google.com/android/reposi
  4. Android(安卓)单选按钮Radio的使用
  5. Android的数据库--sqlite(一)
  6. Android(安卓)读取和保存文件(手机内置存储器)
  7. Android控件及API说明(三)
  8. android系统定制从听说到入门二
  9. Android第一行代码笔记

随机推荐

  1. 如何使用Angular.js从json文件中使用id获
  2. 在批处理文件中使用JSMin
  3. 前端笔记之JavaScript(十)深入JavaScript节
  4. Dojo:不能在AccordionContainer.js中读取
  5. 可以访问Stackoverflow的自动建议标记系
  6. JQuery系列(7) - JQuery最佳实践
  7. 在HTML上绘制画布并在屏幕大小上保留Aspe
  8. 有没有办法阻止使用类似Firebug的工具在
  9. Javascript Ajax Call总是返回readyState
  10. 屏蔽标签的href跳转功能