activity_chat.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width ...
分类:
其他好文 时间:
2019-01-09 13:36:58
阅读次数:
139
制作一个音乐播放器: 实现的功能: 实现播放,暂停,停止,播放上一首,下一首功能 显示播放列表 至少可以播放3首歌曲 界面截图: 关键代码: 列表显示: <ListView android:layout_width="wrap_content" android:layout_height="wrap ...
分类:
其他好文 时间:
2018-12-14 17:34:21
阅读次数:
169
一、ProgressBar <ProgressBar android:id="@+id/progress_bar" android:layout_width="match_parent" android:layout_height="wrap_content" /> int progress = p ...
分类:
移动开发 时间:
2018-11-28 12:19:47
阅读次数:
240
##常用控件 所有的安卓控件都需要指定 layout_width 和 layout_height 都具有visibility属性 TextView 上面的TextView中有下述几个属性: android:id 给当前控件定义了一个**唯一**标识符 android:layout_width="ma... ...
分类:
移动开发 时间:
2018-11-26 17:18:39
阅读次数:
175
item.xml文件<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_c ...
分类:
移动开发 时间:
2018-11-19 14:11:21
阅读次数:
159
常用属性 id:控件唯一属性 android:id="@+id/ll_1" layout_width:宽度 layout_height:高度 android:layout_width="300dp" 固定宽度和高度 android:layout_height="300dp" android:layo ...
分类:
其他好文 时间:
2018-11-05 11:17:13
阅读次数:
156
开发中用到了LeankCanary,在一个简单的页面中(例如:仅仅包含Edittext),也会导致内训泄漏,为此,我在网上找了大量资料,最终解决。例如一个布局:<LinearLayoutandroid:layout_width="match_parent"android:layout_height="match_parent"android:focus
分类:
移动开发 时间:
2018-11-02 11:13:49
阅读次数:
501
MainActivity.xml: <Button android:id="@+id/btnGo" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Button Go" an ...
分类:
移动开发 时间:
2018-10-02 20:28:44
阅读次数:
792
做一个如图所示的布局。 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="matc ...
分类:
其他好文 时间:
2018-08-03 01:05:30
阅读次数:
180
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" andr ...
分类:
移动开发 时间:
2018-08-03 00:53:47
阅读次数:
212