android
happy_to_you
这个作者很懒,什么都没留下…
展开
-
android知识点一:自定义xml对话框
xml自定义对话框 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="ve原创 2013-08-27 23:32:43 · 836 阅读 · 0 评论 -
Android自定义圆角Dialog
安卓自定义Dialog原创 2017-03-13 16:50:51 · 563 阅读 · 0 评论 -
Android效果:FrameLayout实现中间头像的Dialog
1.Dialog布局xml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content" andro原创 2017-03-01 15:54:21 · 716 阅读 · 0 评论 -
Android知识点十二:receiver判断网路连接
receiver实现监听网路开关 AndroidManifest.xml java文件: public class NetworkReceiver extends BroadcastReceiver { @Override public vo原创 2015-01-14 15:43:30 · 798 阅读 · 0 评论 -
Android知识点九(ViewPager + Fragment 实现底部菜单栏)
1.common_title_layout.xml()原创 2014-11-03 10:52:06 · 1272 阅读 · 0 评论 -
Android知识点八(sqllite数据库操作,以及sqlite+handler+XListView实现上拉刷新下拉加载)
1.DBHelper类数据库辅助类:原创 2014-11-01 10:21:16 · 1305 阅读 · 0 评论 -
Android知识点十:FrameLayout结合RadioGroup用法
void initListener() { foot_nav_bar_rgroup .setOnCheckedChangeListener(new OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup arg0, int position) { swit原创 2014-11-12 15:53:43 · 1206 阅读 · 0 评论 -
Android知识点七:WebView自适应
WebView自适应原创 2014-04-28 11:30:38 · 738 阅读 · 0 评论 -
Android知识点五:底部菜单效果(方式1)
首先是activity_mian.xml(首页布局) <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:back原创 2014-03-09 23:28:12 · 975 阅读 · 0 评论 -
Android知识点五:底部菜单效果(方式2)
首先是activity_mian.xml(首页布局) <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="match_parent" android:layout_he原创 2014-03-09 23:34:34 · 945 阅读 · 0 评论 -
Android知识点六:自定义分享菜单
首先布局:activity_main.xml<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:orientat原创 2014-03-12 17:48:47 · 1236 阅读 · 0 评论 -
Android知识点三:欢迎界面淡入淡出效果
欢迎界面淡入淡出效果 welcome布局 <ImageView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/logo" android:layout_width="match_parent" android:layout_height="mat原创 2014-03-04 11:29:13 · 1088 阅读 · 0 评论 -
Android知识点四:侧栏滑动效果
首先准备工作:mframework.jar包(SlidingMenu) MainActivity.java private SlidingMenu menu; private MianAdapter mainAdapter; @Override protected void onCreate(Bundle savedInstanceState) { super.on原创 2014-03-04 21:03:08 · 1644 阅读 · 0 评论 -
Android知识点四:头部滑动菜单
首先:布局 <HorizontalScrollView android:id="@+id/hscrollview" android:layout_width="fill_parent" android:layout_height="35dp" android:layout_marginTop="-3dp" a原创 2014-03-04 22:44:18 · 1331 阅读 · 0 评论 -
Android知识点三:开机自启动
Android开机自启动,广播接收器: 权限: receiver: Java: public class BootReceiver extends BroadcastReceiver {原创 2014-01-09 23:53:43 · 737 阅读 · 0 评论 -
android上传图片与显示
android上传图片然后在加载出来显示。 网上看了看,大部分用的是以流的方式post过去。 首先android端:(只贴出关键性代码) 以下是装载ImageView显示图片并且得到装载后的图片的路径picPath@Override protected void onActivityResult(int requestCode, int resultCode, Intent原创 2013-09-10 22:19:27 · 1678 阅读 · 0 评论 -
android知识点二:ProgressDialog对话框
对于这个ProgressDialog 超好用 主要是运用在异步操作的时候...下面来具体看看ProgressDialog 类 mpDialog = new ProgressDialog(MainActivity.this); mpDialog.setProgressStyle(ProgressDialo原创 2013-08-27 23:54:56 · 738 阅读 · 0 评论 -
Android的Viewpager+Fragment懒加载
1.首先用到的库文件:https://github.com/lianghanzhen/LazyViewPager2.xml布局:xml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.andr原创 2017-08-07 11:01:25 · 469 阅读 · 0 评论