微信转账转错对方微信把我拉黑拉黑怎么办

匿名用户不能发表回复!|
每天回帖即可获得10分可用分!小技巧:
你还可以输入10000个字符
(Ctrl+Enter)
请遵守CSDN,不得违反国家法律法规。
转载文章请注明出自“CSDN(www.csdn.net)”。如是商业用途请联系原作者。效果如下演示:
我下载了2个文件(.class和.jar)和网页代码,将桌面设为Web桌面,效果是出来了,但速度太慢了,不好。
有什么更好的或其他方法实现类似这样的效果吗?
这种东西是不是要求显卡要非常好才行?
我的是Geforce MX440显卡,2005年以前买的。
全部答案(共1个回答)
从系统中删除掉就会出现你希望得到的效果了。
安装方法是下载完lumaqq,然后解压缩(右键文件-释放文件,选择好文件保存的路径就可以了),这样该软件就装好了,双击 t,就可以打开使用了
你好:
这是因为你的显卡驱动没有安装造成的,安装显卡驱动就好了。
安装方法:
首先把驱动光盘放入光驱
1)右键‘我的电脑’并选择‘属性’
2)选择‘硬件’---...
右键我的电脑.属性.硬件..设备管理器.看下是否有黄色?号.如有就要装驱动.用主板驱动盘装显卡驱动.
可能的原因:
1.电脑旁有其他的电器类产品。
这会导致电脑屏幕出现水波纹现象。
电脑与电器类产品摆放的距离不能太近。
2.对比度设置...
大家还关注
确定举报此问题
举报原因(必选):
广告或垃圾信息
激进时政或意识形态话题
不雅词句或人身攻击
侵犯他人隐私
其它违法和不良信息
报告,这不是个问题
报告原因(必选):
这不是个问题
这个问题分类似乎错了
这个不是我熟悉的地区RecyclerView:模仿ListVIew的点击波纹效果和分隔线 - 简书
RecyclerView:模仿ListVIew的点击波纹效果和分隔线
使用 RecyclerView 之前先需要导入依赖包,有两种方法:方法1:直接在 build.gradle(module:app) 中写 compile 'com.android.support:recyclerview-v7:24.2.0'方法2:File -& Project Structure -& app-& Dependencies -& 点击"+"号 -& LibraryDepencies 搜索recyclerview,找到下图高亮的library
supportrecyclerview
波纹效果通过 drawable文件,有个系统自带的 ripple 元素注意:系统的波纹效果需要 API 21以上的支持。
创建 drawable 文件:
drawable/main_touchedbackground.xml
&?xml version="1.0" encoding="utf-8"?&
&ripple xmlns:android="/apk/res/android"
android:color="#D7D7D7"&
&item android:drawable="#FAFAFA" /&
配置&ripple&元素,其中 color 属性是点击时触发的颜色,而 &item& 配置的是正常状态时显示的颜色。
创建 item,并应用到 Layout 中:
layout/item_main.xml
&LinearLayout xmlns:android="/apk/res/android"
android:layout_width="match_parent"
android:layout_height="70dp"
android:orientation="horizontal"
android:clickable="true"
android:background="@drawable/main_touchedbackground"&
&ImageView
android:id="@+id/imageView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:src="@mipmap/ic_launcher" /&
android:id="@+id/textView"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_weight="1"
android:gravity="center_vertical" /&
&/LinearLayout&
在 &LinearLayout& 中配置 android:clickable 和 android:background属性,clickable不设置为true的话会没有点击效果。
在主 Layout 中添加 &RecyclerView& 元素
layout/activity_main.xml
&?xml version="1.0" encoding="utf-8"?&
&LinearLayout xmlns:android="/apk/res/android"
xmlns:tools="/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:padding="16dp"
tools:context="com.example.recyclerviewdemo.MainActivity"&
&android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scrollbars="vertical"
android:id="@+id/recyclerView"&
&/android.support.v7.widget.RecyclerView&
&/LinearLayout&
创建一个继承自
RecyclerView.Adapter 的类:
com.example.recyclerviewdemo.CustomAdapter
public class CustomAdapter extends RecyclerView.Adapter{
private String[]
public CustomAdapter(String[] items) {
this.items =
//显示图片
public class ItemViewHolder extends RecyclerView.ViewHolder {
private TextView textV
public ItemViewHolder(View itemView) {
super(itemView);
textView = (TextView) itemView.findViewById(R.id.textView);
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
return new ItemViewHolder(LayoutInflater.from(parent.getContext())
.inflate(R.layout.item_main, parent, false));
public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) {
if (holder instanceof ItemViewHolder) {
((ItemViewHolder) holder).textView.setText(items[position]);
public int getItemCount() {
return items.
public int getItemViewType(int position) {
MainActivity的配置
com.example.recyclerviewdemo.MainActivity
public class MainActivity extends AppCompatActivity {
private RecyclerView recyclerV
private CustomA
private String[] text = {"Java", "C", "C#", "C++", "PHP", "Ruby", "R", "Swift", "Groovy",
"Objective-C", "Lisp"};
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
adapter = new CustomAdapter(text);
recyclerView.setAdapter(adapter);
添加分隔线
接下来添加分隔线需要重写装饰类 RecyclerView.ItemDecoration,画分隔线:com.example.recyclerviewdemo.CustomItemDecoration
public class CustomItemDecoration extends RecyclerView.ItemDecoration {
public static final String TAG = "decoration";
private Drawable dividerL
public CustomItemDecoration(Context context) {
dividerLine = context.getDrawable(R.drawable.main_divider);
public void onDraw(Canvas c, RecyclerView parent, RecyclerView.State state) {
int left = parent.getPaddingLeft();
int right = parent.getWidth() -
int childViewCount = parent.getChildCount();
for (int i = 0; i & childViewC i++) {
View childView = parent.getChildAt(i);
RecyclerView.LayoutParams params = (RecyclerView.LayoutParams) childView.getLayoutParams();
//top = childView's bottom + childView's end margin
int top = childView.getBottom() + params.getMarginEnd();
//bottom = top + 分隔线的真实高度
int bottom = top + dividerLine.getIntrinsicHeight();
//画分隔线
dividerLine.setBounds(left, top, right, bottom);
dividerLine.draw(c);
//重写此方法,防止设置的波纹背景把分隔线覆盖掉。
public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
//除最后一行外,向下位移分隔线
int currentItemPosition = parent.getChildAdapterPosition(view);
int endItemPosition = parent.getAdapter().getItemCount() - 1;
if (currentItemPosition != endItemPosition ) {
outRect.bottom = dividerLine.getIntrinsicHeight();
相当于是通过各个角的位置来画一个矩形。
自定义的分隔线
drawable/main_divider.xml
&?xml version="1.0" encoding="utf-8"?&
&shape xmlns:android="/apk/res/android"
android:shape="rectangle"&
android:width="1px"
android:height="1px" /&
&solid android:color="#FF424242" /&
代码中添加配置的 ItemDecoration
com.jkxy.recyclerviewdemo.MainActivity 中添加代码
recyclerView.addItemDecoration(new CustomItemDecoration(this));
最终的显示效果:为什么我的Material Design程序点击时没有波纹扩散效果 - 简书
为什么我的Material Design程序点击时没有波纹扩散效果
这个问题是我在模仿项目的时候出现的,没想到这个还挺棘手的,主要是麻烦,有几个注意事项。
这个问题困扰的时间还挺长,有时候就打算不去管它了,但是在今天却居然莫名其妙的解决了,总结起来就是几个问题是跟很多地方的代码有关,有一处代码不一样,就没有这种效果。
其实这是一个关于RecyclerView的问题,当我们以前使用ListView的时候,系统默认会给设置一个点击时的按下效果,但是当我们使用RecyclerView时,若不设置每一个条目的背景时,那么在点击时就没有任何效果。本文是通过获取系统提供的背景资源来设置点击时的显示效果。在5.0以上,会出现波纹扩散的效果,而在以前的Android版本,就只是单单的背景色改变,效果就是在上面的库中展示的样子。
上段里已经说明的这个问题的解决方式,那么下面就通过几个步骤来解决这个问题。不过解决不仅仅是通过改变背景资源,还有其他值得注意的地方。
1,首先要注意主题格式:
这里的话需要看一下关于5.0中的设计的颜色方案,以及style中的几个重要item:
&style name="BaseAppTheme" parent="Theme.AppCompat.Light.NoActionBar"&
&item name="colorPrimaryDark"&@color/purple_600&/item&
&item name="colorPrimary"&@color/purple_400&/item&
&item name="colorAccent"&@color/purple_A400&/item&
&item name="android:windowBackground"&@color/purple_100&/item&
此处注意下面这张图(该图中给出了主题颜色的主要属性名):
material_theme 主题颜色对应.png
2,在加载layout的时候,需要给布局设置相同主题的背景资源id:
View view = LayoutInflater.from(viewGroup.getContext())
.inflate(R.layout.check_item, viewGroup, false);
TypedValue typedValue = new TypedValue();
getActivity().getTheme().resolveAttribute(R.attr.selectableItemBackground, typedValue, true);
view.setBackgroundResource(typedValue.resourceId);
3,itemView必须要设置clickable为true;
下面的就是整体的Adapter的代码,如果与下面的代码一致,那么这个效果就是有的:
final RecyclerView view = (RecyclerView) inflater.inflate(R.layout.fragment_read,container, false);
view.setLayoutManager(new LinearLayoutManager(getActivity()));
view.setAdapter(new RecyclerView.Adapter() {
class ViewHolder extends RecyclerView.ViewHolder {
public TextView textV
public ViewHolder(View itemView) {
super(itemView);
textView = (TextView) itemView.findViewById(R.id.check_item_textview);
public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) {
View view = LayoutInflater.from(viewGroup.getContext())
.inflate(R.layout.check_item, viewGroup, false);
TypedValue typedValue = new TypedValue();
getActivity().getTheme().resolveAttribute(R.attr.selectableItemBackground, typedValue, true);
view.setBackgroundResource(typedValue.resourceId);
return new ViewHolder(view);
public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int i) {
((ViewHolder)viewHolder).textView.setText("VIDEO");
viewHolder.itemView.setClickable(true);
public int getItemCount() {
return 50;
另外,在使用RecyclerView的时候,其Adapter不建议使用匿名内部类,因为当你不这么做时,极有可能在后续的编码中获益。

我要回帖

更多关于 微信转账后拉黑对方 的文章

 

随机推荐