自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 百分比布局

加入依赖 compile 'com.android.support:percent:26.+' 布局 android.support.percent.PercentFrameLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.andr

2018-01-31 09:00:09 510

原创 Activity的使用属性

Activity 是 Android 系统四大应用组件之一,用户可与 Activity 提供的屏幕进行交互,以执行拨打电话、拍摄照片、发送电子邮件等操作 开发者必须在清单文件中声明要使用的 Activity,这样系统才能访问它。声明方式是在  元素中添加  子元素 application android:allowBackup="true" androi

2018-01-27 11:02:16 613

原创 popupWindow的简单使用

1、PopupWindow与AlertDialog的区别最关键的区别是AlertDialog不能指定显示位置,只能默认显示在屏幕最中间(当然也可以通过设置WindowManager参数来改变位置)。而PopupWindow是可以指定显示位置的,随便哪个位置都可以,更加灵活。有关Dialog的相关知识,大家可以参考我的系列博客:《详解Dialog(一)——基础元素构建》2、PopupWindow的相

2018-01-19 09:23:56 400

原创 SQLite 数据库增删改查

布局: 1 2 LinearLayout 3 xmlns:android="http://schemas.android.com/apk/res/android" 4 xmlns:app="http://schemas.android.com/apk/res-auto" 5 xmlns:tools="http://schemas.android.com/tools

2018-01-19 08:03:47 814

原创 recyclerView的点击事件全选和取消全选

这是布局1xmlns: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="mat

2018-01-18 21:25:46 942

原创 listView的二级联动

布局xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" too

2018-01-18 21:13:01 458

原创 recyclerView多部局应用加点击事件

主部局 <LinearLayout android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http

2018-01-15 12:12:52 217

原创 省级二级联动

布局有三个 主布局 <LinearLayout android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="h

2018-01-12 10:16:08 392

原创 tablayout上面图片下面文字

需要依赖的包compile 'com.android.support:design:26.0.0-alpha1'布局&lt;android.support.v4.view.ViewPager android:layout_width="match_parent" android:layout_height="0dp" android:id="@+id/viewPage_xi...

2018-01-12 09:54:46 1154

原创 版本更新

public class MainActivity extends AppCompatActivity implements View.OnClickListener { private Button button_1; private Button button_2; private String latest; private String msg;

2018-01-04 09:12:00 136

空空如也

空空如也

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

TA关注的人

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