原创 09-07 Fragment(碎片續)、數據存儲(Preference)
Fragment仿QQ,實現滑動 //**activity_main** <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" x
原创 08-28 Dialog續篇、Notification(通知)
自定義的Dialog //**mydialog.xml** <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.andr
原创 09-06 Fragment(碎片)
styles.xml <style name="RadioButtonStyle" parent="Widget.AppCompat.CompoundButton.RadioButton"> <item name="
原创 08-19 Activity啓動 全屏,橫、豎屏 FrameLayout TableLayout Intent Extra傳遞數據
Activity啓動 //****直接啓動**** @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(s
原创 09-04、05 ViewPager
activity_main.xml <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://
原创 09-16 壓縮圖片
壓縮圖片 public class ZipImage { public static void zipImage(String savePath) { BitmapFactory.Options options
原创 08-13 登錄、註冊, 數據庫連接
登錄、註冊, 數據庫連接 //**com.client** //**Login** public class Login extends JFrame { private JPanel contentPane;
原创 09-08 SQLite(數據庫)、Contact(聯繫人)、Receicer(設置廣播、鬧鐘)、Service(後臺運行)
SQLite(數據庫) //**activity_main.xml** <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmln
原创 08-21 RadioGroup,RadioButton autoLink屬性 TextView中ellipsize屬性 TextView的屬性
RadioGroup,RadioButton //**Activity文件** public class Activitty_RadioButton extends Activity{ private RadioGroup m
原创 屏幕適配
關於屏幕布局適配建議 1、不要使用絕對佈局 2、儘量使用match_parent 而不是fill_parent 。 3、能夠使用權重的地方儘量使用權重(android:layout_weight) 4、如果是純色背景,儘量使用and
原创 08-18 Activity跳轉 Button LinearLayout佈局 Relative屬性
Activity跳轉 ![這裏寫圖片描述](http://img.blog.csdn.net/20150818205036745) //**MainActivity** public class MainActivity extend