自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

转载 RecyclerView

A flexible view for providing a limited window into a large data set.用于大量数据展示的新控件 在使用RecyclerView时候,必须指定一个适配器Adapter和一个布局管理器LayoutManager 基本使用 1.创建布局文件 Item的布局文件 Activity布局文件 ...

2019-09-01 16:25:00 169

转载 webView

1.在布局文件中定义一个webView控件 2.加载本地文件 3.加载网络url 4.在webView中再打开网页,使用当前webView打开 5.解决物理返回按钮,直接返回到native页面问题 转载于:https://www.cnblogs.com/AppTester/p/11437042.html...

2019-08-30 20:46:00 139

转载 ScrollView & HorizontalScrollView

可垂直或水平滚动的列表 ScrollView & HorizontalScrollView内部只能有一个直接的子元素, <?xml version="1.0" encoding="utf-8"?><ScrollView xmlns:android="http://schemas.android.com/apk/res/android" andr...

2019-03-11 16:16:00 167

转载 checkBox

<LinearLayout android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@id/cb_3" android:orientation="vertical"> <TextView and...

2018-11-30 17:04:00 119

转载 radioButton

<RadioGroup android:id="@+id/rg" android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical"> <RadioButton android:id="@...

2018-11-12 09:52:00 101

转载 EditText以及登录UI实现

EditText是可以输入的文本框 <?xml version="1.0" encoding="utf-8"?><RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layo...

2018-11-12 09:46:00 150

转载 ImageView

centerCrop:保持纵横比缩放图片,以使图片能完全覆盖ImageView。 fitXY:横向、纵向独立缩放,以适应该ImageView。--变形 fitCenter:保持纵横比缩放图片,缩放完成后将图片放在ImageView的中央 <ImageView android:id="@+id/iv_1" android:layout_width="2...

2018-11-11 20:30:00 93

转载 activity的启动模式

常用的三种 standard(系统默认) singleTop singleTask <activity android:name=".jump.BActivity" android:label="B" android:launchMode="standard">任务栈,每次启动一个activity,就会把该activity的实例放到任务栈中,任务栈名字默认...

2018-11-11 13:07:00 101

转载 Activity之间的跳转和数据传输

1.显式跳转 protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_a); bt1= (Button) findViewById(R.i...

2018-11-11 12:22:00 269

转载 Android activity创建三部曲

1.新建类继承Activity或其子类,现在一般继承AppCompatActivity public class TestActivity extends AppCompatActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCr...

2018-11-09 23:23:00 150

转载 Android Button常用法

常用属性: <Button android:id="@+id/btn_1" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="按钮1" android:textSize="20sp" android:textColor=...

2018-11-05 11:12:00 187

转载 RelativeLayout相对布局

align:对齐 常用属性: layout_toRightOf:在**的右边 android:layout_toRightOf="@+id/view_3" ------------------------------------------------------- layout_alignBottom:底部和**对齐 android:layout_alignBottom="...

2018-11-05 10:16:00 80

转载 Android TextView

常用属性 text:文本框中展示的文字 android:text="下载" android:text="@string/tv_text" ----------------------------------------------------------------------------------- textColor:字体颜...

2018-11-05 10:16:00 149

转载 线性布局LinearLayout

常用属性 id:控件唯一属性 android:id="@+id/ll_1" --------------------------------------- layout_width:宽度 layout_height:高度 android:layout_width="300dp" 固定宽度和高度 android:layout_height="300dp" android:...

2018-11-05 10:15:00 128

转载 com.android.support:appcompat-v7:27.+问题解决

新建的项目就报下面的错误,问题指向了app/build.gradle,看起来是版本兼容的问题。 解决方案: 1.查看sdk tools的版本:26.1.1 远程依赖包是27.+,而我们的sdk工具是26版本的,所以我们的版本都需要以26作为基准。下图三处都改成26(本机sdk tools的版本) ...

2018-08-14 17:13:00 248

转载 Android sdk platform,sdk tools,sdk Build tools,sdk platform tools 的关系

1. sdk platform 简单理解为系统版本 最新级别: 28:Android 9 27:Android 8.1 26:Android 8.0 25:Android 7.1 24:Android 7.0 23:Android 6.0 22:Android 5.1 2.sdk tools Android SDK工具是Android ...

2018-08-14 15:53:00 1733

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除