一些问题

1、This app has been built with an incorrect configuration...

1、Error

This app has been built with an incorrect configuration,Please configure your build for VectorDrawableCompat.

2、方案

将gradle升级到最新版本

buildscript {
  ...
  dependencies {
    classpath 'com.android.tools.build:gradle:2.1.0'
  }
}

参考:
As of v2.0 of the Gradle plugin, library resources are never rasterized so this should never happen(Android的光栅化 )

2、FAB to hide when navigating between different fragments in a viewpager

FAB to hide when navigating between different fragments in a viewpager

3、在CoordinatorLayout + ActionBar时,FrameLayout被置于屏幕的不可见位置。。。

FrameLayout部分不可见

1、在FrameLayout上添加 android:paddingBottom="?attr/actionBarSize"



    

        

            
        
    


    


    


2、Bring the AppBarLayout and Toolbar into your fragment. The fragment can set up the supportActionBar
on the Toolbar and do everything that would normally be done in the activity.

main.xml





    


    


fragment.xml



    


        

            

        


        


    

    



Fragment.java

    toolBar.setTitle("");
    ((AppCompatActivity)mListener).setSupportActionBar(toolBar);
还返券.gif

3、添加Space




    
        ...
    


        


            

                ...
               
                
                
            

        


    
       
       ...

    



CoordinatorLayout + ActionBar + Fragments
Hide Toolbar in activity from fragment using CoordinatorLayout

4、

你可能感兴趣的:(一些问题)