Profile

Cover photo
Chris Kunzler
Attended Keene State College
9,296 followers|564,315 views
AboutPostsPhotosYouTube+1'sReviews

Stream

Chris Kunzler

Shared publicly  - 
 
 
Today's #AndroidDev #Protip on text appearance and theme attributes is by +Katherine Kuan, the newest member of Android Developer Relations (welcome, Katherine!)

When choosing font sizes for your app, using too many different sizes can be visually distracting and confuse the user as to what information is important. To be consistent with other apps on the platform, you can use the standard set of type sizes provided by the framework: small, medium, or large.

To use a standard text size (and color), instead of setting the TextView's android:textSize directly, set the android:textAppearance to a predefined theme attribute [1] such as android:textAppearanceLarge:

<TextView
    …
    android:textAppearance="?android:textAppearanceLarge" />

As of API 19 (KitKat):
?android:textAppearanceSmall is currently 14sp
?android:textAppearanceMedium is currently 18sp
?android:textAppearanceLarge is currently 22sp

These default sizes and concepts are also documented in the "Typographic scale" section of the Android Design guide [2].

Note that setting the text appearance will also affect the default values for text color attributes such as android:textColor and android:textColorHint. You can always override the default values by providing those attributes directly on the TextView element:

<TextView
    ...
    android:textAppearance="?android:textAppearanceLarge"
    android:textColor="@color/my_own_color"
    android:textColorLink="@color/my_own_link_color"/>

Also note that you don't necessarily have to use the system default appearances. You can create your own set of type sizes and colors that fits your desired visual design. For information on creating your own theme attributes, see the #Protip we posted on the topic back in October [3].

Lastly, if you want to check out the definition of these standard text appearances in the framework code, look for "textAppearanceLarge" in the Theme.Holo (or Theme.Holo.Light) definition in themes.xml [4]. The attribute values will be style resources (such as TextAppearance.Holo.Large), for which you can find definitions  in styles.xml [5]. In the example above, note that TextAppearance.Holo.Large inherits from TextAppearance.Large, which in turn inherits from the standard TextAppearance style.

[1] http://developer.android.com/reference/android/R.attr.html
[2] http://developer.android.com/design/style/typography.html 
[3] https://plus.google.com/+AndroidDevelopers/posts/3rL9cTLyuQy
[4] https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/themes.xml
[5] https://android.googlesource.com/platform/frameworks/base/+/refs/heads/master/core/res/res/values/styles.xml
116 comments on original post
1
Add a comment...

Chris Kunzler

Shared publicly  - 
1
Add a comment...

Chris Kunzler

Shared publicly  - 
1
Add a comment...

Chris Kunzler

Shared publicly  - 
7
4
Add a comment...

Chris Kunzler

Shared publicly  - 
 
Can you say #imwithher after Hillary Clinton's role in the #honduras coup?

#hondurascoup #honduranlivesmatter
2
Add a comment...

Chris Kunzler

Shared publicly  - 
 
Morrissey's thoughts on the the Orlando massacre
13 June 2016. Hate-rosexuality. Although the gunman who massacred 49 people at an Orlando gay club is said to have been 'repulsed' by homosexuality, he nonetheless left behind a slew of self-adoring 'selfies'; a handsome man gazing enchantedly at his own face. It is therefore acceptable for him ...
1
Add a comment...

Chris Kunzler

Shared publicly  - 
2
William Hinkofer's profile photo
 
I have been telling people this for years.
Add a comment...

Chris Kunzler

Shared publicly  - 
2
Add a comment...

Chris Kunzler

Shared publicly  - 
 
Hail Hydra

#clinton  
Made by anonymous less than an hour ago. Created with the Imgflip Meme Generator. Show embed codes. IMAGE DESCRIPTION: HAIL HYDRA. hotkeys: D = random, W = like, S = dislike, A = back. Imgflip Pro Video to GIF Maker Images to GIF Maker Meme Generator Blank Meme Templates Pie Chart Maker ...
3
Add a comment...
People
Have him in circles
9,296 people
黃炎祥's profile photo
Tim Spearance's profile photo
Benjamin D. Green's profile photo
Bhargavreddy S's profile photo
Felipe Heuser's profile photo
AUTO FASHION's profile photo
Sahil Tak's profile photo
Peter Smalley's profile photo
Vinicius Claudia de Medeiros's profile photo
Education
  • Keene State College
    Computer Science
  • Northwest College
    Communication
Story
Tagline
#ows, 99%, Linux user, iconoclastic, progressive, tech enthusiast, humanist, microsoft/mac hating google fan., fsm, discordianism, INTP
Bragging rights
Been to 49 of the 50 US states
Basic Information
Gender
Male
Other names
Hey you
Chris Kunzler's +1's are the things they like, agree with, or want to recommend.
VIDEO: Debate on Proposition 2, legalizing and regulating marijuana, at ...
www.adn.com

Watch as the UAA Debate Team and Alaska Dispatch News co-host an in-depth discussion of marijuana legalization. Alaska voters will decide in

