- Best News Apps for Android in 2021
- Get quick headlines : Google News
- As robust as you want : Inoreader
- On-device RSS : Flym News Reader
- Available everywhere : Feedly
- Personalized curation : Yahoo News
- New-age magazines : Flipboard
- All the Android news : Drippler for Android
- News in channels : SmartNews
- For the big screen : Must for Movies & TV
- Live updates : Twitter
- Save it for later : Pocket
- Local or Worldwide : Haystack TV
- Get your news in a few different ways
- Marc Lagace
- Andrew Myrick
- The 10 best news apps to stay informed without all the doomscrolling
- 1. Apple News
- 2. Google News
- 3. The Week
- 4. Flipboard
- 5. SmartNews
- 6. News360
- 7. Yahoo News
- 8. News Break
- 9. Ground News
- 10. Pocket
- Темы и стили в Android-приложениях
- О чем пойдет речь:
- Начнем с основ
- Стиль
- Атрибут
- Наследование тем и стилей
- ThemeOverlay
- Последовательность применения тем и стилей ко View-компоненту
- Да прибудет с нами Material Components
- Перейдем к практике
- Что там по темной теме?
- А если мы хотим все делать самостоятельно?
- 9. Тема, стиль или… ?
- 10. Использовать TextAppearance
- Заключение
Best News Apps for Android in 2021
Keeping informed on the go is one of the many things that our smartphones are incredible tools for. During the everyday hustle and bustle, it’s easy to ignore the world around you, but the news is everywhere, including on your phone. These are the best news apps for your Android device today!
Get quick headlines : Google News
In addition to giving you quick access to the top daily headlines, Google News has a «For You» tab that provides news that you care about. The app is free, and while it doesn’t exactly replace Google Reader, it does a pretty good job at everything else.
As robust as you want : Inoreader
Inoreader is a fantastic RSS reader and service that makes it easy to build your own newsfeed. And you aren’t forced into paying a subscription unless you want more features like notifications or an offline mode. Plus, you can use Inoreader on your phone or your computer with the Web version.
On-device RSS : Flym News Reader
Flym News Reader is a unique RSS reader as it does not sync with any services like Feedly or Feedbin. Instead, you can go through and any of your sources, and they will be saved right to the app. Then, the articles will update and appear as soon as they hit the website you are following.
Available everywhere : Feedly
If you prefer to get your news delivered in RSS form, Feedly is pretty much the default choice these days. Rising from the ashes of the Google Reader shut down, Feedly has evolved and refined its service and app, and it’s a pretty good choice all round.
Personalized curation : Yahoo News
Yahoo News has become a fan favorite with its curated sources from top news outlets around the globe. In addition to live video feeds, you can customize which sources show within Yahoo News to personalize your newsfeed.
New-age magazines : Flipboard
For many, Flipboard is the default news app for Android. It’s been around for a while and was one of the first apps to make reading the news less boring with its image-heavy, magazine-style layout.
All the Android news : Drippler for Android
It can be tough to keep up with the world of Android news, but with an app like Drippler, this task is made a bit easier. Drippler curates news, tips and tricks, and much more from all of your favorite Android news sources while providing great design and even some widgets.
News in channels : SmartNews
Just as the name implies, the SmartNews app is designed cleverly, so that you can quickly read all the latest headlines from around the world. News categories are displayed as «Channels» at the top of the screen, giving you the option to swipe through them one by one or tap on a specific channel.
For the big screen : Must for Movies & TV
With all of the different video streaming platforms, it can be tough to keep track of what’s coming and when it’ll be out. With an app like Must, those concerns are put to rest as this acts as a social media network for movies and TV shows.
Live updates : Twitter
When news breaks, chances are that it broke via Twitter somehow. With 240 characters, Twitter has become «the place» to learn about everything that is going on in the world, and with live updates, you’ll never miss a beat.
Save it for later : Pocket
Pocket has become a favorite amongst news-readers for the ability to save articles to read later quickly. Plus, there is a curated «best of web» section, which will provide you unique news articles that you might not have otherwise heard or seen.
Local or Worldwide : Haystack TV
It can be tough to find an app that not only lets you read sources from various news outlets across the globe. But Haystack TV does that and pushes the envelope by giving users access to more than 300 channels to watch the news from your area or anywhere in the world.
Get your news in a few different ways
Source: Andrew Myrick / Android Central
The list of good news apps can go on and on for days, as there are many different ways to consume «news» nowadays. This is a good problem to have as you can find the best news app to consume information in a way that you enjoy.
Google News has been around for quite some time, but it was left untouched for far too long. Then, Google decided to give it a much-needed and much-deserved facelift, and it has become the de-facto news app for many. This is largely in part to the curation provided and the personalization options that are built right in.
On the other hand, Inoreader, is for the more «power users» who are looking for more from their news app. You can customize your newsfeed to show exactly what you want, and there are plenty of integrations to save content for later with the help of Evernote, Dropbox, and more.
We may earn a commission for purchases using our links. Learn more.
Marc Lagace
Marc Lagace was an Apps and Games Editor at Android Central between 2016 and 2020. You can reach out to him on Twitter @spacelagace.
Andrew Myrick
Andrew Myrick is a freelance writer at Android Central. He enjoys everything to do with technology, including tablets, smartphones, and everything in between. Perhaps his favorite past-time is collecting different headphones, even if they all end up in the same drawer.
Источник
The 10 best news apps to stay informed without all the doomscrolling
If you want to stay informed on current affairs, you could download every single news app out there. But that would be overwhelming. Instead, make it easier on yourself and find a great news aggregator.
These news apps collect articles from a large pool of sources, and incorporate different types of reporting, so instead of getting stories just from the New York Times or a local news station, you’ll get a good mix.
If you really only want updates from your regional newspaper, go ahead and download that dedicated app. But for news stories from around the world and across topics including entertainment, science, tech, politics, and beyond, find yourself the best news app for you that’s customizable.
If you use notifications you’ll be glad you stuck with just a few news apps to save your entire screen from blowing up with constant «breaking» alerts.
All of these news apps are free to download on Android and Apple devices, although some have premium, paid versions available.
1. Apple News
Apple’s news service keeps iPhone and iPad users fully informed on current affairs. You can browse top headlines or set up notifications based on certain topics or news outlets. So you could get alerted about every politics story, say, if that’s what you really want.
Apple News is also available as a web app for Mac laptop users, but it doesn’t fully sync with the iOS or iPad app versions.
For $9.99 per month you can also subscribe to Apple News+ for access to a bunch of publications (even those with paywalls) and listen to articles narrated as audio stories. That access is across all devices.
A glaring issue with Apple News: Android users are out of luck.
2. Google News
Google News is basically Apple News for Android users, as you might expect. BUT, even iOS devices are compatible with the Google News app. If you’re already relying on headlines from the «News» section on Google Search on desktop you’ll probably fit right in with the search engine’s news app.
Google News is accessible to anyone and is free to use with your Google account.
3. The Week
The Week is an IRL weekly magazine that collects and summarizes news from all over, but its accompanying app can catch you up quickly. If you’re into lists, the app’s daily briefing tab gives you «10 things you need to know today» every day. You can also read some articles on the app without a subscription, but for full digital issues you’ll need to subscribe (50 digital-only issues for $89).
The best experience for The Week is on desktop, but if you’re always on your phone this works just fine.
4. Flipboard
Originally formed as a digital magazine, Flipboard makes news gathering more about topics than individual headlines. It emphasizes community curation to create mini magazine issues customized for you about certain places, categories, or events.
For the dedicated news reader you can customize the app to fit best with your interests and preferred publications.
5. SmartNews
This Japanese-based news aggregator uses machine learning to find top stories for its app. It’s been popular in Japan and the U.S. for many years, with a focus on news from those two countries. Partnerships with select news outlets are also featured on the platform, and there’s a special sections with live coverage, such as for the 2020 U.S. presidential election. Additionally, its local news section is plugged into 6,000 cities across the U.S.
6. News360
This aggregator calls itself a «news reader» with a focus on custom news. It tracks the types of stories you click on to serve up more stories that you’re likely to be interested in. To be sure the computer gets it right you can also manually select topics. But fair warning: The app lists more than 1 million topics to choose from.
7. Yahoo News
Yes, Yahoo still exists. While you may have switched over to Gmail for your email inbox years ago, Yahoo News is still going strong with a robust collection of stories from major news outlets. It’s especially known for breaking news and live events, like the upcoming 2021 Tokyo Olympics.
8. News Break
Instead of surfacing the top stories for a national audience, the News Break app tries to localize news based on cities and metropolitan areas that you care about. So instead of big news from the recent Florida building collapse you can find local news headlines from your city or hometown. The app emerged a few years ago from a former Yahoo executive from China.
You can adjust the number of notifications News Break pings you about, but even the lowest setting can feel like a barrage of daily news.
9. Ground News
With news from around the world and more than 50,000 sources in one place, you’ll maybe be too informed. Ground News has different news products including an app, webpage, browser extension, newsletter, and other news comparison tools based on your subscription level. There’s Free (for, well, free), Pro (for $0.83 cents each month), or Premium (for $2.49 per month).
Free gets you the most basic, limited access which includes Ground News’ headline comparison tool for up to three sources, 20 custom interests, coverage distribution chart, and device support. Premium has unlimited customization, a blind spot detection feature, unlimited headline comparisons, and an exclusive weekly newsletter.
10. Pocket
Pocket is Mozilla’s bookmarking tool, but the app’s homepage has a «Discover» tab that pulls up popular stories that others are saving to the app. You can also connect your Twitter account (and your iOS and Google contact lists) and see the links that people you follow are linking for a more personalized selection. A premium version of the «read later» app with a permanent library and suggested tags for better organizing is either $4.99 per month or $44.99 for a year.
This story was originally published in Oct. 2020 and updated in July 2021.
Источник
Темы и стили в Android-приложениях
Каждому Android-разработчику так или иначе приходилось работать со стилями. Кто-то чувствует себя с ними уверенно, у кого-то есть только поверхностные знания, которые зачастую не позволяют самостоятельно решить поставленную задачу.
В преддверии выхода темной темы было решено освежить в памяти всю информацию, касающуюся тем и стилей в Android-приложениях.
О чем пойдет речь:
Начнем с основ
По своей структуре темы и стили имеют общее строение:
Для создания используется тег style . У каждого cтиля есть имя и он хранит в себе параметры key-value .
Все достаточно просто. Но в чем же разница между темой и стилем?
Единственное отличие заключается в том, как мы их используем.
Тема — это набор параметров, которые применяются ко всему приложению, Activity или View-компоненту. Она содержит базовые цвета приложения, стили для отрисовки всех компонентов приложения и различные настройки.
В теме переопределены основные цвета приложения ( colorPrimary , colorSecondary ), стиль для текста ( textAppearanceHeadline1 ) и некоторых стандартных компонентов приложения, а также параметр для прозрачного статус-бара.
Для того чтобы стиль стал настоящей темой, необходимо отнаследоваться (о наследовании мы поговорим чуть позже) от дефолтной реализации темы.
Стиль
Стиль — это набор параметров для стилизации одного View-компонента.
Атрибут
Атрибутом принято называть ключ стиля или темы. Это маленькие кирпичики из которых все строится:
Все эти ключи являются стандартными атрибутами.
Мы можем создавать свои атрибуты:
Атрибут myFavoriteColor будет указывать на цвет или ссылку на ресурс цвета.
В формате мы можем указать вполне стандартные значения:
По своей природе атрибут является интерфейсом. Его необходимо реализовать в теме:
Теперь мы можем на него ссылаться. Общая структура обращения выглядит так:
Ну и, наконец, давайте поменяем, например, цвет текста у поля:
Благодаря атрибутам мы можем добавлять какие-угодно абстракции, которые будут изменяться внутри темы.
Наследование тем и стилей
Как и в ООП, мы можем перенимать функционал существующей реализации. Сделать это можно двумя способами:
При явном наследовании мы указываем родителя с помощью ключевого слова parent :
При неявном наследовании мы используем dot-notation для указания родителя:
Никакой разницы в работе этих подходов нет.
Очень часто мы можем встретить подобные стили:
Может показаться, что стиль создан путем двойного наследования. На самом деле это не так. Множественное наследование запрещено. В таком определении явное наследование всегда выигрывает.
То есть будет создан стиль с именем Widget.MyApp.Snackbar , который является наследником Widget.MaterialComponents.Snackbar .
ThemeOverlay
ThemeOverlay — это специальные «легковесные» темы, которые позволяют переопределить атрибуты основной темы для View-компонента.
За примером далеко ходить не будем, а возьмем кейс из нашего приложения. Дизайнеры решили, что нам нужно сделать стандартное поле для ввода логина, которое будет иметь отличный от основного стиля цвет.
С основной темой поле ввода выглядит так:
Выглядит отлично, но дизайнеры настаивают на том, чтобы поле было в коричневом стиле.
Окей, как мы можем решить такую задачу?
Да, мы можем переопределить стиль и вручную поменять основные цвета вьюшки, но для этого нужно будет писать много кода, да и есть шанс, что мы про что-нибудь забудем.
Написать свою вьюшку по гайдлайнам и с кастомными параметрами?
Хороший вариант, так мы сможем удовлетворить любые хотелки дизайнеров и заодно прокачать скилл, но все это трудозатратно и может привести к нежелательным багам.
Переопределить основной цвет в теме?
Мы выяснили, что для нужного нам вида достаточно поменять colorPrimary в теме. Рабочий вариант, но так мы затронем внешний вид остальных компонентов, а нам это не нужно.
Правильное решение — это использовать ThemeOverlay.
Создаем ThemeOverlay и переопределяем основной цвет темы:
Далее указываем его с помощью специального тега android:theme в наш TextInputLayout :
Все работает так, как нам и нужно.
Конечно же возникает вопрос — как это работает под капотом?
Эту магию позволяет провернуть ContextThemeWrapper . При создании View в LayoutInflater будет создан контекст, где за основу будет взята текущая тема и в ней будут переопределены параметры, которые мы указали в нашей Overlay теме.
Аналогичным образом мы можем самостоятельно переопределить любой параметр темы в приложении.
Последовательность применения тем и стилей ко View-компоненту
Главный приоритет имеет файл разметки. Если в нем определен параметр, то далее все аналогичные параметры будут игнорироваться.
Следующий приоритет имеет стиль View:
Далее используются предопределенные стили для компонента:
Если параметры не были найдены, то используются атрибуты темы:
В общем-то это все, что нужно знать для того чтобы начать работу с темами. Теперь кратко посмотрим на обновленную дизайн-библиотеку Material Components.
Да прибудет с нами Material Components
Material Сomponents была представлена на Google I/O 2018 и является заменой Design Support Library.
Библиотека дает нам возможность использовать обновленные компоненты из Material Design 2.0. Кроме того, в ней появилось множество интересных настроек по кастомизации. Все это позволяет писать яркие и уникальные приложения.
Вот некоторые примеры приложений в новом стиле: Owl, Reply, Crane.
Перейдем к практике
Для создания темы нужно отнаследоваться от базовой темы:
Все они очень похожи на AppCompat темы, но имеют дополнительные атрибуты и настройки.
Подробнее с новыми атрибутами можно познакомиться на material.io.
Если по каким-то причинам вы сейчас не можете переключиться на новую тему, то вам подойдут Bridge темы. Они наследуются от AppCompat тем и имеют все новые атрибуты Material Components. Нужно всего лишь добавить постфикс Bridge и использовать все возможности без опасений:
А вот и наша тема:
Важно понимать, что когда вы переопределяете стиль в теме, он применится ко всем View этого типа в приложении (Activity).
Если же вы хотите применить стиль только к одной конкретной View, то нужно использовать тег style в файле с разметкой:
Одно из нововведений, которое меня действительно впечатлило — это ShapeAppearance. Оно позволяет изменять форму компонентов прямо в теме!
Каждый View-компонент относится к определенной группе:
shapeAppearanceSmallComponent
shapeAppearanceMediumComponent
shapeAppearanceLargeComponent
Как мы можем понять из названия, в группах вьюшки разных размеров.
Проверим на практике:
Мы создали Widget.MyApp.SmallShapeAppearance для «маленьких» компонентов. Закруглили верхний левый угол на 20dp и правый нижний угол срезали на 15dp .
Получили такой результат:
Выглядит интересно. Будет ли это работать в реальной жизни? Время покажет.
Как и для стилей, мы можем применить ShapeAppearance только для одного View-компонента.
Что там по темной теме?
Совсем скоро состоится релиз Android Q, а вместе с ним к нам придет и официальная темная тема.
Пожалуй, одна из самых интересных и эффектных возможностей новой версии Android — это автоматическое применение темной темы для всего приложения одной строчкой кода.
Звучит здорово, давайте пробовать. Предлагаю взять всеми любимый гитлаб клиент от terrakok.
Разрешаем перекрашивать приложение (по умолчанию запрещено):
Атрибут android:forceDarkAllowed доступен с API 29 (Android Q).
Запускаем, смотрим что получилось:
Согласитесь, что для одной строчки кода выглядит очень круто.
Конечно, есть проблемы — BottomNavigationBar сливается с фоном, лоадер остался белым, выделение кода страдает и, вроде бы, все, по крайне мере мне больше ничего серьезного в глаза не бросилось.
Уверен, что потратив не так много времени, можно решить основные проблемы. Например, отключив автоматический темный режим для отдельных вьюшек (да, так тоже можно — android:forceDarkAllowed доступен для View в файле-разметке).
Следует помнить, что данный режим доступен только для светлых тем, если вы используете темную, то принудительная темная тема работать не будет.
Рекомендации по работе можно почитать в документации и на material.io.
А если мы хотим все делать самостоятельно?
Как бы не было просто использовать принудительную темную тему, этот режим лишен гибкости. Фактически, все работает по заранее определенным правилам, которые могут не устраивать нас и, что более важно, заказчика. Думаю, что такое решение можно рассматривать как временное, до тех пор пока мы не сделаем свою реализацию темной темы.
В API 8 (Froyo) был добавлен квалификатор -night , который и по сей день используется для применения темной темы. Он позволяет автоматически применять нужную тему в зависимости от времени суток.
В темах DayNight уже используется такая реализация, нам достаточно отнаследоваться от них.
Давайте попробуем написать свою:
Нам теперь на каждую версию API делать тему со всеми параметрами? Нет, конечно! Мы сделаем базовую тему, где будут определены базовые атрибуты, доступные для всех версий API и отнаследуемся от нее в нужной версии API:
9. Тема, стиль или… ?
При созданий собственных тем и стилей будет здорово, если вы укажите префикс, говорящий о том что это за стиль и для чего он определен. Такое именование позволит очень просто структурировать и расширять стили.
10. Использовать TextAppearance
Хорошим тоном будет расширить основные стили для текста и везде их использовать.
Много полезной информации можно найти на сайте Material Design: Typography, Typography Theming.
Заключение
В заключение хочется сказать, что стилизация приложения — это обязанность не только разработчиков, но и дизайнеров. Только благодаря тесному взаимодействию мы сможем получить по-настоящему хороший и красивый продукт. Дизайнеры должны иметь представления о платформе и возможностях Material Components. Ведь именно на их плечи ложится ответственность по поддержке визуальной составляющей приложения. Дизайнерам доступен специальный плагин для Sketch — Material Theme Editor. В нем очень просто выбирать цвета для приложения и строить экраны на основе стандартных компонентов. Если ваши дизайнеры еще не знают о нем, то обязательно расскажите им.
Начать изучать Material Components можно с репозитория на GitHub — Modular and customizable Material Design UI components for Android. В нем собрано очень много информации по стандартным стилям и их возможностям. Кроме того, там есть приложение — sample, чтобы все сразу попробовать на практике.
Источник