自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 自定义Dialog

//布局文件如下:     android:layout_width="320dp"     android:layout_height="450dp"     android:background="@drawable/mine_bg_add_address"     android:orientation="vertical"     android:padding="5

2016-05-31 13:25:55 297

转载 侧拉菜单

侧拉菜单在android应用中非常常见,它的实现方式太多了,今天我们就说说使用Google提供的DrawerLayout来实现侧拉菜单效果,先来看张效果图: DrawerLayout的实现其实非常简单,只要按照既有的规范来写即可,先来看看布局文件: <android.support.v4.widget.DrawerLayout xmlns:android="http

2016-05-31 13:19:44 436

原创 自定义圆形imageview

package cn.tedu.musicclient.ui; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapShader; import android.graphics.Canvas; import android.graphics.Color

2016-05-19 22:44:49 206

转载 android 中的OnAcitvityResult

现有MainActivity,当它进入到SecondActivity后,在SecondActivity中进行了某些操作然后需要将值返回给MainActivity时, 于是就可以用到onActivityResult() 这个方法了,下面呢,我就具体来介绍一下用法。 不过在这之前,先讲一下intent的用法: 对于intent主要的分类主要包括隐式意图和显式意图。显式意图通常主要是启动本应用

2016-05-09 21:47:34 801

转载 Handler机制

直接在UI线程中开启子线程来更新TextView显示的内容,运行程序我们会发现,如下错误:android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.翻译过来就是:只有创建这个控件的线程才能去更新该控件

2016-05-02 20:35:13 183

空空如也

空空如也

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

TA关注的人

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