Code Monkey home page Code Monkey logo

flycosystembar's People

Contributors

h07000223 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flycosystembar's Issues

not working after changing support library version

I changed the gradle file in the root dir, like this:
ext {
//Sdk and tools
minSdkVersion = 19
targetSdkVersion = 22
compileSdkVersion = 24
buildToolsVersion = '24'

//App dependencies
supportLibraryVersion = '23.4.0'
butterknife = '7.0.1'
circleimageview = '2.0.0'

}

MIUI 9之后,以前的方法无效,统一成原生的方法了

见文档:https://dev.mi.com/console/doc/detail?pId=1159
代码修改如下

//    /**
////     * 判断是否为MIUI6以上
////     */
////    public static boolean isMIUI6Later() {
////        try {
////            Class<?> clz = Class.forName("android.os.SystemProperties");
////            Method mtd = clz.getMethod("get", String.class);
////            String val = (String) mtd.invoke(null, "ro.miui.ui.version.name");
////            val = val.replaceAll("[vV]", "");
////            int version = Integer.parseInt(val);
////            return version >= 6;
////        } catch (Exception e) {
////            return false;
////        }
////    }
  
   /**
     * 判断是否为MIUI6以上9以下
     */
    public static boolean isMIUI6LaterAnd9Before() {
        try {
            Class<?> clz = Class.forName("android.os.SystemProperties");
            Method mtd = clz.getMethod("get", String.class);
            String val = (String) mtd.invoke(null, "ro.miui.ui.version.name");
            val = val.replaceAll("[vV]", "");
            int version = Integer.parseInt(val);
            return version >= 6 && version < 9;
        } catch (Exception e) {
            return false;
        }
    }

Fragment切换statusbar

现在有四个Fragment来回之间的切换,首页的顶部是图片需要扩展到状态栏,就是沉浸式状态栏,但是其他的都是colorPrimary的颜色状态栏,,应该如何实现呢

status bar colour in android 4.0

Hi, I'd like to change the status bar color on android 4.0 devices

I saw that the colour change works on jelly bean, but I'd also like to have a specific colour on all my devices (my app is actually targeting v2.3 and above but if it works on android 4.0 that's fine for me.)

So can this library help me do that ??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.