- 博客(16)
- 收藏
- 关注
原创 HandlerThread
package com.example.yanglliu.activitysavedemo.ui.fragment;import android.os.Bundle;import android.os.Handler;import android.os.HandlerThread;import android.os.Message;import android.support.anno
2016-07-05 16:50:13 206
原创 自定义DrawerLayout
import android.content.Context;import android.support.v4.widget.ViewDragHelper;import android.util.AttributeSet;import android.view.MotionEvent;import android.view.View;import android.view.ViewGr
2016-07-05 14:21:44 346
原创 Fragment嵌套使用时,从主页面回到应用时出现的异常问题
java.lang.IllegalArgumentExceptionNo view found for id 0x7f050013 (com.urbanforms.main:id/fragment_container) for fragment ArticleMuralFragment{423009f8 #0 id=0x7f050013}页面中使用了Fragment嵌套的展现形式,会有
2016-06-23 17:25:11 373
转载 Android安全攻防战,反编译与混淆技术完全解析(上)
转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/49738023 之前一直有犹豫过要不要写这篇文章,毕竟去反编译人家的程序并不是什么值得骄傲的事情。不过单纯从技术角度上来讲,掌握反编译功能确实是一项非常有用的技能,可能平常不太会用得到,但是一旦真的需要用到的了,而你却不会的话,那就非常头疼了。另外既然别人可以反编译程序,我们当然
2016-06-20 17:45:17 353
转载 Android 异步消息处理机制 让你深入理解 Looper、Handler、Message三者关系
转载请标明出处:http://blog.csdn.net/lmj623565791/article/details/38377229 ,本文出自【张鸿洋的博客】很多人面试肯定都被问到过,请问Android中的Looper , Handler , Message有什么关系?本篇博客目的首先为大家从源码角度介绍3者关系,然后给出一个容易记忆的结论。1、 概述Handler 、 Lo
2016-06-17 10:17:27 179
转载 Android Studio新功能解析,你真的了解Instant Run吗?(转)
转载请注明出处:http://blog.csdn.net/guolin_blog/article/details/51271369 本篇文章首发于我的微信公众号,由于网上讲解Android Studio中Instant Run功能的文章实在是太少了,为了让更多人可以了解这个技术,我将这篇文章同步到我的博客上面。想看更多技术文章的朋友可以扫一扫本篇文章底部的二维码来关注我的微信公众号,每周都
2016-06-15 14:44:29 173
原创 TabLayout使用
public class MainActivity extends AppCompatActivity { private TabLayout mTabLayout; private ViewPager mViewPager; private PagerAdapter viewPagerAdapter; private String[] mTitle = new
2015-11-20 10:42:38 212
转载 TextVIew多个链接
public class MainActivity extends AppCompatActivity { private String str; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); se
2015-11-09 20:20:10 242
原创 判断网络连接状态
// 判断网络连接状态public static boolean isNetworkConnected(Context context) {if (context != null) {ConnectivityManager mConnectivityManager = (ConnectivityManager) context.getSystemService(Context.CO
2015-09-15 09:58:25 327
原创 Android——Fragment使用
一、动态加载Fragment: //控件ID, Fragment对象 getSupportFragmentManager().beginTransaction().add(R.id.main_title, titlefrag).commit
2015-07-22 15:33:23 417
原创 AutoCompleteTextView的使用
1.创建布局文件auto_complete_tv.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_he
2015-05-26 09:50:54 241
原创 TextView跑马灯效果
1.自定义TextView,重写isFocused方法(判断是否获得焦点(被选中))。PS:如果不重写,默认只有第一个TextView获得焦点,为了所有TextView都获得焦点,所以需要重写。文件名——MarqueenText.javapublic class MarqueenText extends TextView { public MarqueenText(Co
2015-05-26 09:16:24 242
原创 Android之——SharedPreferences初探
布局文件——<LinearLayout 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_p
2015-05-25 16:08:43 215
原创 JAVA——集合
JAVA——集合 1.单一赋初值 Array.fill(i,47); Array.fill(j,78); 2.将一个集合中的值赋给另一个集合System.arraycopy(i,0,j,0,i.length); 3.set和Map不接受重复元素,list最重要的特性是—次序,add存,get取,集合使用时最好用泛型规范。
2015-05-25 13:18:18 257
原创 JSON的操作
protected void readJson(String url, final List key, final List value) { new AsyncTask() { @Override protected String doInBackground(String... params) {
2015-05-25 11:15:32 248
原创 Android开发知识整理
一、Intent的使用 1.跳转页面并传递数据——简单数据 Intentintent = new Intent(当前类名.this,目标类名.class); intent.putExtra("传递值名", "传递内容"); startActivity(intent); 2
2015-05-25 10:49:43 263
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人