I need to get my title bar to be orange instead of the standard gray and I can't figure out how to edit it's settings. I also need to align the text so its on the right side of the title bar instead of the left. Any ideas on how to do this?
How do you edit title bar?
5.6k Views Asked by Connor At
2
There are 2 best solutions below
0
HjK
On
To give the title bar your desired color(orange), use the following code in your oncreate,
this.setTitleColor(#FF6600);
or create a custom title bar and use it throughout the application. U can do all kinds of modifications if you create your custom title bar.
eg.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="400px"
android:layout_height="fill_parent"
android:orientation="horizontal">
<ImageView android:id="@+id/ImageView01"
android:layout_width="57px"
android:layout_height="wrap_content"
android:background="@drawable/icon1">
</ImageView>
<TextView
android:id="@+id/myTitle"
android:text="This is my new title"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:textColor="@color/titletextcolor"
/>
</LinearLayout>
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
- Google Maps API Re-size
- Push toolbar content below statusbar
- Android FragmentPagerAdapter Circular listview
- Layout not shifting up when keyboard is open
- auDIO_OUTPUT_FLAG_FAST denied by client can't connect to localhost
Related Questions in TEXT
- Delete the extra space after special character in all the lines of text file
- Apply gaussian filter on text
- text show and hide with button php/js
- Get text from a section of a pdf page with IcePdf
- load word file (.docx) in richtextbox
- Display a specific line in a text file - android/java
- how to change text direction to the right slide of switch in android?
- C language - Read specific data from text file
- Read text file from specific position and store in two arrays
- How to animate text
- Detect repetition in text string / copied text
- Use MATLAB's webread to login to website and extract text
- LWJGL Drawing colored text to the screen issue
- Hide part of text temporarily, show after user clicks certain element
- Reading text file in java using scanner
Related Questions in ALIGNMENT
- align text and icon CSS
- How can I make the main form align correctly after my control height is autosized and then I maximize the form?
- Align image middle left using HTML only
- HTML textarea alignment
- Another vertical align issue
- css picture alignment for my website
- How do I align three columns to the center using CSS?
- align AlertDialog buttons to center
- aligning right but not breaking the vertical align
- Making 3 columns of text aligned at the same height or line all the time even while re sizing window
- Align barplot with boxplot in R
- Why does "text-align:center" work for "div" but not for "img"?
- Aligning span next to div inside tr creates a gap between them
- Center DIV Horizontally and Vertically
- How to create toolbar with left, center and right sections in javaFX?
Related Questions in TITLEBAR
- Create a UIView title of a push view using the index of an array
- title bar color is not changing using navigation drawer
- Programmatically Show Document Name Popover for Document-Based App
- Change the favicon in an image url
- Title bar of UWP app is overlayed by main page
- How to dynamically populate page title from link selection
- Android - Height of title bar
- Android - fullscreen only in splash screen not in app
- How can I hide the main window titlebar and place a transparent background in kivy framework?
- How to (enable/disable) seeing scrollable content blurred through titlebar on macOS
- Electron - Make Windows Title bar Looks like Muno Title bar
- How do I mimic App Store.app UI
- How to change site title, site header and index title in Django Admin?
- How do you edit title bar?
- Android: Change alignment in the title bar
Related Questions in ANDROID-TITLEBAR
- Change only background and color of titlebar
- inflateException error inflating class unknown
- How do you edit title bar?
- Android: Change alignment in the title bar
- How to set the text color of titlebar?
- Caused by: android.util.AndroidRuntimeException: requestFeature() must be called before adding content android exception
- How to force Android application to reload the activity title corresponding to the language change?
- How to Customize ActionBar Title in Android
- How to hide title bar when back to onresume?
- Create Custom Action tab bar
- How to Ceate Exit Icon in TitleBar Or Label Name in Android
- Change Spinner DropDown width
- Cant Hide Notification bar in Android 4.3 API 18
- Customized Title bar in android
- Android hiding the title bar after progress bar finishes loading
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Android: Custom Title Bar