Programming on Android
I will introduce how to change stacking order of view as below picture.
Environment : Android Studio 2.2.1, API 19
In the case of Android, remove view from layout and set view to layout again.
Then index is set 0 and view move to back. Index is not set and view move to front.
I will introduce how to set gradation on a background color of View and round corners of View and on Android.
Environment：Android Studio 2.2.1, API 19
Use GradientDrawable for setting color gradation and rounding corners.
Set gradient colors to GradientDrawable's argument and declare gradation direction using Orientation.
Use setCornerRadius for rounding corners of View.
I introduce how to capture screen on Android this time.
環境：Android Studio 2.2.1, API 19
You can capture screen every views on Android.
And you must use setDrawingCacheEnabled(false) after getting view's capture.
Sample code is below.
You can use Sqlite for saving data on Android.
Environment: Android Studio 2.2.1, API 19
Make class extended SqLiteOpenHelper and declare database layout.
You can define table layout to use "Create Table" in onCreate method.
You can change table layout to use "Alter Table" in onUpgrade method, when application version is up.
When you want to save Bitmap data, define BLOB data type.
2.How to Insert data
Use getWritableDatabase method of class which is made by SQLiteOpenHelper, and you can get writable SQLiteDatabase class.
When you execute InsertOrThrow method of SQLiteDatabase class, and new data is inserted in Sqlite.
And you'd better not use Insert method of SQLiteDatabase class, because this method don't return Exception class when error occur.
Use ContentValues to set field names and values.
If you want to save Bitmap Data, you must change Bitmap to byte data type.
3.How to update data.
Use update method of SQLiteDatabase class, you can update data in Sqlite.