Achieving the design of an Android tablet in gmail format (arrow style)

I am trying to create an application optimized for tablets, and I would like to adhere to the same style in the gmail tablet version (arrow on the right side of the selection). I don’t know how to get the same style. There is a shadow and an arrow for selection.

This is a gmail application image: Selection in GMail

thanks

+4
source share
1 answer

An arrow is only part of the background of a list item.

Here is an example and an example from an email application where list_selected_holo is a drawable that contains an arrow on the right side (you can find one available with a simple google search).

<selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:state_pressed="true" android:drawable="@drawable/list_pressed_holo" /> <item android:state_focused="true" android:drawable="@drawable/list_focused_holo" /> <item android:state_selected="true" android:drawable="@drawable/list_selected_holo" /> <item android:drawable="@drawable/list_read_holo" /> </selector> 

I would suggest looking at the open source email application that now shares the style with the Gmail application. ref: https://github.com/android/platform_packages_apps_email Note that it takes some resources from an external path that I could not find in github (frameworks / opt / mailcommon / res).

+4
source

Source: https://habr.com/ru/post/1391044/


All Articles