草庐IT

nasty_bars_present

全部标签

android - Holoeverywhere : how to programmatically remove at runtime the action bar from an activity

在Activity中删除操作栏的正确方法是什么?我的Activity扩展了org.holoeverywhere.app.Activity我有一个扩展org.holoeverywhere.app.Application的自定义应用程序类,并在启动时执行此静态代码:ThemeManager.setDefaultTheme(ThemeManager.DARK);ThemeManager.map(ThemeManager.DARK,R.style.Holo_Demo_Theme);ThemeManager.map(ThemeManager.LIGHT,R.style.Holo_Demo_The

安卓工作室 : Error: Program type already present: androidx. core.graphics.PathSegment

我使用的是AndroidStudio3.3Canary8。我创建了默认项目,然后尝试运行该项目。但我看到了以下堆栈跟踪:AGPBI:{"kind":"error","text":"Programtypealreadypresent:androidx.core.graphics.PathSegment","sources":[{}],"tool":"D8"}Task:app:buildInfoGeneratorDebugFAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':app:transfo

android - Material 设计 list : hiding app bar on scroll?

根据新的AndroidMaterialDesignlist:http://android-developers.blogspot.com/2014/10/material-design-on-android-checklist.htmlWhereappropriate,uponscrollingdown,theappbarcanscrolloffthescreen,leavingmoreverticalspaceforcontent.Uponscrollingbackup,theappbarshouldbeshownagain.我知道有很多问题/答案可以为ICS样式的应用栏实现此行为,

android - Action 条 Sherlock : Setting and hiding title bar

我是ActionBarSherlock的新手,有两个问题:首先,我只想能够设置操作栏的标题,但是当我这样调用它时它不起作用:finalActionBaractionBar=(ActionBar)findViewById(R.id.actionBar);actionBar.setTitle("testtitle");相应的xml对象如下所示:(这是根据github示例建模的:https://github.com/johannilsson/android-actionbar/blob/master/actionbarexample/src/com/markupartist/android/

android - GO Locker 的 USER_PRESENT Intent

我的应用监听USER_PRESENTIntent。但是,自定义锁屏替代品(例如WidgetLocker和GOLocker)不会/不能发送此protected广播。WidgetLocker通过广播自己的自定义Intent(例如com.teslacoilsw.widgetlocker.intent.UNLOCKED,seehere)提供了一个解决方法。GOLocker是否提供类似的Intent?我找不到这方面的任何信息。 最佳答案 我希望你不介意我在这个线程中这么晚才发布这个,但我需要做完全相同的事情并找到他们正在使用的IntentAc

android - 如何在 Action Bar 中设置粗体标题?

我正在编辑样式xml,试图将Activity标题设为粗体。@style/MyActionBar#81CFEBbold但我只能设置所需的背景颜色。我不明白为什么textStyle没有设置为粗体。有人知道怎么解决吗? 最佳答案 你能试试这个吗:@style/MyTheme.MyActionBar@style/MyTheme.MyActionBar.TitleTextStyle#81CFEBbold 关于android-如何在ActionBar中设置粗体标题?,我们在StackOverflow

android - 在 Activity 过渡动画期间保持 Action Bar 稳定

我在我的Android应用程序中使用ActionBar,我在Activity转换期间使用滑动动画,通过调用:startActivityForResult(i,ALL_OK);overridePendingTransition(R.anim.slide_in,R.anim.slide_out);在我的xml文件中,我有以下代码:和动画执行成功,但幻灯片还包含ActionBar。有没有办法让ActionBar在Activity转换期间保持稳定? 最佳答案 IsthereawaythattheActionBarwillstaystable

android - 如何让 Action Bar SearchView 填满整个 action bar?

我试图创建一个actionbarsearch在我的应用程序中,但在展开状态下SearchView没有占用整个操作栏宽度(它仍然显示其他操作)!那么,如何使SearchView填充整个ActionBar区域(如在GMAIL应用程序中)? 最佳答案 以上解决方案都不适合我。设置SearchView的MaxWidth对我有用:@OverridepublicbooleanonCreateOptionsMenu(Menumenu){MenuInflaterinflater=getMenuInflater();inflater.inflate(

android - 如何将 "Action Bar Icon Pack"添加到 Android Studio

我刚刚从https://developer.android.com/design/downloads/index.html下载了操作栏图标包,而且我还没有找到在AndroidStudio中“安装”这些图标的方法……我应该将它一个一个地复制并粘贴到res/drawable文件夹吗?或者有什么目录可以解压它们吗? 最佳答案 ActionBarIconPack类似于在任何项目中使用的普通drawable资源。这样做的目的是让设计师有一个指南来使用Illustrator开发新图标或自定义现有图标>回答你的问题-使用现有图标-根据需要将图标复

android - 错误 : Program type already present: android. support.v4.app.FragmentTransitionCompat21$1

我的项目中一直存在重复问题,这是最常见的问题,似乎与“android.support”位有关Error:Programtypealreadypresent:android.support.v4.app.FragmentTransitionCompat21$1这是我的app.gradleapplyplugin:'com.android.application'android{compileSdkVersion28buildToolsVersion"28.0.3"defaultConfig{applicationId"com.company.myapp"minSdkVersion28tar