Git Product home page Git Product logo

actionbarex's People

Contributors

goweii avatar mbacuiz 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

actionbarex's Issues

ActionBarCommon

ActionBarCommon比之前的Simple左边的返回图标小了一圈,应该是所有的图标都小了一圈,期望更改

loading_bar.xml有问题

导入框架的时候都没问题,都导入成功了,但是在运行的时候,一直提示我找不到me.zhanghai.android.materialprogressbar.MaterialProgressBar,不知道是缺了什么?然后我不得已删了这个前景层...就出现了ActionBar和状态栏重叠的情况,头疼,希望能早点解决

SimpleActionBar

3.0.0及以后的版本没有SimpleActionBar了,引入后找不到该自定义的view,但是readme文档中还有。请更新

你好,发现了一个奔溃的问题(界面由于内存不足被回收后重建过程的一个奔溃)

报错信息:Process: com.pasaruang.pinjaman.dana.tunai.uang.loan, PID: 32523
java.lang.IllegalArgumentException: Wrong state class, expecting View State but received class androidx.appcompat.widget.Toolbar$SavedState instead. This usually happens when two views of different type have the same id in the same hierarchy. This view's id is id/action_bar. Make sure other views do not use the same id.
image
复现步骤:开发者模式中设置不保留活动以模拟内存不足被回收的状态->主页中的头部用的per.goweii.actionbarex.common.ActionBarCommon ,然后主页随便跳转一个页面,再点击返回到主页->主页重建->奔溃
关键点:action_bar.xml 中的android:id="@+id/action_bar"
原因:暂未查明

你说的这些用toolbar就能做啊

如果要自定义ActionBar的背景呢?要让背景显示一个图片呢?要让图片延伸到状态栏下面呢?要让背景实现半透明高斯模糊效果呢?要限定按钮图标的大小呢?要自定义中间标题的背景呢?要显示一个搜索框呢?要让搜索框带有清空和搜索图标呢?要自定义搜索框样式呢?要在网络请求时显示一个Loading效果呢?

现在官方文档里面是推荐使用Toolbar取代ActionBar的,Toolbar就可以实现你说的这些了啊

让背景显示图片

<androidx.appcompat.widget.Toolbar
            android:id="@+id/toolbar"
            android:layout_width="match_parent"
            android:layout_height="?attr/actionBarSize"
            android:background="@android:color/white"  // 可以直接设置背景图
            app:contentInsetStart="0dp">

// 或者在这里用ImageView
        <ImageView
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:src="@mipmap/ic_launcher"
                android:scaleType="centerCrop"

        />

    </androidx.appcompat.widget.Toolbar>

Toolbar里面不仅可以放ImageView,还可以放RelativeLayout之类的布局,这些实现起来就更没问题了

要自定义中间标题的背景呢?要显示一个搜索框呢?要让搜索框带有清空和搜索图标呢?要自定义搜索框样式呢?

至于

要让背景实现半透明高斯模糊效果呢

这个就不应该是一个导航栏应该考滤的了吧,应该是ImageView的事了

还有

要在网络请求时显示一个Loading效果呢?

在布局里面加一个进度条就好了啊

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.