码迷,mamicode.com
首页 >  
搜索关键字:layout_height    ( 604个结果
SMS消息传递
<Button android:id="@+id/send" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="SendSMS" android:onClick="onClick"/>publicvoidonClick(Viewview){ sendSMS("5556","Hello..."); Toast.makeText(this,"hello",Toast.LENGTH..
分类:其他好文   时间:2017-02-09 23:59:48    阅读次数:257
RecyclerView+FloatingActionButton应用
一.效果图 二.实现步骤 1.XML布局-添加依赖 1 <LinearLayout 2 android:id="@+id/layout" 3 android:layout_width="match_parent" 4 android:layout_height="wrap_content" 5 an ...
分类:其他好文   时间:2017-02-09 23:43:53    阅读次数:1507
带删除按钮的EditText
在使用输入框的时候,常常需要在输入框后带有一键清除输入内容的按钮。采用自定义View的方式是复用性较高的方法。另一方面也可以采用控件“控件+监听”的较为简单的方法来实现。 布局文件: <LinearLayout android:layout_width="match_parent" android:layout_height="..
分类:其他好文   时间:2017-02-09 16:28:30    阅读次数:123
android include进来的组件 调用其子元素
include标签包裹着一个可复用的布局: <include layout="@layout/footer_detail" android:id="@+id/footer" android:layout_width="match_parent" android:layout_height="wrap ...
分类:移动开发   时间:2016-12-30 18:48:23    阅读次数:200
Android中Service通信(一)——启动Service并传递数据
启动Service并传递数据的小实例(通过外界与服务进行通信): 1、activity_main.xml: <EditText android:layout_width="match_parent" android:layout_height="wrap_content" android:text= ...
分类:移动开发   时间:2016-12-22 11:53:53    阅读次数:314
android的ViewFlipper
activity_main.xml<LinearLayoutxmlns: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:orientation="vertical" > <V..
分类:移动开发   时间:2016-12-15 01:22:10    阅读次数:245
android的GridView和Gallery
GridView:activity_main.xml<RelativeLayoutxmlns: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/acti..
分类:移动开发   时间:2016-12-14 22:35:00    阅读次数:421
android的ExpandableListView
activity_main.xml<RelativeLayoutxmlns: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_vert..
分类:移动开发   时间:2016-12-14 22:27:45    阅读次数:289
android的ImageSwitcher和TextSwitcher
ImageSwitcher:activity_main.xml<RelativeLayoutxmlns: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="@dime..
分类:移动开发   时间:2016-12-14 22:14:30    阅读次数:212
Android 中使用MediaRecorder实现视频录制功能
设置视频录制的简易界面<SurfaceView android:id="@+id/surface" android:layout_width="match_parent" android:layout_height="match_parent" /> <LinearLayout android:la ...
分类:移动开发   时间:2016-12-14 19:12:31    阅读次数:308
604条   上一页 1 ... 8 9 10 11 12 ... 61 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!