转载请注明出处:王亟亟的大牛之路
最近不忙在翻Git的时候发现这个自定义吐司(Toast)的开源库,就写这篇博文我分享给大家,话不多说线上截图(貌似很多截屏录像的APP都掏ROOT,测试机懒得弄,有知道其他方法的小伙伴帮忙推荐哈)
一些自定义的吐司和Animation,在不适用Dialog想用吐司省立的时候还是一个不错的选择哦!包目录
一个Demo包,一个Lib包,Lib包里的...
分类:
其他好文 时间:
2015-07-09 13:17:45
阅读次数:
158
当今的app基本上有两个操作,一个是加载数据 ,一个就是把数据显示到页面上。但如果页面特别的多。就每个页面都要加载数据,就要写 loading 页面。我之前就是用dialog写,抽取出来一个类。哪里需要了就在那里添加以下代码。我发现我大多数时间都在 重复的 添加 loading代码。为此总加班。
下面是页面多的时候状态
这要再多点儿 一个一个的写不但代码不好看,自己也累得慌下面我们就来说一下...
分类:
其他好文 时间:
2015-07-08 19:11:07
阅读次数:
262
第一部分 个性化控件(View)主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar及其他如Dialog、Toast、EditText、TableView、Activit...
分类:
移动开发 时间:
2015-07-07 16:18:41
阅读次数:
303
Android studio 报错 Error:(24, 13) Failed to resolve: com.android.support:recyclerview-v7:20.+
Install Repository and sync projectShow in FileShow in Project Structure dialog
Error:(25, 13)...
分类:
移动开发 时间:
2015-07-07 11:09:22
阅读次数:
3100
Building an Alert DialogTheAlertDialogclass allows you to build a variety of dialog designs and is often the only dialog class you'll need. As shown i...
分类:
移动开发 时间:
2015-07-05 21:15:32
阅读次数:
360
Creating a Dialog FragmentYou can accomplish a wide variety of dialog designs—including custom layouts and those described in theDialogsdesign guide—b...
分类:
移动开发 时间:
2015-07-05 19:51:47
阅读次数:
174
DialogsA dialog is a small window that prompts the user to make a decision or enter additional information. A dialog does not fill the screen and is n...
分类:
移动开发 时间:
2015-07-05 19:51:36
阅读次数:
306
转载: http://www.androidchina.net/2297.html1.首先定义动画2.在布局文件中引入 但无法达到在项目中使用的便捷性,不可能每一个需要用到此Dialog的地方都需要在相应的xml文件中定义该ProgressBar的控件吧,如果开发中界面使用多层次的Frame...
分类:
移动开发 时间:
2015-07-05 14:58:06
阅读次数:
135
对于一些特殊的dialog,我们想自己定义一些特殊的样式,这时候如果使用dialog指定的一些功能,是无法实现我们的需求的,这时候就要自己去定制实现dialog了,现在这个例子是我从stackoverflow搜的,是定制dialog的基础,如果大家想定制其他样式,可以在这个基础上去自己修改,下面我贴出这个定制代码的源码:
custom_dialog.xml:
xml version="...
分类:
移动开发 时间:
2015-07-04 18:31:38
阅读次数:
143
遇到一个问题记录下来,在开发中使用了AlertDialog,想点击屏幕其他区域的时候让这个dialog消失,一开始不做任何设置,在小米手机可以正常显示,但是在三星中却有问题,后来发现少了一个属性:View dilaogView = initDialogView();
builder = new AlertDialog.Builder(...
分类:
移动开发 时间:
2015-07-03 15:57:05
阅读次数:
177