摘要: 今天学习了ListView main.xml <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_w 阅读全文
posted @ 2023-03-09 21:48 代不动码 阅读(18) 评论(0) 推荐(0)
摘要: 今天学习了布局6ConstraintLayout 指导线 清除所有约束 推倒约束 阅读全文
posted @ 2023-03-09 19:34 代不动码 阅读(9) 评论(0) 推荐(0)
摘要: 今天学习了布局5GridLayout <?xml version="1.0" encoding="utf-8"?><GridLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width=" 阅读全文
posted @ 2023-03-08 12:20 代不动码 阅读(8) 评论(0) 推荐(0)
摘要: 今天学习了布局4TableLayout <?xml version="1.0" encoding="utf-8"?><TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width 阅读全文
posted @ 2023-03-07 21:07 代不动码 阅读(11) 评论(0) 推荐(0)
摘要: 今天学习了布局3FrameLayout <?xml version="1.0" encoding="utf-8"?><FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width 阅读全文
posted @ 2023-03-06 17:23 代不动码 阅读(13) 评论(0) 推荐(0)
摘要: 今天学习了布局2RelativeLayout <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout 阅读全文
posted @ 2023-03-06 13:23 代不动码 阅读(15) 评论(0) 推荐(0)
摘要: 今天学习了布局1LinearLayout android:orientation="vertical"> 布局中组件的排列方式 android:gravity="center_vertical" 控制组件所包含的子元素的对齐方式,可多个组合 android:layout_gravity="cente 阅读全文
posted @ 2023-03-06 09:08 代不动码 阅读(7) 评论(0) 推荐(0)
摘要: 今天学了控件9PopupWindow View popupView = getLayoutInflater().inflate(R.layout.dialog_view,null); PopupWindow popupWindow = new PopupWindow(popupView, ViewG 阅读全文
posted @ 2023-03-05 18:32 代不动码 阅读(8) 评论(0) 推荐(0)
摘要: 今天学习了控件8_AlertDialog View dialogView = getLayoutInflater().inflate(R.layout.dialog_view, null);AlertDialog.Builder builder=new AlertDialog.Builder(thi 阅读全文
posted @ 2023-03-05 18:31 代不动码 阅读(10) 评论(0) 推荐(0)
摘要: 今天学习了控件7Toolbar xml <?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_widt 阅读全文
posted @ 2023-03-01 23:24 代不动码 阅读(6) 评论(0) 推荐(0)