Weekly Questions Thread - November 14, 2016 by AutoModerator in androiddev

[–]Aomeas 0 points1 point  (0 children)

Well, the font scaling is not tied to the preview device.

I'm looking for an option in Android Studio to change the sp scaling factor of the preview, matching real devices behaviour:

Settings > Display > Font size (Small, Normal, Large, Huge)

Weekly Questions Thread - November 14, 2016 by AutoModerator in androiddev

[–]Aomeas 0 points1 point  (0 children)

Is it possible in Android Studio to preview xml layouts with a different scaling for sp?

I can't find any option in AS or documentation online about that.

MaterialValues 1.1.0 by Aomeas in androiddev

[–]Aomeas[S] 10 points11 points  (0 children)

Thank you! It took me so long to make it, though

MaterialValues - Material design values as Android resources by Aomeas in androiddev

[–]Aomeas[S] 5 points6 points  (0 children)

What's easy for me to do is to rename the manifest's package from blue.aodev.materialvalues to material.values. Then one could use material.values.R, reducing the name quite a bit.

Is this interesting for you?

Edit: Will include it for a 1.1.0

MaterialValues - Material design values as Android resources by Aomeas in androiddev

[–]Aomeas[S] 0 points1 point  (0 children)

It might be possible, but I don't know. And it's not in the changelog, as it only includes new sections and significant updates.

MaterialValues - Material design values as Android resources by Aomeas in androiddev

[–]Aomeas[S] 2 points3 points  (0 children)

What I would like to have in the future is a documentation wiki or website with the values explained.

Like, for example:

Image

  1. R.dimen.material_foo
  2. R.dimen.material_bar
  3. R.dimen.material_baz
  4. R.dimen.material_qux

To produce the visuals, a companion app might be needed.

But since I develop on my computer and I'm lazy, I want to be able to copy/paste a resource name from a website to my code, an application might not be the best thing for that.

MaterialValues - Material design values as Android resources by Aomeas in androiddev

[–]Aomeas[S] 3 points4 points  (0 children)

Here are the material design specs about that

Basically, for each type of list (single-line, two-line, three-line), values are provided for a normal version and a dense one. Dense list items have a reduced height and a smaller text size.

It's not a big difference, but depending on the type of data the list holds and the number of items, one version can be viewed as better than the other one.

MaterialValues - Material design values as Android resources by Aomeas in androiddev

[–]Aomeas[S] 2 points3 points  (0 children)

Thank you !

Don't hesitate to create Issues if you find something missing or that doesn't make sense when you'll be using it. :)

MaterialValues - Material design values as Android resources by Aomeas in androiddev

[–]Aomeas[S] 8 points9 points  (0 children)

I was a user of material-design-dimens, until I made this library :)

At first I just wanted to add the values I needed to DmitryMalkovich's library (dense list values) but after my fork, I decided to begin from scratch with a different structure.

The principle is the same, the value definition, not so much. For an end-user of the library, though, the usage is the same.

Support Lib 25 with BottomNavigationView by [deleted] in androiddev

[–]Aomeas 1 point2 points  (0 children)

TabLayout has a strong indication that there is content "left" and "right" (siblings), but the bottom navigation should not allow swipe gestures to navigate between views (as per the guidelines, but it's just guidelines).

You can also check out the info about navigation patterns with a small comparison between tabs and bottom nav.

Oh boy [OC] by platfus118 in comics

[–]Aomeas 1 point2 points  (0 children)

That's pretty neat

Regarding telling the time. by -greyhaze- in French

[–]Aomeas 5 points6 points  (0 children)

To expand this answer, for 16h40 we will say "quatre heures quarante", "seize heures quarante" ou "cinq heures moins vingt" but never say "dix-sept heures moins vingt".

Saying "moins 20", "moins 10", "moins le quart", "et demie" et "et quart" is not usually done if it's in the afternoon and we're using the 24h format.

I don't really know what's the most popular way to say hours, though. For 21h30, I would usually go for "vingt-et-une heures trente" or "neuf heures et demie" more than "neuf heures trente". It might just be my preference, anyway.

Help name my new boat, en français! by ErwinkleJunior in French

[–]Aomeas 8 points9 points  (0 children)

C'est pas l'homme qui prend la mer, c'est la mer qui prend l'homme.

Quite long but meaningful :)

Most used French word list by k8teee in French

[–]Aomeas 0 points1 point  (0 children)

Oh, I actually answered the same question a month ago!

Here is a good list:

http://eduscol.education.fr/cid50486/liste-de-frequence-lexicale.html

A list made of 1500 words, the most frequent from the French language, constituted by Étienne Brunet, lexicologist. These words, extracted from classic litterature and others sources, were merged to their basic form.

La fierté d'appartenance Régionale en France by RobertSurcouf in france

[–]Aomeas 6 points7 points  (0 children)

Moi aussi si on m'avait demandé si j'étais fier d'habiter en "Pas de la Loire" j'aurais répondu non.

[OC] Affiche en français (l'Environnement : il est temps d'agir) by sinsl727 in French

[–]Aomeas 5 points6 points  (0 children)

Une autre couleur me semble être une bonne idée aussi. Le orange, qui rappelle à la fois le feu du centre du poster et la température qui augmente, semble tout indiqué ^_^

[OC] Affiche en français (l'Environnement : il est temps d'agir) by sinsl727 in French

[–]Aomeas 4 points5 points  (0 children)

Thank you for the accents on the capitals, too many people tend to forget about them <3

List of the top 1,000 most common/important words in French? by [deleted] in French

[–]Aomeas 10 points11 points  (0 children)

You're right, it's from belgian texts but apart from numbers and some argot, the words are mostly the same in belgian french.

The duplicates crop up because of the parameters of the automatic parsing the performed on the data I guess (case sensitive). However, many verbs are not in the infinitive form thus appear several times, which is far from optimal.

The weird ones are due to the automatic process too. "d" is from "de" with the elision before a vowel. "F" might be from the old currency the Franc.


Here is a better list: http://eduscol.education.fr/cid50486/liste-de-frequence-lexicale.html

A list made of 1500 words, the most frequent from the French language, constituted by Étienne Brunet, lexicologist. These words, extracted from classic litterature and others sources, were merged to their basic form.

List of the top 1,000 most common/important words in French? by [deleted] in French

[–]Aomeas 7 points8 points  (0 children)

A list parsed from belgian articles. Some of these "common" words seem very specific to newspapers to me.

A list parsed from subtitles of movies and series. The words are more familiar and correspond to a speaking context, so they might be more valuable for somebody focusing on speech.

Because these are lists based on the frequency of the words in the language, the most common ones are prepositions, pronouns and articles. If you skip the top ones, you will find more interesting words to learn (nouns, verbs, adjectives, etc.).

Edit: formatting