• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Ocean123123
博客园    首页    新随笔    联系   管理    订阅  订阅
2020年10月29日
retrofit(2)get请求
摘要: public class MainActivity extends AppCompatActivity { // URL模板 // http://fy.iciba.com/ajax.php // URL实例 //http://fy.iciba.com/ajax.php?a=fy&f=auto&t=a 阅读全文
posted @ 2020-10-29 15:38 Ocean123123 阅读(532) 评论(0) 推荐(0)
retrofit使用
摘要: implementation 'com.squareup.okhttp3:okhttp:4.0.0-RC1' implementation 'com.squareup.okio:okio:2.2.2' implementation 'com.squareup.retrofit2:converter- 阅读全文
posted @ 2020-10-29 15:21 Ocean123123 阅读(151) 评论(0) 推荐(0)
button点击效果
摘要: <Button android:text="送快递放假" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="?android:attr/selectableItem 阅读全文
posted @ 2020-10-29 13:42 Ocean123123 阅读(144) 评论(0) 推荐(0)
获取系统时间
摘要: Date curDate = new Date(System.currentTimeMillis()); SimpleDateFormat formatter = new SimpleDateFormat("yyyy年MM月dd日 HH:mm:ss "); // SimpleDateFormat f 阅读全文
posted @ 2020-10-29 13:34 Ocean123123 阅读(88) 评论(0) 推荐(0)
剪切图片为原形
摘要: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState 阅读全文
posted @ 2020-10-29 13:33 Ocean123123 阅读(112) 评论(0) 推荐(0)
BottomNavigationView和Tablayout(3)
摘要: 在上一篇的单个fragment中添加tablayout <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" an 阅读全文
posted @ 2020-10-29 13:13 Ocean123123 阅读(406) 评论(0) 推荐(0)
BottomNavigationView(2)和viewpage组合
摘要: implementation 'com.google.android.material:material:1.2.1' <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.c 阅读全文
posted @ 2020-10-29 11:11 Ocean123123 阅读(399) 评论(0) 推荐(0)
BottomNavigationView(1)
摘要: implementation 'com.google.android.material:material:1.2.1' <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.c 阅读全文
posted @ 2020-10-29 10:15 Ocean123123 阅读(97) 评论(0) 推荐(0)
viewpager欢迎页面底部点的滑动效果
摘要: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> < 阅读全文
posted @ 2020-10-29 09:33 Ocean123123 阅读(170) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3