01 2021 档案

摘要:Fragment四种跳转方式 从同一个Activiy的一个Fragment跳转到另外一个Fragment从一个Activity的Fragment跳转到另外一个Activity从一个Activity跳转到另外一个Activity的Fragment上从一个Activity的Fragment跳转到另外一个 阅读全文

posted @ 2021-01-31 13:37 ***Pepsi*** 阅读(55) 评论(0) 推荐(0) 编辑 |

摘要:GridViewActivity package com.example.firstapp.gridview; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import 阅读全文

posted @ 2021-01-30 13:34 ***Pepsi*** 阅读(11) 评论(0) 推荐(0) 编辑 |

摘要:MyListAdapter package com.example.firstapp.ListView; import android.content.Context; import android.view.LayoutInflater; import android.view.View; imp 阅读全文

posted @ 2021-01-29 13:33 ***Pepsi*** 阅读(12) 评论(0) 推荐(0) 编辑 |

摘要:layout_list_item 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_ 阅读全文

posted @ 2021-01-28 13:26 ***Pepsi*** 阅读(15) 评论(0) 推荐(0) 编辑 |

摘要:MyListAdapter package com.example.firstapp.ListView; import android.content.Context; import android.view.LayoutInflater; import android.view.View; imp 阅读全文

posted @ 2021-01-27 13:25 ***Pepsi*** 阅读(10) 评论(0) 推荐(0) 编辑 |

摘要:ListView xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_widt 阅读全文

posted @ 2021-01-26 13:17 ***Pepsi*** 阅读(11) 评论(0) 推荐(0) 编辑 |

摘要:xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_ 阅读全文

posted @ 2021-01-25 13:16 ***Pepsi*** 阅读(23) 评论(0) 推荐(0) 编辑 |

摘要:xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_ 阅读全文

posted @ 2021-01-23 13:08 ***Pepsi*** 阅读(24) 评论(0) 推荐(0) 编辑 |

摘要:10.ListView Java package com.example.firstapp.ListView; import android.os.Bundle; import android.view.View; import android.widget.AdapterView; import 阅读全文

posted @ 2021-01-21 13:00 ***Pepsi*** 阅读(11) 评论(0) 推荐(0) 编辑 |

摘要:xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas. 阅读全文

posted @ 2021-01-19 12:45 ***Pepsi*** 阅读(19) 评论(0) 推荐(0) 编辑 |

摘要:8.ImageView和使用第三方库加载网络图片 1 package com.example.firstapp; 2 3 import androidx.appcompat.app.AppCompatActivity; 4 5 import android.os.Bundle; 6 import a 阅读全文

posted @ 2021-01-18 12:43 ***Pepsi*** 阅读(30) 评论(0) 推荐(0) 编辑 |

摘要:7.checkbox xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_ 阅读全文

posted @ 2021-01-17 12:38 ***Pepsi*** 阅读(27) 评论(0) 推荐(0) 编辑 |

摘要:checkbox 学习 1 package com.example.firstapp; 2 3 import androidx.appcompat.app.AppCompatActivity; 4 5 import android.os.Bundle; 6 import android.widget 阅读全文

posted @ 2021-01-16 12:36 ***Pepsi*** 阅读(26) 评论(0) 推荐(0) 编辑 |

摘要:6.radiobutton 继昨天学习Java之后 今天是与之对应的xml文件 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/andro 阅读全文

posted @ 2021-01-15 12:28 ***Pepsi*** 阅读(21) 评论(0) 推荐(0) 编辑 |

摘要:Radio button 学习Radiobutton package com.example.firstapp; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.wid 阅读全文

posted @ 2021-01-14 12:26 ***Pepsi*** 阅读(26) 评论(0) 推荐(0) 编辑 |

摘要:EditText 通过学习editText的使用做了一个简单的登录界面 1 package com.example.firstapp; 2 3 import androidx.appcompat.app.AppCompatActivity; 4 5 import android.content.Co 阅读全文

posted @ 2021-01-13 13:12 ***Pepsi*** 阅读(26) 评论(0) 推荐(0) 编辑 |

摘要:button是textview的一个子类1.文字大小,颜色2.自定义背景形状3.自定义按压效果4.点击事件先声明空间,然后找到空间,之后跳转到界面(Java)大小textSize,颜色textColor,背景background,drawable新建文件——————————通过<shape xmln 阅读全文

posted @ 2021-01-12 16:57 ***Pepsi*** 阅读(23) 评论(0) 推荐(0) 编辑 |

摘要:1.main package com.example.firstapp; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent;import android.os.Bundle;import an 阅读全文

posted @ 2021-01-11 21:35 ***Pepsi*** 阅读(35) 评论(0) 推荐(0) 编辑 |

摘要:1.文字大小颜色 textColor//颜色 textSize//大小单位sp2.显示不下用。。。 maxLines="1"//最大行数1 android:ellipsize="end"//显示不下就会用...显示3.文字+icon 图片放在drawable下 通过drawable引用图片4.中划线 阅读全文

posted @ 2021-01-10 21:34 ***Pepsi*** 阅读(35) 评论(0) 推荐(0) 编辑 |

摘要:相对布局RelativeLayout常用属性android:layout_toLeftOf 在。左边android:layout_toRightOf 在。右边android:layout_alignBottom 底部对齐android:layout_alignParentBottom 父空间底部对齐 阅读全文

posted @ 2021-01-09 16:55 ***Pepsi*** 阅读(9) 评论(0) 推荐(0) 编辑 |

摘要:LinearLayout线性布局常用属性1.android:id( 创建id android:id="@+id/11_1")2.android:layout_width 宽度 单位:dp3.android:layout_height 高度 单位:dp修改字体单位为sp4.android:backgr 阅读全文

posted @ 2021-01-08 18:00 ***Pepsi*** 阅读(19) 评论(0) 推荐(0) 编辑 |

摘要:1.app.src.main.java程序代码 res是一些资源文件2.app.src.main.res.drawable可以用来放一些图片3.layout布局文件4.mipmap图片5.values 颜色,文字string里面可以设置文字内容,在其他里可以引用 Androidmainifest:所 阅读全文

posted @ 2021-01-07 16:44 ***Pepsi*** 阅读(30) 评论(0) 推荐(0) 编辑 |

随笔 - 319, 文章 - 0, 评论 - 0, 阅读 - 36566

Copyright © 2025 ***Pepsi***
Powered by .NET 9.0 on Kubernetes

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