登录
首页 » Android » 换肤app,安卓换肤

换肤app,安卓换肤

于 2023-04-06 发布 文件大小:402.01 kB
0 166
下载积分: 2 下载次数: 1

代码说明:

实现app软件换肤,更换颜色。实现app软件换肤,更换颜色。实现app软件换肤,更换颜色。实现app软件换肤,更换颜色。实现app软件换肤,更换颜色。实现app软件换肤,更换颜色。实现app软件换肤,更换颜色。实现app软件换肤,更换颜色。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 一款基于安卓的简单聊天软件
    可以注册登录、发送文字表情。 使用前请安装好mysql。 this is a android instant messenger based on socket communication basic functionality: 1. a user can register an account with a username, his/her age and gender 2. login with username and password 3. find out friends by username or particulars(age and gender) 4. chat with a friend with text and emoji 5. chatting history available for checking 6. messages sent to offline friends will be saved at server and pushed to that friend when he/she signs in 7. ringtone and vibration notification when a message arrived if messanger is not foreground
    2022-06-26 00:25:43下载
    积分:1
  • 安卓日历源码下载
    android 日历
    2014-12-24下载
    积分:1
  • compass
    说明:  简单指南针,实现指南针的功能,新手使用 Android Studio(Simple compass, realize the function of compass, novice use)
    2018-12-25 11:38:41下载
    积分:1
  • 微信公众平台开发模式(JAVA) SDK/微信app
    【核心代码】package com.gson;import java.io.File;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.IOException;import java.lang.reflect.Field;import java.lang.reflect.Method;import java.util.Date;import java.util.Properties;import javax.servlet.Filter;import javax.servlet.FilterChain;import javax.servlet.FilterConfig;import javax.servlet.ServletException;import javax.servlet.ServletInputStream;import javax.servlet.ServletRequest;import javax.servlet.ServletResponse;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;import org.apache.log4j.Logger;import com.gson.bean.Articles;import com.gson.bean.InMessage;import com.gson.bean.OutMessage;import com.gson.bean.TextOutMessage;import com.gson.inf.MessageProcessingHandler;import com.gson.util.Tools;import com.gson.util.XStreamFactory;import com.thoughtworks.xstream.XStream;/** * 请求拦截 * * @author GodSon * */public class WeChatFilter implements Filter { private final Logger logger = Logger.getLogger(WeChatFilter.class); private String _token; private String conf = "classPath:wechat.properties"; private String defaultHandler = "com.gson.inf.DefaultMessageProcessingHandlerImpl"; private Properties p; @Override public void destroy() { logger.info("WeChatFilter已经销毁"); } @Override public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; Boolean isGet = request.getMethod().equals("GET"); String path = request.getServletPath(); String pathInfo = path.substring(path.lastIndexOf("/")); if (pathInfo == null) { response.getWriter().write("error"); } else { _token = pathInfo.substring(1); if (isGet) { doGet(request, response); } else { doPost(request, response); } } } private void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException { response.setCharacterEncoding("UTF-8"); response.setContentType("text/xml"); OutMessage oms = new OutMessage(); ServletInputStream in = request.getInputStream(); // 转换微信post过来的xml内容 XStream xs = XStreamFactory.init(false); xs.alias("xml", InMessage.class); String xmlMsg = Tools.inputStream2String(in); logger.debug("输入消息:[" xmlMsg "]"); InMessage msg = (InMessage) xs.fromXML(xmlMsg); // 获取自定消息处理器,如果自定义处理器则使用默认处理器。 String handler = p.getProperty("MessageProcessingHandlerImpl"); if (handler == null) handler = defaultHandler; try { // 加载处理器 Class clazz = Class.forName(handler); MessageProcessingHandler processingHandler = (MessageProcessingHandler) clazz.newInstance(); // 取得消息类型 String type = msg.getMsgType(); Method mt = clazz.getMethod(type "TypeMsg", InMessage.class); oms = (OutMessage) mt.invoke(processingHandler, msg); if (oms == null) { oms = new TextOutMessage(); ((TextOutMessage) oms).setContent("系统错误!"); } setMsgInfo(oms,msg); } catch (Exception e) { logger.error(e); oms = new TextOutMessage(); ((TextOutMessage) oms).setContent("系统错误!"); try { setMsgInfo(oms,msg); } catch (Exception e1) { logger.error(e); } } // 把发送发送对象转换为xml输出 xs = XStreamFactory.init(true); xs.alias("xml", oms.getClass()); xs.alias("item", Articles.class); String xml = xs.toXML(oms); logger.debug("输出消息:[" xml "]"); response.getWriter().write(xml); } private void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { String signature = request.getParameter("signature");// 微信加密签名 String timestamp = request.getParameter("timestamp");// 时间戳 String nonce = request.getParameter("nonce");// 随机数 String echostr = request.getParameter("echostr");// // 验证 if (Tools.checkSignature(_token, signature, timestamp, nonce)) { response.getWriter().write(echostr); } } private void setMsgInfo(OutMessage oms,InMessage msg) throws Exception { // 设置发送信息 Class outMsg = oms.getClass().getSuperclass(); Field CreateTime = outMsg.getDeclaredField("CreateTime"); Field ToUserName = outMsg.getDeclaredField("ToUserName"); Field FromUserName = outMsg.getDeclaredField("FromUserName"); ToUserName.setAccessible(true); CreateTime.setAccessible(true); FromUserName.setAccessible(true); CreateTime.set(oms, new Date().getTime()); ToUserName.set(oms, msg.getFromUserName()); FromUserName.set(oms, msg.getToUserName()); } /** * 启动的时候加载wechat.properties配置 可以在过滤器配置wechat.properties路径 */ @Override public void init(FilterConfig config) throws ServletException { String cf = config.getInitParameter("conf"); if (cf != null) { conf = cf; } String classPath = this.getClass().getResource("/").getPath().replaceAll("%20", " "); conf = conf.replace("classPath:", classPath); p = new Properties(); File pfile = new File(conf); if (pfile.exists()) { try { p.load(new FileInputStream(pfile)); } catch (FileNotFoundException e) { logger.error("未找到wechat.properties", e); } catch (IOException e) { logger.error("wechat.properties读取异常", e); } } logger.info("WeChatFilter已经启动!"); }}
    2014-01-21下载
    积分:1
  • Android
    2022-09-08 08:50:02下载
    积分:1
  • Android_java_PushBox
    android ƽ̨
    2011-02-28 12:44:32下载
    积分:1
  • ImgListView_tpxlfd
    ListView头图片下拉放大效果在屏幕上按住下拉可以实现图片的放大,类似的效果可以在手机版的QQ空间看到,不过我没有想出这个例子图片放大可以应用的具体场景。(Listview head picture drop-down amplification effect in the screen hold down to achieve the picture enlarged. Similar effects can be seen in the mobile phone version of the QQ space, but I do not think this example picture amplification can be applied to the specific scene.)
    2016-06-24 17:46:44下载
    积分:1
  • android 下载网络图片 实例源码
    通过链接下载图片
    2015-01-23下载
    积分:1
  • 支付密码框,类似微信支付
    简单易懂的密码键盘,使用布局写成键盘,用圆点图片代替密码效果,通过接口回调的方式获取密码字符串。通过枚举配合view的点击事件将值存在List集合里面,然后根据长度刷新UI。可以通过修改源码达到你自己要的效果,代码中也做了注释,应该是比较容易看懂的
    2022-06-27 02:46:06下载
    积分:1
  • android 高德地图 实例源码下载
    android 高德地图 实例源码下载
    2014-08-21下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载