![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
安卓学习笔记
qiemo0709
这个作者很懒,什么都没留下…
展开
-
emas
package com.zsck.zsgy.emas;import android.app.Application;import android.content.Context;import android.content.SharedPreferences;import android.content.pm.ApplicationInfo;import android.os.Build;import android.text.TextUtils;import android.util.L.原创 2021-03-08 19:41:57 · 602 阅读 · 1 评论 -
初次 安卓开发学习重要的三个概念:
安卓开发学习重要的三个概念:Activity(活动)启动时装载---->layout(布局)--->控件--->为控件绑定监听器LinearLayout--->水平方向线性布局 virtcal 垂直方向线性布局 horizontal (控件布局一般不能match_parent )原创 2015-10-17 13:23:17 · 307 阅读 · 0 评论 -
控件内边距、外边距
dp.sp.一般情况下:字体设置一般为sp,方便随系统大小。控件高度、宽度 大小一般为dp.外边距:layout_margin (上:layout_marginTop 下:layout_marginBottom 左:layout_marginLeft 右:layout_marginRight)内边距:padding (上:pad原创 2015-10-17 17:02:27 · 1085 阅读 · 0 评论 -
View控件的学习
View控件的学习一:View 是所有控件的父类—->文本textview 按钮button 多选 checkBox单选 RadioButton 布局 layout .二:View 的使用方法 1.获取代表控件的对象 textView.setBackgroundColor(Color.GRAY); button=(Button)findViewById(R.id.button); 2.原创 2015-10-17 16:05:42 · 253 阅读 · 0 评论 -
CheckBox 多选按钮的使用方法
创建布局文件*声明一组多选按钮,设置各个按钮id .*<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:原创 2015-10-18 21:28:24 · 1115 阅读 · 0 评论