Android
文章平均质量分 59
Android
折叶
风会把我的思念告诉你
展开
-
Android:Okhttp3详解(get和post同步异步文件上传)
Android:网络框架之Okhttp详解准备工作Get同步请求Get异步请求Post同步请求Post异步请求准备工作导入依赖dependencies { implementation("com.squareup.okhttp3:okhttp:4.9.0")}配置网络权限<?xml version="1.0" encoding="utf-8"?><manifest xmlns:android="http://schemas.android.com/apk/res/a原创 2022-03-15 22:53:18 · 4422 阅读 · 0 评论 -
Android:Frament详解
Android:Frament详解Fragment是什么Fragment运行Fragment是什么具备生命周期;依托Activity运行Fragment运行<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools"原创 2022-03-13 18:21:39 · 3324 阅读 · 0 评论 -
Android:ViewPager详解
Android:ViewPager详解准备3个页面创建ViewPagerJava代码中获取ViewPager对象创建Adapter在main方法中调用Adapter准备3个页面<?xml version="1.0" encoding="utf-8"?><LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="ve原创 2022-03-12 11:14:11 · 2275 阅读 · 0 评论 -
Android:单位和尺寸(px、pt、dip、dp、sp、layoutparams)
Android:单位和尺寸pxptdipdpspLayoutParamspxpixels像素:不同设备显示内容相同ptpoint,1pt = 1/72英寸dipdevice independent pixels(设备独立像素):不同设备显示效果不同不依赖硬件,推荐使用dpdip缩写spscaled pixels(放大像素):字体显示LayoutParamsLinearLayout layout = new LinearLayout(this);layout.setLayout原创 2022-03-12 10:31:43 · 1676 阅读 · 0 评论 -
Android:动画(animation)
Android:动画帧动画补间动画属性动画帧动画补间动画属性动画原创 2022-03-08 21:25:25 · 377 阅读 · 0 评论 -
Android:ListView和RecyclerView
Android:ListViewListViewRecyclerViewListView<ListView android:id="@+id/hai" android:layout_width="match_parent" android:layout_height="match_parent"/> <TextView android:id="@+id/s" android:textSize="原创 2022-03-08 21:03:19 · 572 阅读 · 0 评论 -
Android:布局
Android:布局LinearLayoutRelativeLayoutFrameLayoutTableLayoutGridLayoutConstraintLayoutLinearLayout<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_height="match_parent" android:layout_width="match_parent"原创 2022-03-07 20:47:40 · 560 阅读 · 0 评论 -
Android:控件
Android:控件TextView二级目录三级目录TextView控件属性控件效果android:id="@+id/tv_one"<TextView android:id="@+id/tv_one" android:layout_width="200dp" android:layout_height="200dp" />二级目录三级目录原创 2022-03-05 21:58:32 · 314 阅读 · 0 评论