layout: post
title: "學習 ApiDemos 005 Dialog"
date: 2016-12-18 20:56:54
comments: true
external-url:
categories: android,ApiDemos
簡介
- ApiDemos -> App -> Activity -> Dialog
- 源代碼 http://git.oschina.net/vileneera/LearnApiDemos/tree/005
值得注意的點
- getResources().getDrawable 這個方法以后將要拋棄
- 一般建議選 ContextCompat.getDrawable(context, R.drawable)
- values的v11,v19,v20 對應 版本
- tools:targetApi 來注明版本
疑問
- layout 的命名 dialog_activity.xml 換成 activity\dialog 會不會好點?