安卓开发
Rraion
Kafen Wong
展开
-
安卓库-图表库: MPChartView
安卓图表库MPChartView原创 2022-06-05 22:07:26 · 266 阅读 · 0 评论 -
安卓写Mqtt(java)
安卓+mqtt原创 2022-06-03 17:00:07 · 280 阅读 · 0 评论 -
Android(X)控件-选项卡
主xml <?xml version="1.0" encoding="utf-8"?> <TabHost xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" android:layout_width原创 2022-05-28 18:12:12 · 261 阅读 · 0 评论 -
Android(X)控件-ImageView
<ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@mipmap/pic3" android:layout_margin="3dp"/> <ImageView android:layout_width="wrap_content" android:layout_height="wrap_conten原创 2022-05-28 17:40:13 · 177 阅读 · 0 评论 -
Android(X)控件-星级评分条
xml <RatingBar android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/rating" android:rating="5"/> <Button android:layout_width="match_parent" android:layout_原创 2022-05-28 17:39:11 · 140 阅读 · 0 评论 -
Android(X)控件-拖动条
需要注意的点 需要在onCreate方法中实例化,如果在方法外实例化会引起程序崩溃 只能使用图片,使用背景不会生效 xml <ImageView android:layout_width="match_parent" android:layout_height="600dp" android:id="@+id/imageview" android:src="@mipmap/pic3"/> <SeekBar原创 2022-05-28 17:23:51 · 137 阅读 · 0 评论 -
Android(X)控件-进度条
xml <ProgressBar android:layout_width="match_parent" android:layout_height="30dp" android:max="100" android:layout_alignParentBottom="true" android:layout_marginBottom="50dp" style="@style/Widget.AppCo原创 2022-05-28 17:05:52 · 547 阅读 · 0 评论 -
Android(X)多页面
注意 添加setContentView(R.layout.activity_main); 页面的跳转 在安卓中每个页面我们称为一个Activity,Activity之间使用Intent进行通信 打开页面 Intent intent = new Intent(NewAvtivity.this,ThirdPage.class); startActivity(intent); 关闭页面 finish(); //关闭当前Activity 页面间通信(主页面到其他页面) 页面间使用B原创 2022-05-26 15:51:52 · 275 阅读 · 0 评论 -
Android(X)关于安卓开发的一些思想谈
布局管理器 最主要的布局管理器包括:线性布局管理器,帧布局管理器,网格布局管理器,相对布局管理器,表格布局管理器。 线性布局管理器一般用于纵向或者横向排列 帧布局管理器可以实现类似PS图层的覆盖效果 相对布局管理器是指定一个中心控件,其余的控件根据对该中心控件的相对位置排列 表格布局管理器可以跨行,但是不可以跨列,但是网格布局管理器可以 布局管理器之间一般会进行嵌套以实现丰富的显示效果 控件 文本相关控件:文本框,编辑框 按钮控件:普通按钮,图片按钮,单选按钮,复选框 时间相关控件:日期选择器,时间选原创 2022-05-24 23:51:11 · 135 阅读 · 0 评论 -
Android(X)布局管理器
布局管理器 相对布局 线性 帧 线性 表格 网格原创 2022-05-22 17:40:37 · 225 阅读 · 0 评论