Posts

Showing posts with the label statusbar

windowSoftInputMode=“adjustResize” not working with translucent action/navbar

windowSoftInputMode=“adjustResize” not working with translucent action/navbar I have problems with the translucent actionbar/navbar in the new Android KitKat (4.4) and the windowSoftInputMode="adjustResize" . windowSoftInputMode="adjustResize" Normaly changing the InputMode to adjustResize, the app should resize itself when keyboard is shown... but here it won't! If I delete the lines for the transparent effect, the resize is working. So if the keyboard is visible, my ListView is under it and I can't access the last few items. (Only by hiding the keyboard manually) AndroidManifest.xml <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="XYZ" android:versionCode="23" android:versionName="0.1" > <uses-sdk android:minSdkVersion="9" android:targetSdkVersion="19" /> <application android:al...

Adding statusbar to CDialog and setting control positions correctly

Image
Adding statusbar to CDialog and setting control positions correctly So, I have a CDialog resource that I have had for a long time and I decided to add a statusbar to it. Here is the resource: CDialog All controls fit nicely in the dialog. Now, at runtime this is what it looks like: The tutorial I followed was here and for the most part it works. Here is my setup code: /////////////////////////////// m_StatusBar.Create(this); //We create the status bar m_StatusBar.SetIndicators(indicators, 2); //Set the number of panes CRect rect; GetClientRect(&rect); //Size the two panes m_StatusBar.SetPaneInfo(0, ID_INDICATOR_DATE, SBPS_NORMAL, 200); m_StatusBar.SetPaneInfo(1, ID_INDICATOR_MEETING_TYPE, SBPS_STRETCH, 0); //This is where we actually draw it on the screen RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, ID_INDICATOR_DATE); GetDynamicLayout()->AddItem(m_StatusBar.GetSafeHwnd(), CMFCDynamicLayout::MoveVertical(100), CMFCDynamicLayout::SizeHorizontal(1...