Main learning goals
CSS properties for formatting text
Install (if not already done so)
CSS properties for formatting text
Example file used:
(1) Find a long and simple text you want to work on. Since HTML should be clean and simple, we suggest to download an HTML file from
(2) Get the following CSS file
(3) Start working on homework 1, i.e. create a layout that is both visually pleasing and "readable"
Subject: Styling of a text document
However, we suggest using an XHTML e-book from an online repository such as Gutenberg (http://www.gutenberg.org/ )
(1) Your mini-project (homework) should include at least the following features:
(2) A short report
Homework for T.B (to be discussed)
Note: Don't yet start writing about CSS compatibility. First stage (homework 1) is finding resources.1.5 Reading, other resources and online services
About web fonts and web typography (optional reading)
I realize this question is a bit old but here's a really simple solution that was missing. You don't need to create a custom ListView or even a custom layout.
Just create an anonymous subclass of ArrayAdapter and override getView(). Let super.getView() handle all the heavy lifting. Since simple_list_item_1 is just a text view you can customize it (e.g. set textColor) and then return it.
Here's an example from one of my apps. I'm displaying a list of recent locations and I want all occurrences of "Current Location" to be blue and the rest white.
I'm also faced this situation. You can handle above method. but simple if you pass simple_dropdown_item_1line as resource. It will be black color text by default.
This is my code I have achieved in kind of situation.
Your code below:
Actually android.R.layout.simple_dropdown_item_1line is used for dropdown. I urge u to see this layout content once. It just simple textview. thats all. It's property will not affect your task. I checked It works fine.
Want to quickly remove text styles and font formatting from some text? Here are two three super fast ways to do just that, and they don’t require any third party downloads, both features are built right into Mac OS X. The first two methods will use an alternate copy & paste command that removes styling in the process, and the third trick will use TextEdit to strip all styling. Both solutions will work great if you want to remove or formatting when copying from the web to emails, and can save you the embarrassment of sharing hideous and unprofessional font styling with the world.
There’s a modifier command to change how paste works so that it “matches style”, which if you’re pasting into a plain text document or a new email composition, will removes all font styles and formatting in that pasting process, regardless of what is stored in the clipboard. It’s just a variation of the normal copy & paste trick:
Notice the difference from the normal Command+V paste trick, which would include the formatting. Thanks to @hozaka and others for pointing out this modifier sequence on twitter and in the comments, and thanks to Rob for clarifying the function.2: Remove Formatting with the Alternate Cut & Paste Commands
Alternate what now? Many don’t know this, but other than Command+C and Command+V there are an alternate set of cut and paste commands available in Mac OS X that also use an alternate clipboard, but also have the added benefit of stripping formatting from copied text.
Again, these alternate cut & paste commands remove all formatting and styling. and they also use an alternative clipboard so you will not rewrite anything in the primary clipboard. Because the clipboards are different, you must be consistent with the command usage, and you can’t cross from one to the other without pasting the text elsewhere and then recopying it again. The downside is that not all apps support their usage, so you may want to use the next trick instead, which is universal since it relies on a separate application.3: Strip Text Styling & Formatting with TextEdit
TextEdit the simple text editing app that is included in all versions of Mac OS X, and you can use it’s built-in rich text conversion abilities to strip formatting very quickly. Here’s all you need to do:
This removes all formatting but will retain line simple line breaks that are respected by plain text documents.
The end result of either approach will look like this, just simple plain text without the styling, formatting, fonts, colors, or whatever else has made it look unprofessional:
You can also just open documents in TextEdit and resave them as plain text to convert that way, or you can do batch file conversions easily with the textutil command line tool that comes in all versions of Mac OS X.I have to do this with every email, is there a better way?
If you’re constantly stripping formatting funkiness out of emails and you use the OS X Mail app, consider toggling the preference switch to always send emails as plain text rather than rich formatted text. This will force all outbound emails to be normal looking, even if you’re responding to a comic sans disaster.
Chris Waldrip says:
Yank and Put don’t work in all applications. And have different shortcuts in different apps (not Apple-standard commands).
The easiest way for me… Spotlight.
Select the formatted text. Cut/Copy it (-x or -c).
Open Spotlight (-spacebar)
Select All (-a)
Cut or copy (doesn’t matter it won’t be left behind)
Now paste wherever you like. This strips out ALL Formatting, including carriage returns, so not ideal if it’s a multi-paragraph selection. But all formatting (size, style, font, etc) will be stripped out.
No extra app to open, no funky commands to remember (maybe spotlight if you don’t use that often). And it’s quick.
Craig S. Cottingham says:
You can use Control + C to copy the text, then wherever you want to paste it use Shift + Option + Command + V and it will paste the text without any formatting.
While writing a comic strip can be fun. you might want to brush out the broad strokes with a simple comic before you commit to drafting out an entire series. Drawing simple comic strips in your free time can help your comic-writing skills stay sharp, and you can develop incubating ideas and side projects as you practice with simple comic strips, too! If you find yourself at a loss for what to do when drafting up your simple comics, all you need to do is develop a premise and put pencil to paper. Soon your simple comic will be done .Steps Edit Part One of Two:
Focus your attention on dialogue and story over presentation. The images you include while writing your simple comic need to be sketches that give the impression of action while taking as little time from the development of your story as possible. Your goal isn't to realize an artistic masterpieces, it's to write a simple comic. If you’re an artist, this may mean you’ll need to go against your natural inclinations and de-emphasize your attention from the image to the story.
Plan a one-off or a reoccurring comic. Some strips won't get any more mileage than a single strip. These "one-off" simple comics don't need to go anywhere or have a long involved plot. Simply achieve your goal of your comic, like delivering a punchline, and begin a new simple comic when you're through. For episodic simple comics, you'll have to consider the plot of the strip. This way you can do things like connect ending panels so they lead into the beginning panels of the next comic.
Determine your style. This will influence how you approach the drawing background and characters involved in your story. Whichever style you decide upon, you’ll need to be able to sketch in it. You’re not developing a detailed artistic vision with your simple comic, you’re writing it likely to flesh out an idea or sharpen your skills. This should be reflected in your artistry.
Design your characters on a separate sheet of paper. This is going to the be most detailed work you do in your simple comic. By developing the images of your characters here, you’ll have a more definite idea of how these characters will occupy and move through space when you’re sketching their motion in the panels of your simple comic. This sheet will also serve as a reference for your sketch work when you start writing your simple comic.
Come up with your setting. On your practice sheet, alongside your style practice, you should begin sketching the setting of your comic. You’ll need to decide on where the events of your simple are taking place. This could be a warehouse, a school classroom, a library, a jungle, a spaceship or numerous other places. Remember, the goal here is not developing the artistry of the setting. In writing your simple comic, your setting is simply a vehicle to help you develop the idea, plot, or situation motivating your simple comic.
Decide on your plot. You’ll need to capture your plot in one to two pages. It should be compelling and central to the simple action you sketch in the panels of your simple comic. To help you focus your plot, you should identify the key points of your simple comic. Some examples of these would include: conflict (physical), conflict (emotional), man vs. nature, good vs. evil, a pun, a euphemism, a fall from grace, and so on.
Break your page(s) into panels. Your simple comic should be no more than two pages long for the purposes of practice or idea development, though you may want to use a long-draft simple comic for roughing out more complete comic ideas. Refer to your practice page and the panel distribution you drew there. Using this as your template and a pencil, break your pages into panels that depict the action of your scene.
Sketch out the background. You’ll want the setting firmly in place before you start adding characters to the scene. The background will influence how the characters move through your panel, so you should start with this as the first building block for the art in your simple comic. If you need more space for characters later in your comic writing, you can always erase some of the background to free up space. After all, this is only sketch work.
Draw your characters. Since you already know your plot, you should know roughly how your characters are going to play out the scene. Your characters will either be confronting each other or some other plot point, and around this interaction you’ll write the substance of your comic. This substance is conveyed through character dialogue bubbles and narrative text, which is usually plaintext offset in a regular square box at the top, bottom, or sides of a panel.
Write dialogue and narrative text. Now that you have your background and characters in your panels, your stage is set and your players are ready for the story. You need to write the text of your comic in the remaining space on the page. This will describe the action and convey the emotions in your simple comic. Take a look at your list of key words, phrases, and dialogue that you came up with while working on the plot of your simple comic. Use these as the foundation upon which you build the rest of the scene.
Complete your final panel. Your final panel may be a cliffhanger, or it could be the end of the scene, but you’ll need the panel to convey a sense of finality. You might put the words, “The End” somewhere in the lower right hand corner of the page as a visual cue to readers that your simple comic is finished. You could also use a thicker than normal borderline for the panel to give the sense of a hard stop to the scene.
Polish up worthwhile simple comics. You never know when you're going to find a diamond in the rough among your simple comics. A strip that you intended to use as practice might turn into a popular strip in its own right! If you think a particular simple comic, or series of simple comics, has merit, you should: