diff options
author | Diogo Ferreira <defer@cyngn.com> | 2014-12-04 15:13:28 +0000 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 16:11:13 -0700 |
commit | 82a9c6b221940c808b203388d05832fe729efee3 (patch) | |
tree | 338c19db77b3c35e33d1146bfa2421d6f637f7e0 /src/com/android/settings/profiles | |
parent | 6455208e1334114881be837cfbc26d3ae06f9ce3 (diff) | |
download | packages_apps_Settings-82a9c6b221940c808b203388d05832fe729efee3.zip packages_apps_Settings-82a9c6b221940c808b203388d05832fe729efee3.tar.gz packages_apps_Settings-82a9c6b221940c808b203388d05832fe729efee3.tar.bz2 |
profiles: Make the floating action button more material-y
This makes the FAB look consistent with other fabs across the system,
it adds animated elevation, changes the icon color to white but mainly
fixes the size which was completly wrong.
Change-Id: Ib8b2d54869a6a10958c24bcc0fab1224fd07fadd
Diffstat (limited to 'src/com/android/settings/profiles')
-rw-r--r-- | src/com/android/settings/profiles/ProfilesSettings.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/settings/profiles/ProfilesSettings.java b/src/com/android/settings/profiles/ProfilesSettings.java index 7f259b2..92a9610 100644 --- a/src/com/android/settings/profiles/ProfilesSettings.java +++ b/src/com/android/settings/profiles/ProfilesSettings.java @@ -67,7 +67,7 @@ public class ProfilesSettings extends SettingsPreferenceFragment { private ViewPager mViewPager; private TextView mEmptyText; private ProfilesPagerAdapter mAdapter; - private ImageView mAddProfileFab; + private View mAddProfileFab; private boolean mEnabled; ViewGroup mContainer; @@ -99,7 +99,7 @@ public class ProfilesSettings extends SettingsPreferenceFragment { View view = inflater.inflate(R.layout.profile_tabs, container, false); mViewPager = (ViewPager) view.findViewById(R.id.pager); mEmptyText = (TextView) view.findViewById(R.id.empty); - mAddProfileFab = (ImageView) view.findViewById(R.id.floating_action_button); + mAddProfileFab = view.findViewById(R.id.floating_action_button); mAddProfileFab.setOnClickListener( new View.OnClickListener() { @Override |