随笔分类 -  Android

摘要:@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.main, menu); ... 阅读全文
posted @ 2019-11-03 17:11 thomas_blog 阅读(443) 评论(0) 推荐(0) 编辑
摘要:@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present.// getMenuInflater().inflate(R.menu.main, menu); ... 阅读全文
posted @ 2019-11-03 15:57 thomas_blog 阅读(346) 评论(0) 推荐(0) 编辑
摘要:属性介绍stretchColumns:列被拉伸shrinkColumns:列被收缩collapseColumns:列被隐藏举例测试 ... 阅读全文
posted @ 2019-11-03 14:36 thomas_blog 阅读(1141) 评论(0) 推荐(0) 编辑
摘要:android:layout_above="@+id/main"android:layout_below="@+id/main"android:layout_toLeftOf="@+id/main"android:layout_toRightOf="@+id/main" 阅读全文
posted @ 2019-11-01 19:48 thomas_blog 阅读(224) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientat 阅读全文
posted @ 2019-11-01 16:06 thomas_blog 阅读(948) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" an 阅读全文
posted @ 2019-11-01 14:59 thomas_blog 阅读(1258) 评论(0) 推荐(0) 编辑
摘要:垂直布局 vertical 水平布局 horizontal 阅读全文
posted @ 2019-11-01 13:26 thomas_blog 阅读(291) 评论(0) 推荐(0) 编辑
摘要:wrap_contentlayout_marginToplayout_marginLeft paddingLeftpaddinggravity 阅读全文
posted @ 2019-10-31 17:38 thomas_blog 阅读(251) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示