- 博客(8)
- 资源 (2)
- 收藏
- 关注
原创 Python基础(一)
Python基础(一)在.py文件的第一行加上一个特殊的注释:#!/usr/bin/env python3print('Hello Python !')然后,通过命令给hello.py以执行权限: $ chmod a+x hello.py就可以直接运行hello.py了,比如在Mac下运行: $ ./hello.py Hello Python !
2018-02-07 20:27:52
232
原创 绘制带有边框线的ListView
先看看效果 1.在布局文件中定义ListView和它的父控件RelativeLayout<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="ma
2017-11-28 11:12:34
4491
原创 strings.xml里字符串拼接、占位符和常用替换符号
一、strings.xml文件里字符串拼接<!DOCTYPE resources [ <!ENTITY telephone "10086"> <!ENTITY user_name "日天"> ]><resources> <string name="str_phone">联系电话:&telephone;</string> <string name="str_s
2017-11-22 19:47:23
4813
原创 Android不加载获取网络、本地图片的尺寸
一、根据网络数据流来获取大小class GetImageSizeTask extends AsyncTask<Void, Void, Boolean> { String TAG = this.getClass().getName(); String urlStr = "http://www.3dmgame.com/uploads/allimg/160902/328_16
2017-11-20 11:05:33
2395
原创 ReactNative View的属性和样式
属性: accessible:表示此视图时一个启用了无障碍功能的元素。默认为true onMagicTap:当accessible为true时,双击View会调用此函数。 onMoveShouldSetResponder:触摸控件并滑动时调用的方法 onMoveShouldSetResponderCapture:触摸控件并滑动时调用的方法,避免子
2016-11-30 15:41:40
11959
原创 ReactNative Text的属性和样式
Text:属性1. numberOfLines 文本行数限制,添加后超过限制行数文本会在末尾默认以...的形式省略。2. ellipsizeMode 设置文本缩略格式,配合numberOfLines使用,values:tail:在末尾...省略(默认值)clip:在末尾切割,直接切割字符无省略符head:在前面...省略middle:在中间...省略3. o
2016-11-29 17:07:30
37557
1
原创 Android4.4、Android5.0+状态栏颜色、透明等设置
Android 4.4Manifest文件Activity的Theme设置: true true 代码中设置:if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { Window window = getW
2016-08-17 16:22:29
10283
3
原创 Android当方法总数超过64K时(Android Studio)
1. 问题描述Error:The number of method references in a .dex file cannot exceed 64K.Error:Execution failed for task ':app:transformClassesWithDexForRelease'.> com.android.build.api.transform.Trans
2016-05-11 17:49:22
17581
1
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人