【Android】还原“微信”apk中的“发现”和“我”两个模块
先下载一个微信apk,以压缩包的形式打开,对比微信界面,找出我们需要的素材。
以下两个模块的还原完全采用RelativeLayout相对布局。
按钮效果的实现
点击对应版块,将有点击效果。这可以通过修改点击背景图实现。
在res目录下新建drawable目录,存放以下文件。
单行:selector_single.xml
- <?xml version="1.0" encoding="utf-8"?>
- <selector xmlns:android="http://schemas.android.com/apk/res/android" >
- <item android:state_pressed="false" android:drawable="@drawable/ic_preference_single_normal"></item>
- <item android:state_pressed="true" android:drawable="@drawable/ic_preference_single_pressed"></item>
- </selector>
多行顶端:selector_first.xml
- <?xml version="1.0" encoding="utf-8"?>
- <selector xmlns:android="http://schemas.android.com/apk/res/android" >
- <item android:state_pressed="false" android:drawable="@drawable/ic_preference_first_normal"></item>
- <item android:state_pressed="true" android:drawable="@drawable/ic_preference_first_pressed"></item>
- </selector>
多行中部:selector_body.xml
- <?xml version="1.0" encoding="utf-8"?>
- <selector xmlns:android="http://schemas.android.com/apk/res/android" >
- <item android:state_pressed="false" android:drawable="@drawable/ic_preference_normal"></item>
- <item android:state_pressed="true" android:drawable="@drawable/ic_preference_pressed"></item>
- </selector>
多行底部:selector_last.xml
- <?xml version="1.0" encoding="utf-8"?>
- <selector xmlns:android="http://schemas.android.com/apk/res/android" >
- <item android:state_pressed="false" android:drawable="@drawable/ic_preference_last_normal"></item>
- <item android:state_pressed="true" android:drawable="@drawable/ic_preference_last_pressed"></item>
- </selector>
“发现”模块
布局文件
- <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="match_parent"
- android:background="#E1E0DE"
- tools:context=".FindActivity" >
- <RelativeLayout
- android:id="@+id/relativeLayout1"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:background="#2B3439" >
- <TextView
- android:id="@+id/textView1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:text="发现"
- android:textColor="#fff"
- android:textSize="22sp" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/relativeLayout2"
- android:layout_width="fill_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_below="@+id/relativeLayout1"
- android:layout_marginTop="10dp"
- android:background="@drawable/selector_single"
- android:clickable="true" >
- <ImageView
- android:id="@+id/imageView1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/find_more_friend_photograph_icon" />
- <TextView
- android:id="@+id/text_pyq"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView1"
- android:text="朋友圈"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/relativeLayout3"
- android:layout_width="fill_parent"
- android:layout_height="100dp"
- android:layout_alignParentLeft="true"
- android:layout_below="@+id/relativeLayout2"
- android:layout_marginTop="10dp" >
- <RelativeLayout
- android:id="@+id/rel_sys"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:background="@drawable/selector_first"
- android:clickable="true" >
- <ImageView
- android:id="@+id/imageView3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/find_more_friend_scan" />
- <TextView
- android:id="@+id/text_sys"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView3"
- android:text="扫一扫"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView4"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="50dp"
- android:layout_alignParentBottom="true"
- android:layout_marginRight="-10.5dp"
- android:background="@drawable/selector_last"
- android:clickable="true">
- <ImageView
- android:id="@+id/imageView5"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/come_from_shake" />
- <TextView
- android:id="@+id/text_yyy"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView5"
- android:text="摇一摇"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView6"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/relativeLayout4"
- android:layout_width="match_parent"
- android:layout_height="100dp"
- android:layout_alignParentLeft="true"
- android:layout_marginTop="10dp"
- android:layout_below="@+id/relativeLayout3">
- <RelativeLayout
- android:id="@+id/rel_fjdr"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:background="@drawable/selector_first"
- android:clickable="true" >
- <ImageView
- android:id="@+id/imageView7"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/find_more_friend_near_icon" />
- <TextView
- android:id="@+id/text_fjdr"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView7"
- android:text="附近的人"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView8"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="50dp"
- android:layout_alignParentBottom="true"
- android:layout_marginRight="-10.5dp"
- android:background="@drawable/selector_last"
- android:clickable="true">
- <ImageView
- android:id="@+id/imageView9"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/come_from_bottle" />
- <TextView
- android:id="@+id/text_plp"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView9"
- android:text="漂流瓶"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView10"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/relativeLayout5"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_below="@+id/relativeLayout4"
- android:layout_marginTop="10dp"
- android:background="@drawable/selector_single"
- android:clickable="true">
- <ImageView
- android:id="@+id/imageView11"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/more_game" />
- <TextView
- android:id="@+id/text_yxzx"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView11"
- android:text="游戏中心"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView12"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- </RelativeLayout>
效果图
“我”模块
布局文件
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="#E1E0DE" >
- <RelativeLayout
- android:id="@+id/relativeLayout1"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:background="#2B3439" >
- <TextView
- android:id="@+id/textView1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerHorizontal="true"
- android:layout_centerVertical="true"
- android:text="我"
- android:textColor="#fff"
- android:textSize="22sp" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/relativeLayout2"
- android:layout_width="fill_parent"
- android:layout_height="90dp"
- android:layout_alignParentLeft="true"
- android:layout_below="@+id/relativeLayout1"
- android:layout_marginTop="10dp"
- android:background="@drawable/selector_single"
- android:clickable="true" >
- <ImageView
- android:id="@+id/imageView1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:layout_marginLeft="10dp"
- android:src="@drawable/special_spring_head2" />
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_centerVertical="true"
- android:layout_marginLeft="23dp"
- android:paddingTop="20dp"
- android:paddingBottom="20dp"
- android:layout_toRightOf="@+id/imageView1" >
- <TextView
- android:id="@+id/textView2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:text="决Jue"
- android:textColor="#000" />
- <TextView
- android:id="@+id/textView3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentBottom="true"
- android:layout_alignParentLeft="true"
- android:text="微信号:JueWYQ" />
- </RelativeLayout>
- <ImageView
- android:id="@+id/imageView2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/relativeLayout3"
- android:layout_width="fill_parent"
- android:layout_height="150dp"
- android:layout_alignParentLeft="true"
- android:layout_below="@+id/relativeLayout2"
- android:layout_marginTop="10dp" >
- <RelativeLayout
- android:id="@+id/rel_wdxc"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentTop="true"
- android:background="@drawable/selector_first"
- android:clickable="true" >
- <ImageView
- android:id="@+id/imageView3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/more_my_album" />
- <TextView
- android:id="@+id/text_sys"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView3"
- android:text="我的相册"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView4"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/rel_wdsc"
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_below="@id/rel_wdxc"
- android:layout_alignParentLeft="true"
- android:background="@drawable/selector_body"
- android:clickable="true">
- <ImageView
- android:id="@+id/imageView3"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/more_my_favorite" />
- <TextView
- android:id="@+id/text_sys"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView3"
- android:text="我的收藏"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView4"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- <RelativeLayout
- android:layout_width="wrap_content"
- android:layout_height="50dp"
- android:layout_alignParentBottom="true"
- android:layout_marginRight="-10.5dp"
- android:background="@drawable/selector_last"
- android:clickable="true">
- <ImageView
- android:id="@+id/imageView5"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/more_my_bank_card" />
- <TextView
- android:id="@+id/text_yyy"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView5"
- android:text="我的银行卡"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView6"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/relativeLayout4"
- android:layout_width="fill_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_below="@+id/relativeLayout3"
- android:layout_marginTop="10dp"
- android:background="@drawable/selector_single"
- android:clickable="true">
- <ImageView
- android:id="@+id/imageView1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/more_emoji_store" />
- <TextView
- android:id="@+id/text_pyq"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView1"
- android:text="表情商店"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- <RelativeLayout
- android:id="@+id/relativeLayout5"
- android:layout_width="fill_parent"
- android:layout_height="50dp"
- android:layout_alignParentLeft="true"
- android:layout_below="@+id/relativeLayout4"
- android:layout_marginTop="10dp"
- android:background="@drawable/selector_single"
- android:clickable="true" >
- <ImageView
- android:id="@+id/imageView1"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentLeft="true"
- android:layout_centerVertical="true"
- android:src="@drawable/more_setting" />
- <TextView
- android:id="@+id/text_pyq"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_centerVertical="true"
- android:layout_marginLeft="20dp"
- android:layout_toRightOf="@+id/imageView1"
- android:text="设置"
- android:textColor="#000" />
- <ImageView
- android:id="@+id/imageView2"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_alignParentRight="true"
- android:layout_centerVertical="true"
- android:layout_marginRight="10dp"
- android:src="@drawable/pay_nofify_nav" />
- </RelativeLayout>
- </RelativeLayout>
效果图
【Android】还原“微信”apk中的“发现”和“我”两个模块的更多相关文章
- android仿微信红包动画、Kotlin综合应用、Xposed模块、炫酷下拉视觉、UC浏览器滑动动画等源码
Android精选源码 仿微信打开红包旋转动画 使用Kotlin编写的Android应用,内容你想象不到 Android手机上的免Root Android系统日志Viewer 一个能让微信 Mater ...
- Android插件化(三)载入插件apk中的Resource资源
Android载入插件apk中的Resource资源 简单介绍 怎样载入未安装apk中的资源文件呢?我们从android.content.res.AssetManager.java的源代码中发现,它有 ...
- Android端IM应用中的@人功能实现:仿微博、QQ、微信,零入侵、高可扩展
本文由“猫爸iYao”原创分享,感谢作者. 1.引言 最近有个需求:评论@人(没错,就是IM聊天或者微博APP里的@人功能),就像下图这样: ▲ 微信群聊界面里的@人功能 ▲ QQ群聊界面里 ...
- Android 4.4(KitKat)中apk包的安装过程
原文地址:http://blog.csdn.net/jinzhuojun/article/details/25542011 事实上对于apk包的安装.4.4和之前版本号没大的区别. Android中a ...
- Android动态部署五:怎样从插件apk中启动Service
转载请注明出处:http://blog.csdn.net/ximsfei/article/details/51072332 github地址:https://github.com/ximsfei/Dy ...
- 使用Android Studio时so文件打包不到APK中
1,需要在build中添加如下配置,这是必备的 Android { sourceSets { main { jniLibs.srcDirs = ['libs'] ...
- Android插件化开发---执行未安装apk中的Service
欢迎各位增加我的Android开发群[257053751] 假设你还不知道什么叫插件化开发.那么你应该先读一读之前写的这篇博客:Android插件化开发,初入殿堂 上一篇博客主要从总体角度分析了一下 ...
- (转)从android一个apk中启动第三方apk应用
从android一个apk中启动第三方apk应用 我们在开发中,经常遇到遇到在一个apk中要去运行另外一个apk,就像我们windows一样,搞一个快捷方式一样,那怎么实现呢? 问题的核心点在于我们要 ...
- android读取apk中已经存在的数据库信息
在android数据库编程方面,大家有没有遇到过,我要从指定位置的已经存在的数据库来进行操作的问题.之前我尝试了很多方法都没有成功,后来找到了解决的方法. 下面说明下这段代码的意思,第一步先判断在 ...
随机推荐
- hdu 5062
题意:将10^0-10^6之间属于 "Beautiful Palindrome Number" 的数个数打印出来,所谓 "Beautiful Palindrome Nu ...
- phpmyadmin导出数据库为什么是php文件
你的迅雷在作怪,把它卸载了,或者在迅雷的高级设置中,关闭监听浏览器,就不会触发迅雷下载,就没问题了.或者360浏览器的话,把急速模式改为兼容模式
- 定义Foo() 函数,弹出对话框提示当前选中的是第几个单选框
function foo(){ var ele = document.getElementsByName("radioElement"); for(var i = 0;i<e ...
- 问题: Type mismatch in key from map: expected org.apache.hadoop.io.Text, recieved org.apache.hadoop.io.LongWritable 解决方案
在Job中添加相应的输入类型,例如: job.setMapOutputKeyClass(Text.class); job.setMapOutputValueClass(IntWritable.clas ...
- java对象初级知识
this属于类 方法中没有自己的this指针(本来以为js方法中有,其实并没有里,那是被new出来的function 在声明的时候可以赋初值: int a =12 但不能 int a ; a ...
- MapReduce UnitTest
通常情况下,我们需要用小数据集来单元测试我们写好的map函数和reduce函数.而一般我们可以使用Mockito框架来模拟OutputCollector对象(Hadoop版本号小于0.20.0)和Co ...
- google protocol buffer -2-.proto 定义规则
essage为主要关键字,类似于java中的class.定义简单message类型 SearchRequest.proto定义了每个查询请求的消息格式,每个请求都会有查询关键词query,查询结果的页 ...
- php wampp 访问数据库
//获取用户信息private function UlikeGetUserInfo($Wechat,$data) { $this->logger("到达UlikeFunction.in ...
- UIScrollView 滚动停止的时候一次调用此方法
//拖动返回选中的索引 当滚动视图停止时的时候 - (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView{ CGFloat wid ...
- postgres安装 以及修改postgres 密码
#postgres安装 apt-get install postgresql-9.3 postgresql-client-9.3 postgresql-contrib-9.3 postgresql-s ...