自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 自定义view之点赞

1.定义一个类继承ViewGrouppackage com.example.administrator.customview;import android.animation.AnimatorSet;import android.animation.ObjectAnimator;import android.animation.TypeEvaluator;import androi

2017-12-20 15:41:23 290

原创 GreenDao的简单使用

1.添加依赖compile'org.greenrobot:greendao:3.0.1'compile'org.greenrobot:greendao-generator:3.0.0'2.在app下build.gradle中添加配置在最上面添加这一行apply plugin: 'org.greenrobot.greendao'在android下添加这几行分别是版本

2017-11-23 08:38:39 341

原创 EventBus基本使用

1.首先添加依赖compile 'org.greenrobot:eventbus:3.0.0'2.我们要创建一个类 , 里面写我们要传送的属性public class FirstEvent { private String msg; public FirstEvent(String msg) { this.msg = msg;

2017-11-07 16:22:38 271

原创 Retrofit+RxJava+Fresco简单实现数据展示

1.首先我们要添加依赖compile 'com.facebook.fresco:fresco:0.9.0+'compile 'com.android.support:recyclerview-v7:25.0.0+'compile 'com.squareup.retrofit2:retrofit:2.0.1'compile 'com.squareup.retrofit2:convert

2017-11-05 19:16:26 313

原创 购物车

1.先写布局        android:id="@+id/elv"        android:layout_above="@+id/lin_end"        android:layout_width="wrap_content"        android:layout_height="wrap_content">            androi

2017-10-26 12:10:36 216

原创 底部导航的简单实现

1.添加依赖compile 'com.hjm:BottomTabBar:1.1.1'2.布局com.hjm.bottomtabbar.BottomTabBar android:id="@+id/bottom_tab_bar" android:layout_width="match_parent" android:layout_

2017-10-17 19:19:23 369

原创 高德地图展示

1.首先创建key第一步,注册高德开发者;第二步,去控制台创建应用;第三步,获取Key。具体步骤可参看下图2.配置依赖.下面有3D和2D根据自己的需求添加3D地图compile 'com.amap.api:3dmap:latest.integration'2D地图compile 'com.amap.api:

2017-10-17 08:36:22 492

原创 网络请求加载Banner轮播的使用

1.依赖compile 'com.youth.banner:banner:+'2.图片加载compile 'com.github.bumptech.glide:glide:3.6.1'3.MainActivitypublic class MainActivity extends AppCompatActivity { private Banner ban

2017-10-16 19:17:03 465 1

原创 okhhtp + recyclerview + 上拉刷新下拉加载 + 点击事件

public class MainActivity extends AppCompatActivity {    private List list;    private PullLoadMoreRecyclerView recyclerview;    private int page = 1;    private MyAdapter myAdapter;    priv

2017-10-16 15:34:10 275

原创 recyclerview添加分割线

public class MyDividerItemDecoration extends RecyclerView.ItemDecoration { private static final int[] ATTRS = new int[]{ android.R.attr.listDivider }; public static final int

2017-10-13 14:05:15 250

原创 自定义view圆形头像

/** * 自定义的圆形ImageView,可以直接当组件在布局中使用。 * @author caizhiming * */public class XCRoundImageView extends ImageView{ private Paint paint ; public XCRoundImageView(Context context) {

2017-10-12 19:22:29 451

原创 listview适配器 优化

package huxiangjun1507e20170901.bwie.com.mvpexercise.Adapter;import android.content.Context;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapter;import androi

2017-09-03 20:09:34 271 1

原创 去掉任务栏显示全屏

public class HomePage extends AppCompatActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.

2017-09-01 13:35:25 656

转载 倒计时跳转

倒计时跳转

2017-08-31 15:12:52 354

原创 安卓修改logo图标和名字

直接修改drawable文件夹的icon.png图标,把新的图标改名覆盖就可以了。如果你要自己的图片和名称,可以修改AndroidManifest.xml的这个节点applicationAndroid:icon=”@drawable/logo”,记住,不需要加文件扩展名。例如: android:icon="@drawable/ic_launcher"用这个名字是不能

2017-08-11 11:57:50 2473

空空如也

空空如也

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

TA关注的人

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