Change title color in toolbar?
Programatically: toolbar.setTitleTextColor(0xFFFFFFFF);
Programatically: toolbar.setTitleTextColor(0xFFFFFFFF);
In the AndroidManifest.xml, under the application tag, you can set the theme of your choice. To customize the theme, press Ctrl + Click on android:theme = “@style/AppTheme” in the Android manifest file. It will open styles.xml file where you can change the parent attribute of the style tag. At parent= in styles.xml you can browse … Read more
I’ve been wondering about this as well, so I wrote a simple test app to try it. Resources file looks like this: <!– Base application theme, dependent on API level. This theme is replaced by AppBaseTheme from res/values-vXX/styles.xml on newer devices. –> <style name=”AppBaseTheme” parent=”android:Theme”> <!– Theme customizations available in newer API levels can go … Read more
For this you need to have 2 values folders. One that exists by default, and another, you have to create in your res folder and name it values-v21. In the default values folder, in styles.xml, use a theme other than Material theme. And in the styles.xml of values-v21 folder that you created, use Material theme. … Read more
Create a base activity for your app and override onCreate to set the theme. Derive all your other activities from this base activity. Also check this tutorial: http://www.androidengineer.com/2010/06/using-themes-in-android-applications.html
There are currently up to 3, sometimes 4 Themes available for Android devices (.Light variations and similar not included) Theme the default for the earliest versions of Android up to 2.3 Gingerbread(10), including some minor style changes in those versions Theme.Holo introduced with Android 3.0 Honeycomb (11) Theme.Material new in Android 5.0 Lollipop (21) Theme.DeviceDefault … Read more
a bit late, but maybe someone is still interested in that. this works pretty good for me. … <!– EDIT: be carefull, “?android:attr/dividerHorizontal” is only supported since API 11 just avoid it in prior OSs. –> <View android:layout_width=”fill_parent” android:layout_height=”1dip” android:background=”?android:attr/dividerHorizontal” /> <LinearLayout style=”?android:attr/buttonBarStyle” android:layout_width=”fill_parent” android:layout_height=”wrap_content” android:orientation=”horizontal” android:paddingTop=”0dip” android:paddingLeft=”2dip” android:paddingRight=”2dip” android:measureWithLargestChild=”true”> <Button android:id=”@+id/cancel” style=”?android:attr/buttonBarButtonStyle” android:layout_width=”0dip” android:layout_height=”wrap_content” … Read more
?attr/ references to attributes. Attributes are values specified in an app’s theme. The attributes in your example are all values specified in the themes provided by the support library. Android also has its very own attributes which can be used with ?android:attr/. The actual value that is going to be used in the end depends … Read more
You are getting this problem because the activity you are trying to apply the android:theme=”@android:style/Theme.Holo.Light.NoActionBar.Fullscreen”> to is extending ActionBarActivity which requires the AppCompat theme to be applied. Extend your activity from Activity rather than from ActionBarActivity You might have to change your Java class accordingly little bit. If you want to remove status bar too … Read more
I know that the guy asking the question may have found his own solution but for the people who are still looking for a solution this is a very simple solution but one thing it has a limitation till Kitkat so a condition is added if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { getWindow().setFlags(WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS, WindowManager.LayoutParams.FLAG_LAYOUT_NO_LIMITS); }