Alaska's Same-Sex Marriage Ban Struck Down - Alaska Commons
www.alaskacommons.com

Judge Burgess declared that Alaska's same-sex marriage laws are unconstitutional, prohibits the government from enforcing them.

Edward Snowden’s Privacy Tips: “Get Rid Of Dropbox,” Avoid Facebook And ...
techcrunch.com

According to Edward Snowden, people who care about their privacy should stay away from popular consumer Internet services like Dropbox, Face

Accused of Stealing a Backpack, High School Student Jailed for Nearly Th...
www.democracynow.org

We look at the incredible story of how a 16-year-old high school sophomore from the Bronx ended up spending nearly three years locked up at

KTVA Reporter Drops F-Bomb, Quits on Live TV - Alaska Commons
www.alaskacommons.com

News unscripted. KTVA reporter drops an F-Bomb and quits on live television, in the name of legalized weed. She should have dropped the mic.

The Walking Dead #1
market.android.com

The issue that started it all. Rick Grimes, Sheriff of a small town in Kentucky awakes in a hospital. Comatose after being shot while on dut

Right to Work, Unions, Slavery, and Other Things Dan Sullivan Doesn't Un...
www.alaskacommons.com

Anchorage Mayor Sullivan promoted Right to Work legislation while comparing union membership to slavery. It would seem he has a firm grasp o

Anonymous' Airchat Aims to Allow Communication Without Needing Phone or ...
www.ibtimes.co.uk

Anonymous is testing a free communications tool that doesn't require phone or internet access

Internet service providers charging for premium access hold us all to ra...
www.theguardian.com

An ISP should give users the bits they ask for, as quickly as it can, and not deliberately slow down the data

Kim Dotcom can have seized assets returned – New Zealand High Court
rt.com

The New Zealand High Court has ruled that Megaupload founder Kim Dotcom can be reunited with millions of dollars, property, cars, and artwor

VIDEO: Glenn Greenwald &amp; Laura Poitras Q&amp;A on Snowden, the Surve...
www.democracynow.org

Journalists Glenn Greenwald, Laura Poitras and Ewen MacAskill hold a press conference in New York after winning a Polk Award for their repor

Neon Trees' Tyler Glenn: Gay, Mormon and Finally Out
www.rollingstone.com

Growing up in the church, Neon Trees' frontman Tyler Glenn always held his secrets tight. Now he doesn't care if everybody talks.

Democratic Senator Hammers The Lying Koch Brothers With Hard-Hitting Ad
www.politicususa.com

Sen. Mark Begich (D-AK) has been in the crosshairs of the Koch brothers and their SuperPAC, Americans for Prosperity, for the past few month

Herald Poll: Should the veracity of a church's doctrines be challenged i...
www.heraldextra.com

Last week, a former member of the Church of Jesus Christ of Latter-day Saints filed a criminal complaint against the church. In the complain

RELZNUK
www.relznuk.com

As Americans prepare to gather and watch the Super Bowl today, it is worth remembering what renowned linguist and political philosopher Noam

Pete Seeger: This Man Surrounded Hate and Forced it to Surrender | The N...
www.thenation.com

When some of the greatest musicians in the world gathered five years ago to celebrate the 90th birthday of the musician who inspired them al

Pete Seeger dies at 94; balladeer was America's conscience
www.latimes.com

Pete Seeger, who helped spark the folk song revival with his five-string banjo and songs for civil rights, peace and the labor movements, ha

31 Stereotypes About Book Lovers That Are Absolutely True
www.huffingtonpost.com

From grade school onwards, avid readers get a lot of flak. This may be because reading is one of the most solitary pleasures; it's not an ob

The War on Saturnalia
www.huffingtonpost.com

You don't have to be pagan to enjoy Saturnalia! In fact, you're not, and yet you still use many of our rituals for Christmas. Why don't you

Best police box I've been to. Don't be fooled by its appearance, because it looks a lot smaller on the outside than it really is.
Public - 3 years ago
reviewed 3 years ago
Public - 4 years ago
reviewed 4 years ago
9 reviews
Map
Map
Map
Dr. Karaganis is the best pediatrician I've had the pleasure to take the kids to. She's professional, intelligent, and has gone out of her way to make the office environment warm and comfortable for the kids. I recommend her to all my friends with kids.
Public - 4 years ago
reviewed 4 years ago
They are destroying america.
Public - 4 years ago
reviewed 4 years ago
Terribly unprofessional. My experience dealing with their therapist Bridget Chu-Hackett is that they lack professionalism. She wouldn't return phone calls or even answer simple questions, even after weeks of effort. They wanted documents to show I had a right the the information, I provided it. However it took talking to the Director to get the file. Even after that I couldn't get a simple yes or no question answered from chu-hackett. I gave it two stars rather than one because the director was helpful and I have heard some say good things about them so I'm wondering how much of the problem is just the one therapist rather than the institution.
• • •
Public - 5 years ago
reviewed 5 years ago