原创 手指在屏幕上滑動,紅色的小球始終跟隨手指移動(自定義控件)

1.自定義控件 BallView類 public class BallView extends View { private Paint mpaint; private int x=100; p

原创 自定義控件+二維碼

1.title.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/

原创 Android MTK 6750 系統語言與輸入法

需求一:要求只保留中文和英文兩種語言 xxxx/frameworks/base/core/res/res/values/locale_config.xml <string-array translatable="false" n

原创 Android MTK 6763 User 版本默認打開usb調試

1.xxxx\build\make\core\main.mk endif # !user_variant ifeq (true,$(strip $(enable_target_debugging))) # Target is

原创 Android MTK 預製應用遇到的問題

一.預置uc瀏覽器報錯 FAILED: out/target/product/apower_xj/obj/APPS/UcApp_intermediates/oat/arm64/package.odex /bin/bash -c

原创 購物車(angularjs)

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style>

原创 練習題(查,刪,排,改)

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script type="text

原创 信息題(查詢+批量刪除+修改+添加)

<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>Angularjs的增刪改查,排序,查詢年齡範圍</title>

原创 OKHttp上傳下載

okhttp之上傳 //點擊事件 public void sctp(View view) { //創建OKHttpClient對象 OkHttpClient okHttpClient = new

原创 實現自定義頂部標題欄(自定義控件)

1.創建 layout_title.xml(自定義標題視圖) <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas

原创 購物車(ionic)

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <link rel="stylesh

原创 商品題(查詢+批量刪除)

<!DOCTYPE html> <html lang="en"> <head>

原创 自定義輪播圖+網絡請求

1.創建viewpa.xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com

原创 廣播動態註冊

1.發廣播 Intent intent = new Intent("android.intent.action.glovemode"); mContext.sendBroadcast(intent); 2.註冊

原创 流式佈局(自定義控件)

1.創建MyViewGroup extends ViewGroup package com.example.lsllayout; import android.content.Context; import android.g