摘要:
1、编写主界面,activity_main.xml: 使用总线性布局,在总线性布局里包含了一个ListView控件和另一个LinearLayout。 在垂直方向上,LinearLayout按照wrap_content来计算,剩下的空间是ListView控件的,( android:layout_wei 阅读全文
摘要:
1、在布局中加入ListView <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width= 阅读全文