原创 我的友情鏈接

51CTO博客開發

原创 Android button, xml文件定義形狀,代碼中修改背景顏色

1. 首先在drawable文件夾定義一個shape.xml文件,內容如下:<?xml version="1.0" encoding="UTF-8"?><shape    xmlns:android="http://schemas.andr

原创 Android UI主進程跟子進程直接相互通信

package com.example.threadcomm;import android.R.integer;import android.app.Activity;import android.os.Bundle;import andr

原创 我的友情鏈接

51CTO博客開發

原创 android fragment lifecycle

 Fragment, there are methods:onAttach()onCreate()onCreateView()onActivityCreated() onDetach()onDestroy()onDestroyView()