自定义博客皮肤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)
  • 收藏
  • 关注

转载 Activity、Window和View三者间的关系

原文地址:https://blog.csdn.net/chengjun77/article/details/21866523一、如何将Activity展现在手机上        Tips:Activity本身是没办法处理显示什么控件(view)的,是通过PhoneWindow进行显示的 , 换句话说:activity就是在造PhoneWindow,显示的那些view都交给了PhoneWindow处...

2018-04-10 17:30:08 239

原创 Kotlin超级方便的构造方法

首先上java代码public class NavigationBar extends RelativeLayout { public NavigationBar(Context context) { this(context, null); } public NavigationBar(Context context, AttributeSet at...

2018-03-05 19:29:51 617

原创 Kotlin中关于findviewbyid不得不知的事情

由于Android布局中findviewbyid很是繁琐,所以不得不借助一些第三方库如ButterKnife来帮助减少代码量。但现在在Kotlin中不需要了,有一个非常方便的插件kotlin-android-extensions在build.gradle中加入之后就直接可以在Activity中使用了,非常方便1.需手动添加import kotlinx.android.synthetic.main....

2018-03-01 14:19:25 1411

原创 LeetCode每日一题(2018-01-29)

Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is

2018-01-29 14:18:51 147

原创 LeetCode每日一题(2018-01-26)

Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4],the contiguous subarray [4,-1,2,1] ha

2018-01-26 14:20:59 266

原创 LeetCode每日一题(2018-01-25)

The count-and-say sequence is the sequence of integers with the first five terms as following:1. 12. 113. 214. 12115. 1112211 is read off as "one 1" or 11.11 is read

2018-01-25 15:09:51 125

原创 LeetCode每日一题(2018-01-24)

Given an array and a value, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you must do this by modifying the input array in-

2018-01-24 14:45:11 108

原创 LeetCode每日一题(2018-01-22)

Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this by modifyin

2018-01-22 14:03:33 198

原创 LeetCode每日一题(2018-01-12)

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all va

2018-01-12 16:04:10 159

原创 LeetCode每日一题(2018-01-11)

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.我的代码: public ListNode mergeTwoLists(ListNode l1, ListNo

2018-01-11 16:06:59 154

原创 LeetCode每日一题(2018-01-08)

Write a function to find the longest common prefix string amongst an array of strings.我的代码:public String longestCommonPrefix(String[] strs) { if(strs.length==0) return ""; if(strs.le

2018-01-08 17:09:34 169

原创 LeetCode每日一题(2018-01-05)

Determine whether an integer is a palindrome. Do this without extra space.判断是否为回文数。我的代码:class Solution { public boolean isPalindrome(int x) { if(x<0) return false; if(x<10)

2018-01-05 15:14:09 232

原创 LeetCode每日一题(2018-01-03)

Given a 32-bit signed integer, reverse digits of an integer. 我的代码:class Solution { public int reverse(int x) { String str = String.valueOf(x); StringBuffer sb = new StringBuff

2018-01-03 15:40:14 155

原创 关于AndoridStudio更新到3.0后找不到svn的解决办法

关于AndoridStudio更新到3.0后找不到svn的解决办法打开File-Settings-Plugins。搜索Subversion,启用插件,重启AndroidStudio即可解决。

2017-11-13 15:34:31 382

原创 Kotlin学习-AndroidStudio环境搭建与配置

Google宣布将Kotlin语言作为Android的一级开发语言,所以作为一个Android开发,也有必要学习一下。 今天尝试着用Android Studio配置Kotlin的开发环境,在此记录一下,以防忘记。1.安装Kotlin插件由于AndroidStudio3.0还是预览版本,所以我目前用的是2.3.2版本,需要安装插件才能支持Kotlin。3.0版本新增了Kotlin语言支持,应

2017-05-22 18:25:12 807 1

原创 AndroidStudio中Unable to delete directory: app解决办法

在使用AndroidStudio进行开发过程中,Clean项目的时候经常出现此错误,导致每次出现后都需要重启电脑,大大影响了开发速度。经查阅资料发现,之所以不能删除是因为毒霸的kxescore.exe而引起的冲突。解决办法:1、关闭毒霸中的自我保护功能2、在任务管理器中结束kxescore.exe进程3、之后在clean应该就可以了

2016-08-19 10:04:07 4575

空空如也

空空如也

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

TA关注的人

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