UINavigationBar multi-line title

Set the titleView property of the UINavigationItem. For example, in the view controller’s viewDidLoad method you could do something like: UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 480, 44)]; label.backgroundColor = [UIColor clearColor]; label.numberOfLines = 2; label.font = [UIFont boldSystemFontOfSize: 14.0f]; label.shadowColor = [UIColor colorWithWhite:0.0 alpha:0.5]; label.textAlignment = UITextAlignmentCenter; label.textColor = [UIColor whiteColor]; label.text = … Read more

Change PDF title in browser window

Ok, So I found out how to change the meta-data in a .pdf form here: http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7c63.w.html (dead link; archived version here) Sure enough the Title in the Meta Data within the .pdf was “Coury And…” Once I changed this the Tab and the Title in Firefox web browser changed to have the title that I … Read more

Center Align title in action bar using styles in android.

Simple method to center ActionBarTitle without using custom layout for actionBar. But before that first hide up Icon as : myActionBar.setIcon(new ColorDrawable(Color.TRANSPARENT)); private void centerActionBarTitle() { int titleId = 0; if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { titleId = getResources().getIdentifier(“action_bar_title”, “id”, “android”); } else { // This is the id is from your app’s generated R class … Read more

Changing navigation title programmatically

You change the title by changing the title of the view controller being displayed: viewController.title = “some title” Normally this is done in view did load on the view controller: override func viewDidLoad() { super.viewDidLoad() self.title = “some title” } However, this only works if you have your view controller embedded in a UINavigationController. I … Read more

How to align title at center of ActionBar in default theme(Theme.Holo.Light)

You can create a custom layout and apply it to the actionBar. To do so, follow those 2 simple steps: Java Code getSupportActionBar().setDisplayOptions(ActionBar.DISPLAY_SHOW_CUSTOM); getSupportActionBar().setCustomView(R.layout.actionbar); Where R.layout.actionbar is the following layout. XML <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”http://schemas.android.com/apk/res/android” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_gravity=”center” android:orientation=”vertical”> <TextView android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_gravity=”center” android:id=”@+id/action_bar_title” android:text=”YOUR ACTIVITY TITLE” android:textColor=”#ffffff” android:textSize=”24sp” /> </LinearLayout> It can be … Read more

Can we set style to title tag in header

You can apply CSS to the <title> element, but not though the style attribute (since it is for “All elements but BASE, BASEFONT, HEAD, HTML, META, PARAM, SCRIPT, STYLE, TITLE”). I’m not aware of any browser that will apply CSS for the rendering of the title in browser tabs or title bars though. You can, … Read more

Hiding Title in a Fullscreen mode?

The way I handle this in my Android games is to call the following line in the onCreate() of my Activity requestWindowFeature(Window.FEATURE_NO_TITLE); I can then turn the full screen capability off and on using the following code in my activity class (usually called from a menu option) (the m_contentView variable is the view from findViewById() … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)