- 博客(15)
- 资源 (5)
- 收藏
- 关注
原创 android app还原出厂设置
设置 为系统app android:sharedUserId="android.uid.system" sendBroadcast(new Intent("android.intent.action.MASTER_CLEAR"));注意:应用一定要设置成系统app不然不会有效果
2017-03-31 14:25:59 987
转载 Android Launcher3 隐藏指定应用图标
http://blog.csdn.net/paullovazxq/article/details/52154468分两种情况: 1.有源码的应用。 因为Launcher是根据应用清单文件里[java] view plain copy "android.intent.category.LAUNCHER"/>
2017-03-29 19:43:38 2303
原创 android--actionBar
xml文件 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.c
2017-03-10 16:40:50 219
原创 DrawerLayout左边导航
xml文件<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" xmlns:app="http://schemas.android.
2017-03-10 09:15:08 292
原创 drawable属性
定义要在某些状态期间使用的可绘制对象,如其属性所述。必须是 元素的子项。属性:android:drawable可绘制对象资源。必备。引用可绘制对象资源。android:state_pressed布尔值。如果在按下对象(例如触摸/点按某按钮)时应使用此项目,则值为“true”;如果在默认的未按下状态时应使用此项目,则值为“false”。android:state_focused布尔
2017-03-09 20:02:42 624
原创 android--导航(BottomNavigationBar)
第一步:创建 NavigationFragment public class NavigationFragment extends Fragment implements BottomNavigationBar.OnTabSelectedListener { HomeFragment homeFragment; LikeFragment likeFragment;
2017-03-09 16:12:52 776
原创 android-onDraw画图
public class BrashView extends View { String TAG="BrashView"; Path path=new Path(); Paint brush=new Paint(); Button btnRresh; ViewGroup.LayoutParams layoutParams; public BrashV
2017-03-07 22:47:36 1206
原创 android-service4
一.创建: aidl文件package com.example.administrator.servicetest.aidl;// Declare any non-default types here with import statements interface IMyAidlInterface { /** * Demonstrates some basi
2017-03-07 22:41:51 322
原创 android-service3
通过 Messenger实现service,可以实现两个进程直接通信。一.创建 Servicepublic class MyService_message extends Service{public static final int MSGID=1;/** * 用于接收从客户端传递过来的数据 */private class ServiceMessage extends Ha
2017-03-06 21:24:41 292
原创 android-service2
1. 创建一个service:public class MyService extends Service {//实现onBindpublic IBinder onBind(Intent intent) { // TODO: Return the communication channel to the service. return binder;// th
2017-03-04 10:26:06 366
原创 android-service
1. 创建一个service:public class MyService extends Service {}2.在清单中申明serviceapplication> service android:name=".MyService" android:enabled="true" android:exported="
2017-03-03 22:30:30 279
原创 底部导航---BottomNavigationBar
1.创建一个MainActivityprivateprivate NavigationFragment mNavigationFragment;@Overrideprotected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activi
2017-03-03 10:04:06 697
原创 修改android升级系统后启动系统,提示android正在启动
实现要求:开机启动后提示"Android正在升级..."将android 去掉改成‘系统’ \frameworks\base\core\res\res\values-zh-rCN\string.xml、 要改的位置就在下面这个节点: "android 正在升级..." "android 正在启动…"
2017-03-02 11:13:48 5687
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人