Android Studio
人走丿茶凉
每天持续更新,希望大家有所帮助,也希望大家多多支持!
展开
-
Android Studio 快捷键整理分享
Alt+回车 导入包,自动修正Ctrl+N 查找类Ctrl+Shift+N 查找文件Ctrl+Alt+L 格式化代码Ctrl+Alt+O 优化导入的类和包Alt+Insert 生成代码(如get,set方法,构造函数等)Ctrl+E或者Alt+Shift+C 最近更改的代码Ctrl+R 替换文本Ctrl+F 查找文本Ctrl+Shift+Space 自动原创 2017-08-03 10:20:12 · 666 阅读 · 0 评论 -
Android - 信息列表页面【仿】淘宝App
net文件夹ApiService.javapublic interface ApiService { @GET("product/getProducts") Flowable detailsget(@QueryMap Map map); }xml文件activity_details.xml"http://schemas.android.com/原创 2018-01-18 11:55:37 · 2124 阅读 · 0 评论 -
Android - 准备工作【仿】淘宝App
首先是所有要用到的依赖依赖包compile 'com.facebook.fresco:fresco:0.12.0' compile 'org.greenrobot:eventbus:3.1.1' compile 'com.jakewharton:butterknife:8.8.1' compile 'io.reactivex.rxjava2:rxjava:2.1原创 2018-01-18 10:47:34 · 1156 阅读 · 0 评论 -
Android - 购物车页面【仿】淘宝App
首先是效果图 xml布局文件activity_shopping.xml"http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <RelativeLayout原创 2018-01-19 11:45:32 · 2070 阅读 · 0 评论 -
Android - 详情页面【仿】淘宝App
activity_detai.xmlLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="原创 2018-01-18 14:58:25 · 2034 阅读 · 1 评论 -
android - OkHttp封装【仿】京东App
需求:OkHttp的封装,方便使用添加依赖 compile 'com.google.code.gson:gson:2.8.2' compile 'com.squareup.okhttp3:okhttp:3.9.1' compile 'com.github.bumptech.glide:glide:3.7.0' compile 'com.square原创 2017-12-21 09:27:59 · 524 阅读 · 0 评论 -
android - mvp实现商品详情页面【仿】京东App
需求:mvp实现activity_detailsLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:ori原创 2017-12-21 09:56:54 · 1021 阅读 · 0 评论 -
android - 我的订单页面【仿】京东App
xmlactivity_orderLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientation=原创 2017-12-21 10:32:12 · 7653 阅读 · 0 评论 -
android - 确认订单页面【仿】京东App
xmlactivity_confirmLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> RelativeLayout原创 2017-12-21 10:39:23 · 3305 阅读 · 0 评论 -
android - 购物车页面【仿】京东App
drawable【这是两张图片】 xmlactivity_secondLinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android原创 2017-12-21 11:12:11 · 1122 阅读 · 0 评论 -
Android - 自定义控件之购物车数量加减器
刚开始在网上搜寻了一番,没找到特别合适,所以就自己简单的写了一个,其实也没什么复杂,就是一个组合控件,记录一下,方便自己以后的使用,同时也希望可以帮助有需要的朋友。效果展示: 实现思路 整个控件其实是由两个Button和一个EditText组成,直接上代码进行分析。初始化控件,设置了自定义属性(这几个自定义属性的作用大概通过名字也能够知道了)和设置监听器 LayoutIn原创 2018-01-16 10:09:05 · 755 阅读 · 0 评论 -
Android - 断点续传加greendao
adapter文件夹import android.content.Context;import android.content.Intent;import android.view.LayoutInflater;import android.view.View;import android.view.ViewGroup;import android.widget.BaseAdapte原创 2018-01-15 09:58:44 · 209 阅读 · 0 评论 -
android - 欢迎页 + 属性动画
需求:启动页:使用属性动画实现,3秒后自动跳转 (渐变、缩放、平移、旋转) 实现:属性动画// 平移ObjectAnimator translationY = ObjectAnimator.ofFloat(imageView, "translationY", 0, 500f);// 渐变ObjectAnimator alpha = ObjectAnimator.ofFloat(image原创 2017-12-21 09:03:58 · 578 阅读 · 0 评论 -
自动轮播+频道管理 练习
首先来看一下我们要做成的而效果:主页面要显示一个viewpager自动轮播的效果 第二个页面有一个频道管理的效果 废话不多说,直接上代码:布局文件: activity_main.xml:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schema原创 2017-08-24 19:40:56 · 789 阅读 · 0 评论 -
viewpager+ 小圆点 练习
首先来看一下我们要做成的而效果:主页面要显示一个viewpager自动轮播+小圆点联动的效果 : 废话不多说,直接上代码:布局文件: activity_main.xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.原创 2017-08-24 20:05:11 · 979 阅读 · 0 评论 -
【仿】新闻App练习
一、需求1. 主页面实现侧拉效果、导航条效果、分页加载、上拉刷新下拉加载、多条目加载 2. 主页面listview的item点击事件:打开详情界面 3. 详情界面实现viewpager自动轮播,GridView加载视图,listview数据加载二、实现步骤(分开实现)项目列表查看: 布局文件展示:content_main.xml:(主界面)<android.support.design原创 2017-09-21 15:27:22 · 677 阅读 · 1 评论 -
Android - 原生登录注册页面【仿】淘宝App
bean文件夹:解析数据LoginBean.javaprivate String msg; private String code; private DataBean data; public String getMsg() { return msg; } public void setMsg(String msg) {原创 2018-01-18 11:04:53 · 4072 阅读 · 1 评论