I am experiencing an issue where the top action bar icons are displayed well in certain device such as Galaxy s 5, and HTC X, but where the icons are poorly displayed in other device such as Motorola Droid, and others. I am not sure where the source of the problems comes from and have included pictures below to display my error.
Use the following layout files. layout-mdpi, layout-hdpi, layout-xhdpi,layout-xxhdpi,layout-sw600dp,layout-sw720dp place images in the following respectivly. drawable-mdpi, drawable-hdpi, drawable-xhdpi,drawable-xxhdpi,drawable-sw600dp,drawable-sw720dp create actionbar.xml for all layouts with your requirements. include this actionbar in other xml you need.. use this.requestWindowFeature(Window.FEATURE_NO_TITLE); in JAVA file it will hide the default action bar.
Related
I'm interested in an app that customizes the Android NavigationBar across all my applications. The same way that, i.e. NavBar Apps does it.
This far, I found two possibilities, but it doesn't fit exactly what I'm looking for:
SystemBarTint library (here)
It only works if you set your app to translucent, and display a background "tint" behind the NavigationBar.
setNavigationBarColor(int color) (here)
You can only use a color (and not a drawable) for the NavigationBar.
I want do an app that is always running and can set a drawable instead of the black color of the NavigationBar
I found out a way to customize the NavigationBar in (almost) all apps. (following this)
Using this permission:
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
Then I created a Service that calls:
WindowManager.addView(View v, LayoutParams p)
And my MainActivity starts this Service.
You cannot change the status/navigation bars color on all apps unless you are a rooted user and your custom rom / custom launcher supports this.
You can only change this inside you own application with any of the links you provided. But this will not extend to the rest of the device apps.
If the case is inside your own app you can do this by using setNavigationBarColor for the nacigation bar and the material design library for the status bar (set the secondaryColor on the material design.
In the 'new' Android Version 4.3 there is a new feature. The status Bar on the top of the screen is transparent in the launcher (I'm using Samsung TouchWiz on Galaxy S3) and in some other Apps too I think (looks a little bit like the iOS 7 style).
Can you tell me how I can make the Status Bar transparent (or colored) in my own App (Eclipse, Java)?
Theme.Holo.NoActionBar.TranslucentDecor
Theme.Holo.Light.NoActionBar.TranslucentDecor
Based on the best answer here: How to make the navigation bar transparent
I'm not sure about the transparency but as of API 10 you can set a background drawable for the actionBar. (and thus a color)
In the following codesnippet I get a color based on an attribute (depending on the theme chosen)
TypedArray a = getTheme().obtainStyledAttributes(new int[]{R.attr.background_activity_color});
actionBar.setBackgroundDrawable(a.getDrawable(0));
I have an app where the action bar and notification bar is hidden when user opens the app. I have seen some apps where some overlay help is shown with the image of a hand and up,down arrows and text below which says:
"Tap to view action bar. Tap again to go full screen"
Any help?
Do not use full screen for your app unless you really knows it's the only way. Full screen is annoying for user as you hides clock, nottifications etc.
As for help you may want to use ShowCaseView library: https://github.com/Espiandev/ShowcaseView
I have to display multiple tiles on the same screen. Each Tile contains header,contents, and footer that would be set dynamically. So each Tile would be display with dynamic data.
How can I develop a program in android SDK for TABLETs
Just to get you started, you could have a look at Fragments (and Activity's) or perhaps even a ViewPager.
All these tips require a certain base knowledge on Android, though, just as #aneal commented on your question.
I'm creating my first app for Android device and I was faced with a challenge... I want to create fixed bottom bar on every screen of my application (something similar to bars from tunein radio).
However I do not know how to make bars which are fixed on every activity (bar do not load when new activity is loaded but is permanent on every app screen). I do not want to <include> my bars in every activity (I've tried this solution but my bars were loading with activity).
Is it possible that this is Activitygroup and only middle activity is changing? If so how can I do that?
PS.
What book or tutorial do you recommend ;-)?
tunein radio bottom and top bar image #1
Use fragments api. It perfectly fits your needs.
Look at ViewFlipper. It lets you manage multiple views. You'd have one activity that would watch your button bar and flip views in response to buttons.