- 博客(12)
- 收藏
- 关注
原创 学习笔记之简单的主页可以用到的布局View——Android
我们在开发Android软件的使用都会需要有一个登录进去就显示的主页面,下面介绍几种可能会用到的布局1、输入框书写的搜索框<EditText android:id="@+id/edit_query" android:layout_width="match_parent" android:layout_height="30dp" android:background="@drawable/btn_b
2021-12-22 23:22:54 996
原创 最最最简单的Android个人信息展示页面的xml布局--自学笔记
真的超级简单,展示有重要的个人信息,他可能不全,但他一定是简单的。废话不多说直接看代码<ImageView android:layout_width="200dp" android:layout_height="200dp" android:layout_gravity="center_horizontal" android:layout_marginTop="50dp" android:src="@drawable
2021-12-22 23:09:58 3565 1
原创 个人学习笔记,常用的登录页面Android
每一个app都不可或缺的需要使用登录页面,下面写一个最简单的登陆页面简单的布局文件 <LinearLayout android:layout_marginTop="150dp" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center_horizontal">
2021-12-22 23:05:21 663
原创 Android中使用OKHttp进行get()请求数据
在基于Java代码的android编程中,除了原生的Http数据请求之外,还有第三方的,volley和OKHttp数据请求下面我们讲解Okhttp的数据请求。使用网络请求之前要先设置赋予网络请求的权限,在app下的manifests文件下的AndroidManifest.xml文件下书写语句:<uses-permission android:name="android.permission.INTERNET" />当然API28及以上要加一条明文运行网络请求的指令:andro
2021-12-22 21:01:42 4594
原创 使用EditView控件实现搜索框
使用EditView创建搜索框的方式其实是很简单,在创建好EditView之后,进行数据修改其imeOptions属性为actionSearch是最重要的。下面使用代码进行演示1、首先是xml文件的EditView控件的布局<EditText android:id="@+id/edit_query" android:layout_width="match_parent" android:layout_height="30
2021-12-22 20:46:50 1361
原创 Android 使用单选按钮制作底部导航,并点击实现跳转到不同的Frame中
1、xml文件为:其中 隐藏单选按钮的初始标识,有一个android:button="@null"这个属性即可隐藏,然后配合Java代码设置其标识图标。<FrameLayout android:id="@+id/Frame_ID" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginBottom="
2021-12-21 15:15:55 747
原创 Android中在滚动布局下,重写ListVIew里的方法跟随其上布局文集滚动
创建一个类,继承ListVIew这个类,然后重写里面的一个onMeasure方法,使其可以在滚动面板中显示不出来的信息,可以跟随滚动面板滚动起来。public class MyListView extends ListView { public MyListView(Context context) { super(context); } public MyListView(Context context, AttributeSet attrs) {
2021-12-21 15:03:04 135
原创 Android中使用MPAndroidChart-3绘制图表的基本使用--自学自学笔记
关于使用MPAndroidChart-3.1.0绘制饼状图,柱状图,多柱图,符合图等图表的基本使用
2021-12-20 10:36:42 2037
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人