09 2019 档案

摘要:根据窗体的名称动态创建窗体 这里我传入的 是一个字符串,表示窗体变量的名称 阅读全文
posted @ 2019-09-26 14:52 超级学渣渣 阅读(1255) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android 阅读全文
posted @ 2019-09-14 16:43 超级学渣渣 阅读(328) 评论(0) 推荐(0) 编辑
摘要:通过VIewSwitcher切换视图。这个用到了baseAdapter,还是不太懂,先记个笔记。 <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="matc 阅读全文
posted @ 2019-09-14 15:56 超级学渣渣 阅读(469) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android 阅读全文
posted @ 2019-09-14 15:33 超级学渣渣 阅读(271) 评论(0) 推荐(0) 编辑
摘要:中秋节学习,, 通过拖动滑块,改变图片的透明度 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orient 阅读全文
posted @ 2019-09-14 15:26 超级学渣渣 阅读(841) 评论(0) 推荐(0) 编辑
摘要:给出程序先: import random import socket import struct import threading import pickle import json from struct import * from time import sleep class sendMsg: 阅读全文
posted @ 2019-09-10 15:53 超级学渣渣 阅读(1659) 评论(0) 推荐(0) 编辑
摘要:用pyqt5做了一个小程序,保留一下这个固定格式: 我的主界面是qtdesinger拖动,自动生成的,没必要贴代码了。 这里给出两个doc网站,感觉用起来很顺手,看着也舒服 https://pythonprogramminglanguage.com/pyqt-tutorials https://ww 阅读全文
posted @ 2019-09-10 15:41 超级学渣渣 阅读(1309) 评论(0) 推荐(0) 编辑
摘要:顾名思义,就是进度条。 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="verti 阅读全文
posted @ 2019-09-10 15:35 超级学渣渣 阅读(329) 评论(0) 推荐(0) 编辑
摘要:使用stackView,表现出view堆叠的效果,可以拖动,也可以触发事件切换 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android 阅读全文
posted @ 2019-09-10 15:12 超级学渣渣 阅读(687) 评论(0) 推荐(0) 编辑
摘要:使用AdapterViewFiller组件设置图片轮播,该组件可以自动切换view <?xml version="1.0" encoding="utf-8" ?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/an 阅读全文
posted @ 2019-09-10 14:50 超级学渣渣 阅读(239) 评论(0) 推荐(0) 编辑
摘要:这个东西用法基本固定,不知道能不能做三级的展开。 界面代码 主程序代码 阅读全文
posted @ 2019-09-09 19:50 超级学渣渣 阅读(475) 评论(0) 推荐(1) 编辑
摘要:利用GridView和SimpleAdapter实现这个效果 主界面布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 阅读全文
posted @ 2019-09-07 17:25 超级学渣渣 阅读(1688) 评论(0) 推荐(0) 编辑
摘要:这个比较简单,只是将AutoCompleteTextView绑定一个ArrayAdapter就可以了。 界面布局: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.c 阅读全文
posted @ 2019-09-07 17:03 超级学渣渣 阅读(280) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android 阅读全文
posted @ 2019-09-07 16:43 超级学渣渣 阅读(150) 评论(0) 推荐(0) 编辑
摘要:这个adapter用起来稍微复杂一点。 首先我们看main_activity的布局 在界面上只有一个listView 然后,我们在主函数里面利用simpleAdapter向这个listView填充内容 package com.example.adapter import android.suppor 阅读全文
posted @ 2019-09-07 15:44 超级学渣渣 阅读(1950) 评论(0) 推荐(0) 编辑
摘要:利用ArrayAdapter向ListView中添加数据 <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:o 阅读全文
posted @ 2019-09-07 15:05 超级学渣渣 阅读(1348) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android 阅读全文
posted @ 2019-09-07 14:49 超级学渣渣 阅读(191) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android 阅读全文
posted @ 2019-09-07 14:36 超级学渣渣 阅读(186) 评论(0) 推荐(0) 编辑
摘要:界面代码: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" a 阅读全文
posted @ 2019-09-06 20:34 超级学渣渣 阅读(426) 评论(0) 推荐(0) 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android 阅读全文
posted @ 2019-09-06 20:07 超级学渣渣 阅读(617) 评论(0) 推荐(0) 编辑
摘要:界面: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" and 阅读全文
posted @ 2019-09-06 19:57 超级学渣渣 阅读(492) 评论(0) 推荐(0) 编辑
摘要:界面: <?xml version="1.0" encoding="utf-8"?> <TableLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" 阅读全文
posted @ 2019-09-06 16:56 超级学渣渣 阅读(152) 评论(0) 推荐(0) 编辑
摘要:var: var是一个可变变量,这是一个可以通过重新分配来更改为另一个值的变量。这种声明变量的方式和Java中声明变量的方式一样。val: val是一个只读变量,这种声明变量的方式相当于java中的final变量。一个val创建的时候必须初始化,因为以后不能被改变。 阅读全文
posted @ 2019-09-06 16:51 超级学渣渣 阅读(4917) 评论(0) 推荐(0) 编辑
摘要:textEdit可以添加背景图片、渐变色、文字颜色、大小等等 <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:too 阅读全文
posted @ 2019-09-06 14:13 超级学渣渣 阅读(899) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示