- 博客(7)
- 资源 (4)
- 收藏
- 关注
原创 radiobutton drawable bitmap 互换
public static Bitmap drawableToBitmap(Drawable drawable) { int w = drawable.getIntrinsicWidth(); int h = drawable.getIntrinsicHeight(); Bitmap.Config config = drawable.getOpacity() != PixelFormat...
2018-09-27 15:47:45 132
原创 radiobutton 图标大小
Drawable drawable = getResources().getDrawable(R.drawable.a);drawable .setBounds(0, 0, 70, 70);radiobutton.setCompoundDrawables(null,drawable , null, null);
2018-09-27 11:07:37 2009
原创 diver padding
<?xml version="1.0" encoding="utf-8"?><inset xmlns:android="http://schemas.android.com/apk/res/android" android:insetLeft="10dp" android:insetRight="10dp"> <
2018-09-26 14:53:35 121
原创 HttpClient
public static InputStream linkUrl(String httpUrl) { HttpGet hg = new HttpGet(httpUrl); HttpClient hc = new DefaultHttpClient(); try { HttpResponse response = hc.execute(hg); if (response.getS...
2018-09-26 13:34:17 63
原创 透明颜色
android:drawable="@color/transparent"<color name="transparent">#00000000</color>
2018-09-17 09:51:26 160
原创 自定义控件view 属性
1.在res/values文件夹里创建attr.xml文件attr.xml<?xml version="1.0" encoding="utf-8"?><resources> <declare-styleable name="mybutton"> <attr name="myText" forma
2018-09-13 14:13:02 135
原创 expandablelistView
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="mat...
2018-09-07 11:34:31 68
QWidget给qt3dStudio发信号
2021-01-25
qml与qwidget结合的checkbox
2021-01-21
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人