2020年3月6日

摘要: <TextView android:id="@+id/textview_set" android:layout_width="match_parent" android:layout_height="wrap_content" android:singleLine="true" android:el 阅读全文
posted @ 2020-03-06 16:33 带镐伤的土豆 阅读(140) 评论(0) 推荐(0) 编辑
摘要: Android从相册选取视频 1. /** * 从相册中选择视频 */ private void choiceVideo() { Intent i = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Video.Media.EXT 阅读全文
posted @ 2020-03-06 16:20 带镐伤的土豆 阅读(887) 评论(0) 推荐(0) 编辑
摘要: 1.微信分享 https://blog.csdn.net/baidu_35559769/article/details/82497289 2.android 打造真正的下拉刷新上拉加载recyclerview(一) http://blog.csdn.net/anyfive/article/detai 阅读全文
posted @ 2020-03-06 08:37 带镐伤的土豆 阅读(98) 评论(0) 推荐(0) 编辑

2020年1月11日

摘要: public class LuckyDrawClickActivity extends BaseActivity<LuckyDrawClickPresenter> implements LuckyDrawClickContract.View { private WebView webView; pr 阅读全文
posted @ 2020-01-11 11:19 带镐伤的土豆 阅读(164) 评论(0) 推荐(0) 编辑

2019年12月26日

摘要: <shape xmlns:android="http://schemas.android.com/apk/res/android"> <corners android:radius="2dp" /> <solid android:color="@color/c100" /> <stroke andr 阅读全文
posted @ 2019-12-26 16:44 带镐伤的土豆 阅读(132) 评论(0) 推荐(0) 编辑

2019年12月25日

摘要: 1111111111111111111 前台代码(activity_main.xml): <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/an 阅读全文
posted @ 2019-12-25 15:57 带镐伤的土豆 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 第二步:获取layoutInflater对象第三步:调用inflater()方法获取View对象第四步:调用Builder对象的setView()方法设置View第五步:获取输入内容或者监听事件等public class MainActivity extends AppCompatActivity 阅读全文
posted @ 2019-12-25 13:56 带镐伤的土豆 阅读(125) 评论(0) 推荐(0) 编辑

2019年12月17日

摘要: //引用依赖 compile 'com.android.support:design:27.1.1'//代码 public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle 阅读全文
posted @ 2019-12-17 20:48 带镐伤的土豆 阅读(2835) 评论(0) 推荐(0) 编辑
摘要: <?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" android:useLevel="tr 阅读全文
posted @ 2019-12-17 11:31 带镐伤的土豆 阅读(151) 评论(0) 推荐(0) 编辑

2019年12月7日

摘要: layoutContainerPeople.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { //关闭键盘 InputMethodUtil.closeIfNeeded(Obj 阅读全文
posted @ 2019-12-07 14:01 带镐伤的土豆 阅读(148) 评论(0) 推荐(0) 编辑

导航