How to change the style of SwipeRefreshLayout (Material design to progress bar) - android

I had my project on Eclipse, and when I implemented the SwipeRefreshLayout it was showing the progress bar style. The problem is that I recently imported my project to Android Studio, and now the SwipeRefreshLayout is like Material Design style... so ugly in my opinion..
How can I change it now?
Have I to change the compilation version?
Thank you..

if you just want to showing the progress bar, not a Material Design style, just use the elder support v4. I think you can find the links, or you can download the jar, then copy to your libs.

Related

Android 5.0 Material-styled tabs

Does the Android 5.0 framework have Material-styled tabs? I know in the dev preview, they were still Holo-styled. I was wondering if 5.0 has been updated with material-style tabs; I currently use PagerSlidingTabStrip for my tabs, but that has not been updated with Material design yet.
More specifically, does the support library include an implementation of material tabs? The Play Store running on 4.x has those tabs, but I'm not sure if that's a custom implementation by Google or not.
Updated (10/19/2015):
This is now provided by the Android Design Support Library:
compile "com.android.support:design:23.1.0"
Chris Banes example:
https://github.com/chrisbanes/cheesesquare
Android Developer Blog:
http://android-developers.blogspot.com/2015/05/android-design-support-library.html
Android Docs:
http://developer.android.com/reference/android/support/design/widget/TabLayout.html?utm_campaign=io15&utm_source=dac&utm_medium=blog
Support Library:
https://developer.android.com/tools/support-library/features.html#design
Original Answer:
Look at the latest version of Google Play(down below).
They are using the SlidingTabsColors(not SlidingTabsBasic) but with colors. You need to look at those two files: SlidingTabLayout.java and SlidingTabStrip.java and simply change the color to match your ActionBar/TooBar color.
Also, you will notice when you swipe left/right, the Tab title text color will become "white" and the unselected titles are an "gray" color.
For example(how to change the indicator color):
class SlidingTabStrip extends LinearLayout {
// change the strip color
private static final int DEFAULT_SELECTED_INDICATOR_COLOR = 0xFF33B5E5;
...
}
Please see the example here: https://developer.android.com/samples/SlidingTabsColors/index.html
Please read these as well:
Android - Google Play like tabs
Action bar navigation modes are deprecated in Android L
You are looking for this material design tabs Right?
Have a look at this..
FYI material design tabs can found in this repo jpardogo's PagerSlidingTabStrip
Update:
Mr.Jpardogo him self answered in SO post click here
Credits: Mr.Javier Pardo de Santayana Gómez

AppCombat v21 TextAppearance on Gingerbread with DarkActionBar

i recently updated the appcombat library to integrate the material design.
But there is an issue with the style "Theme.AppCompat.Light.DarkActionBar", because if i use this style and let my TextView like:
android:textAppearance="?android:attr/textAppearanceSmall
the whole text appears invisible (or just white) on a white background
If a use the "Theme.AppCompat.Light" theme, everything is working fine.
This issue i have only on Devices running android 2.3.*
Samples: (Don't have enough reputation to post images, so you need to click)
DarkActionBar:
Light:
Any suggestions guys? Anyone tried the new appcombat library with Gingerbread?
Obviously i found out that i need to use material text appeareance, for instance:
android:textAppearance="#style/TextAppearance.AppCompat.Body1"
See also:
http://www.google.com/design/spec/style/typography.html#typography-roboto-noto

Android like iphone style with ActionBar

I'm having trouble using https://github.com/AdilSoomro/Iphone-Tab-in-Android with ActionBar is thus:
Is with blanks after each item
The result I hope is altogether more or less well
Redesign my app
Creating a Navigation Drawer
http://developer.android.com/training/implementing-navigation/nav-drawer.html
ActionBarSherlock
http://actionbarsherlock.com/
Android Design Guidelines
http://developer.android.com/design/index.html
Device Art Generator
http://developer.android.com/distribute/tools/promote/device-art.html
Android Asset Studio
http://romannurik.github.io/AndroidAssetStudio/
http://kintek.com.au/blog/portkit-ux-metaphor-equivalents-for-ios-and-android/

ActionBarStyleGenerator - how to use it?

So, I have tried to use ActionBarStyleGenerator. It generates all style.xml file and all its left is to somehow set it for the action bar. The problem is that I use support libraries (app support 2.1 android) and I have issues with setting action bar style.xml to it.
Have you ever tried using this tool. If so, can you help me out and explain how to set style for the action bar?
The problem is that I use support libraries (app support 2.1 android) and I have issues with setting action bar style.xml to it.
You can set it to generate the resources for ActionBarCompat or ActionBarSherlock as well.
Since you are using the support library you have to choose AppCompat:

Implementing Holoeverywhere theme without ActionBarSherlock in my Android app

I am trying to implement the holoeverywhere theme in my app.
When I implement the holoeverywhere theme, I get a actionbar by default. I think it is because of Actionbarsherlock library. I was not aware of this library and have implemented my own actionbar of sorts. So, how do I disable the actionbar that comes up now.
If you need any relevant portions of my code, please let me know. Thanks
Removed ABS depends from HoloEverywhere... It's hard and don't supported by me.
First. Remove full library/src/com/actionbarsherlock from HE.
Second. Change library/resources/*.json to extend from standart android themes, not sherlock. Rebuild styles by mvn resbuilder:styler
Third. Remove fake-actionbar from PreferenceScreen code.
Fourth. Edit library/src/org/holoeverywhere/app/Activity and remove all related to ABS and remove Sherlock addon.
Fifth. Uncomment special block in library/res/values/attrs.xml. Straight from the top.
Sixth. Pray to Cthulhu and make a couple of tricks ears.
Once there was a branch nosherlock. Not popular.
In the HoloEverywhere library included in my project, in the res>values>styles.xml file, there is a theme called Holo.Theme.Light.NoActionBar. I use that instead of Holo.Theme.Light which I used earlier. This fixed the issue. Thanks.

Categories

Resources