主要利用三角函数和贝塞尔曲线实现粘连效果,角度和坐标对应关系如下 /** * qq气泡 */ public class BubbleView extends View { //原始气泡半径
这篇博客实现的功能主要有仿微信,QQ 上传图像裁剪功能,包括拍照,从相册选取。裁剪框的样式有圆形,正方形,九宫格。...它的实现原理是通过空白的 fragment 处理实现的,有兴趣的可以看我这一篇博客 Android Fragment 的妙用 - 优雅地申请权限和处理 onActivityResult ClipImageActivity.goToClipActivity...// 释放资源 mImageView.destroyDrawingCache(); return zoomedCropBitmap; } ---- 题外话 这个 Demo 涉及到的 Android...Android 7.0 图片拍照适配,6.0 动态权限申请,Android 使用空白 fragment 处理 onActivityResult,动态权限申请,自定义 View,View 的事件分发机制等等
现在侧滑菜单的框架在github上也有很多,有兴趣的可以去搜一下,今天我就给大家展示一个简单的仿qq侧滑菜单的例子。...> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:qq_menu="http...="match_parent" android:layout_height="match_parent" tools:context="com.earthchen.qq_menu.MainActivity..."> qq_menu.view.SlidingMenu android:id="@+id/id_menu" android:layout_width...="match_parent" android:layout_height="match_parent" qq_menu:rightPadding="100dp">
; import android.graphics.Bitmap; import android.graphics.Bitmap.CompressFormat; import android.graphics.Bitmap.Config...; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint;... import android.graphics.Path; import android.util.AttributeSet; import android.view.MotionEvent...; import android.view.View; public class MainView extends View { private Paint paint; private...sdState.equals(android.os.Environment.MEDIA_MOUNTED)) { Toast.makeText(this
登录QQ的时候,我们会看到在登录界面的背景不是静态的,而是一段动画效果,刚开始觉得蛮好奇的,现在我们也来实现一下这种效果,实现起来还是挺简单的。...; import android.media.MediaPlayer; import android.util.AttributeSet; import android.view.KeyEvent; import...:id="@+id/videoview" android:layout_width="match_parent" android:layout_height="match_parent...} }); 5、静态效果图展示 注:效果是视频动画,这里只截了一帧 [wiay5m02ax.png] 在这里插入图片描述 到这里就完成了,源码:公众号回复 "仿QQ...登录背景动画效果" --- 小编整理了一份Android电子书籍,需要的童鞋关注公众号回复:"e_books" 即可获取哦!
这次这篇文章主要给大家带来一个高仿QQ健康的自定义View的实现,在介绍的过程中会对涉及到的自定义View相关知识点进行简单的说明,着重点还是在怎么是实现这个自定义View上。 好了,话不多说。...我们来看看QQ健康页面的这个View吧。下面就是给大家讲解这个View怎么去实现。...我们都知道在Android中画一个圆弧需要一个这个圆弧的外接矩形,mArcRect就是这个外接矩形,mArcWidth和mBarWidth是对应画笔的宽度,在这个方法中我们对这些值作了初始化的工作。...Android 自定义View高级特效,神奇的贝塞尔曲线 最后我们来看看怎么对右下角的那个查看添加点击事件吧 其实还是很简单,我们找到右下角对应的一个矩形区域,然后判断当前点击的坐标在不在这个矩形区域内就可以了...是不是还是挺不错的,并且还能自适应大小,和QQ的基本上一模一样。
https://blog.csdn.net/lyhhj/article/details/50612714 绪论: 好久没写博客了,最近比较懒,不想写博客,但是在看书,看一些Android进阶的书...《Android群英传》 —徐宜生 2.《Android开发艺术探索》 —任玉刚 3....《Android源码设计模式》 —何红辉,郭爱民 以上几本是针对Android开发所用的,如果上面三本你都吃透了的话,相信你就可以在Android的世界里尽情的翱翔了。...《MacTalk跨越边界》 好了,下面进入正题吧,今天小编给大家分享的是:仿QQ聊天实现左滑效果,先看一下效果吧: image.png 实现: 1.定义滑动选项视图 通过监听滑动手势弹出滑动选项卡
前言 原生仿QQ https://github.com/wangyang0210/Imitate-QQ-For-Mini-Program 这个是当时学习小程序时,模仿的一个demo,只不过是纯页面没啥具体的功能...做之前考虑哪些是可以复用的就封账成组件 最后确定使用colorUI+mpvue+gateway来实现,代码更新在github https://github.com/wangyang0210/Imitate-QQ-For-Mini-Program.../tree/mp-color-qq 2019-05-21 13:51:09 前端代码基本更新完毕
一 前言 侧滑对于Android来说实现方式多种多样,但是具体那种方式能满足我们的需求和适用场景那就很难说了,曾试过继承RecyclerView,自定义Adapter等方法,但是效果并不是很理想.最终定制版的...仿qq的侧滑,跟随滑动… 简单的侧滑点击删除,覆盖滑动… 二 知识准备 ItemTouchHelper是Android系统提供的一个帮助类,可以很轻松的用它实现长按拖拽和侧滑删除功能(这里的是侧滑之后直接删除整条...<TextView android:id="@+id/item_text" android:layout_width="match_parent" android...:layout_height="50dp" android:background="#e1e1e1" android:gravity="center" android...:tag="slide_flag" android:text="item" android:textColor="#333333" android:textSize
最近做一个登录的界面,我脑子里一下就想到QQ的登录界面,简单,美观,所以就找了些资料实现了下,现在整理下 先来看下效果图 1.首先是布局文件XML文件,不解释直接上 1>主界面 1 android="http://schemas.android.com/apk/res/android" 2 xmlns:tools="http://schemas.android.com...> 2 android="http://schemas.android.com/apk/res/android" 3 android:layout_width..." 10 android:layout_height="wrap_content" 11 android:id="@+id/list" 12 android...> 2 android="http://schemas.android.com/apk/res/android" 3 android:layout_width
仿QQ聊天室项目 完整代码见 https://github.com/skyerhxx/QQ-Project 完整项目结构 QQ_Client QQ_Server...登录界面 创建普通Java项目 并创建model、view、tools、common 四个包 在view下创建QqClientLogin.java /** * 功能: qq...客户端登录界面 */ package com.qq.client.view; import javax.swing.*; import java.awt.*; import java.awt.event...客户端登录界面 */ package com.qq.client.view; import javax.swing.*; import java.awt.*; import java.awt.event...)); //处理界面中部 jp2 = new JPanel(new GridLayout(3,3)); jp2_jbl1 = new JLabel("QQ
切换 使用RadioGroup和RadioButton实现仿qq底部切换 使用RadioGroup和ViewPager 实现可以滑动切换的仿qq底部Tab切换 解决Fragment多次实例化的几种方案...RadioGroup和ViewPager 实现可以滑动切换的仿qq底部Tab效果图 ? 使用FragmentTabHost实现qq底部Tab切换 第一步先看布局文件 <?...---- 使用RadioGroup和RadioButton实现仿qq底部切换 第一步 ,先看布局文件 <?xml version="1.0" encoding="utf-8"?...showFragment(mCurFragment, to); mCurFragment = to; } }); ---- 使用RadioGroup和ViewPager 实现可以滑动切换的仿qq...// 设置左右页面 能缓存的fragment 数量 mViewPager.setOffscreenPageLimit(fragmentAdapter.getCount() - 1); ---- 到此仿qq
.widget.RecyclerView android:layout_width="match_parent" android:layout_height="wrap_content"...android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent..." android:layout_height="45dp" xmlns:app="http://schemas.android.com/apk/res-auto" android...> <TextView android:id="@+id/title_one" android:layout_width="0dp" android...:layout_height="wrap_content" android:layout_weight="2" android:textColor="@android:color
> android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent...> android="http://schemas.android.com/apk/res/android" android:layout_width=...android:background="@drawable/mm_title_back_btn" android:textColor="@android:color/white" android...="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android... android.graphics.Bitmap; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener
介绍 不知道大家是否有印象,QQ 曾经有个版本用到了一种双向侧拉菜单,就像窗帘一样可以两边开合,并且伴有 3D 旋转效果,效果非常酷炫,吸引很多人模仿实现。...Android 系统提供了一个侧拉抽屉控件,叫 DrawerLayout,使用过的人都知道,效果不错并且有一定拓展性,基于 DrawerLayout 我们可以实现 QQ 的效果,但是今天我们要介绍的是另一个思路...这个思路非常简单,并且你可以很方便地拓展出任何你想要的效果,说不定做的比 QQ 更酷炫哦。 效果 首先来看下最终实现的效果(gif 版) 2D 模式 ?...<com.makeunion.curtainslayout.CurtainsLayout xmlns:android="http://schemas.android.com/apk/res/android..." xmlns:curtains="http://schemas.android.com/apk/res-auto" android:id="@+id/id_menu" android
相信大家在开发中经常用到,ScrollView的功能已经很强大了,但是仍然满足不了我们脑洞大开的UI设计师们,所以我们要自定义…本篇文章主要讲监听ScrollView的滑动实现仿QQ空间标题栏渐变,先看一下效果图...> 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:src="@drawable/banner3" android:layout_width="match_parent" android...android:layout_height="55dp" android:gravity="center|bottom" android:text="我是标题
@TOC 一、网站题目 音乐网页设计 、仿网易云音乐、各大音乐官网网页、明星音乐演唱会主题、爵士乐音乐、民族音乐、等网站的设计与制作。...link rel="stylesheet" href="css/base.css"> QQ...> QQ...音乐客户端 QQ音乐...音乐1(1)_07.jpg" alt=""> Android版
在qq空间里有好多网页特效值得初学html和js的去学习,今天我来介绍一种特效。我们在上qq空间是都会发现,当向下滚动鼠标,使滚动条到达最低端的时候,好友动态会自动增加。
github地址 https://github.com/sunguowei 最近项目要做一个QQ5.0的侧滑菜单效果,和传统的侧滑菜单存在着一些差异。想必大家都已经见识过了。...非常感谢Jeremy Feinstein提供的这个库,让广大Android Developers省去了非常多的麻烦。...#writeToParcel(android.os.Parcel, int) */ public void writeToParcel(Parcel out, int flags...#fitSystemWindows(android.graphics.Rect) */ @SuppressLint("NewApi") @Override protected...GitHub https://github.com/sunguowei/Android-ResideMenu CSDN资源 http://download.csdn.net/detail/manoel
2 xmlns:android="http://schemas.android.com/apk/res/android" 3 xmlns:app="http://schemas.android.com.../apk/res-auto" 4 xmlns:tools="http://schemas.android.com/tools" 5 android:layout_width="match_parent..." 6 android:layout_height="match_parent" 7 tools:context="com.knight.qq_redpoint.MainActivity..."> 8 9 qq_redpoint.RedPointView 10 android:layout_width="match_parent" 11...5 项目例子 github地址: https://github.com/KnightAndroid/QQ_RedPoint
领取专属 10元无门槛券
手把手带您无忧上云