appbar

An AppBar application not working correctly in Windows 8.x/10 (desktop working area does not get reduced for multiple appbars)

大憨熊 提交于 2019-12-08 06:11:19
问题 I have an application that functions as an "Application Desktop Toolbar", or appbar for short. It is implemented in WPF, and appbar functionality is added by following this guideline: https://msdn.microsoft.com/en-us/library/windows/desktop/cc144177(v=vs.85).aspx. Everything works fine in Windows 7, but in Windows 8.1 (or likely in Windows 8.x) the following happens: The first appbar docked on a display's side is displayed correctly, and Windows desktop's working area is reduced accordingly,

How to make AppBar component from material-ui-next react to scroll events

假如想象 提交于 2019-12-06 03:57:32
问题 As per Material Design guidelines: Upon scrolling, the top app bar can […] transform in the following ways: - Scrolling upward hides the top app bar - Scrolling downward reveals the top app bar When the top app bar scrolls, its elevation above other elements becomes apparent. Is there any built-in approach to do this in material-ui-next or should it be considered as a new feature? Can you give a hint on how to achieve the animation of the AppBar component as described in the guidelines? 回答1:

Change AppBarLayout height programmatically in Android

你说的曾经没有我的故事 提交于 2019-12-05 18:43:20
问题 I'm trying to implement Flexible Space with image pattern, using this tutorial. Everything works fine. Notice the height definition of the AppBarLayout which is 192dp. I'd like to make the height 1/3 of the screen instead, to match this google example for the pattern here. Here's the code in the activity's onCreate (the layout xml is exactly the same as in the tutorial): AppBarLayout appbar = (AppBarLayout)findViewById(R.id.appbar); float density = getResources().getDisplayMetrics().density;

How to use coordinator layout with fragment as “scrolling view”

蓝咒 提交于 2019-12-05 03:30:22
I'm trying to use a coordinator layout with an appbar layout that hosts a fragment as the "scrolling view". The fragment consists of a recyclerView and a bottom aligned layout holding a button, like so: However, the bottom section is hidden by default: and only shows up after I scroll. From my activity class: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); TestFragment fragment = (TestFragment) getFragmentManager().findFragmentByTag("Test"); if (fragment == null) fragment = new TestFragment();

How to remove the shadow above the app bar?

折月煮酒 提交于 2019-12-04 12:53:09
问题 I'd like to make the status bar transparent by adding <item name="android:statusBarColor">@android:color/transparent</item> to v21/styles.xml on style name="AppTheme.NoActionBar" but I keep getting a shadow above the app bar, is it possible to remove it? EDIT: Ok I think the solution is to move the app bar occupying the status bar space and extending the app bar of an additional dp to match it size so my question is, is it possible to move or extend the app bar height upwards? activity_search

How do I remove the bouncing effect on appbar?

家住魔仙堡 提交于 2019-12-04 08:45:09
问题 Appbar used to have an issue when flinging. It was not scrolling smoothly. Please refer to these: http://stackoverflow.com/questions/30923889/flinging-with-recyclerview-appbarlayout https://code.google.com/p/android/issues/detail?id=177729&q=appbarlayout&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars https://github.com/henrytao-me/smooth-app-bar-layout But it has been fixed in support library version 26. compile 'com.android.support:design:26.0.0' However, appbar is now bouncing back

How to make AppBar component from material-ui-next react to scroll events

孤街浪徒 提交于 2019-12-04 08:16:34
As per Material Design guidelines : Upon scrolling, the top app bar can […] transform in the following ways: - Scrolling upward hides the top app bar - Scrolling downward reveals the top app bar When the top app bar scrolls, its elevation above other elements becomes apparent. Is there any built-in approach to do this in material-ui-next or should it be considered as a new feature? Can you give a hint on how to achieve the animation of the AppBar component as described in the guidelines? To my knowledge, there's no out-of-the-box solution for this at the moment. It's quite easy to implement

Android appbarlayout elevation appears in status bar

故事扮演 提交于 2019-12-03 22:34:15
How do I get rid of the elevation in the status bar? If I set in AppbarLayout the app:elevation to 0dp the elevation doesn't appear anymore in status bar but also not below the AppbarLayout. How do I just get the elevation under the AppbarLayout? Here's a screenshot of what I mean: puush link , notice the shadow in the status bar :( Thanks! Our concern is about shadow of AppBarLayout visible when status bar is transparent. Having an opaque status bar is not viable at all times. This happens on Lollipop & above only because of dynamic shadow rendering. On Marshmallow the wrong shadow looks even

How do I remove the bouncing effect on appbar?

夙愿已清 提交于 2019-12-03 00:46:46
Appbar used to have an issue when flinging. It was not scrolling smoothly. Please refer to these: http://stackoverflow.com/questions/30923889/flinging-with-recyclerview-appbarlayout https://code.google.com/p/android/issues/detail?id=177729&q=appbarlayout&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars https://github.com/henrytao-me/smooth-app-bar-layout But it has been fixed in support library version 26. compile 'com.android.support:design:26.0.0' However, appbar is now bouncing back even if fling is not hard. How do I remove this behavior? This is only happening when AppBar is scrolled

AppBar button icon not fitting inside elipse

梦想的初衷 提交于 2019-12-02 05:55:29
问题 Hey I am creating bottom app bar and adding 3, app bar button to it like shown below. One use inbuilt icon and the other two uses Bitmap icons <AppBarButton> <AppBarButton.Icon> <BitmapIcon UriSource="ms-appx:///Assets/Like.png" Height="20" Width="20"/> </AppBarButton.Icon> AppBarButton with bitmap icons display correctly in the design view, that is enclosed within the eclipse of appbar button. But when I deploy it on my phone the app bar button looks like below (two on the right) https://s24