{"action":"created","issue":{"url":"https://api.github.com/repos/makovkastar/FloatingActionButton/issues/191","labels_url":"https://api.github.com/repos/makovkastar/FloatingActionButton/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/makovkastar/FloatingActionButton/issues/191/comments","events_url":"https://api.github.com/repos/makovkastar/FloatingActionButton/issues/191/events","html_url":"https://github.com/makovkastar/FloatingActionButton/issues/191","id":91941120,"number":191,"title":"FAB isn't appearing on some devices.","user":{"login":"TheAndroidMaster","id":13000407,"avatar_url":"https://avatars.githubusercontent.com/u/13000407?v=3","gravatar_id":"","url":"https://api.github.com/users/TheAndroidMaster","html_url":"https://github.com/TheAndroidMaster","followers_url":"https://api.github.com/users/TheAndroidMaster/followers","following_url":"https://api.github.com/users/TheAndroidMaster/following{/other_user}","gists_url":"https://api.github.com/users/TheAndroidMaster/gists{/gist_id}","starred_url":"https://api.github.com/users/TheAndroidMaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheAndroidMaster/subscriptions","organizations_url":"https://api.github.com/users/TheAndroidMaster/orgs","repos_url":"https://api.github.com/users/TheAndroidMaster/repos","events_url":"https://api.github.com/users/TheAndroidMaster/events{/privacy}","received_events_url":"https://api.github.com/users/TheAndroidMaster/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-30T00:20:30Z","updated_at":"2015-08-08T03:11:11Z","closed_at":null,"body":"My app is having some problems: I have a listview with about 60-100 items in it, and on some devices the fab isn't showing up. So far I have only confirmed that it works on my HTC Desire 816 (5.0). It isn't working on a Dell Venue tablet (4.2) and a Moto X (unknown android version).\r\n\r\nHere is my java:\r\n\r\n    @Override\r\n    protected void onCreate(Bundle savedInstanceState) {\r\n        super.onCreate(savedInstanceState);\r\n        setContentView(R.layout.activity_felix_launcher_home);\r\n\r\n        ListView listView = (ListView) findViewById(android.R.id.list);\r\n        FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);\r\n\r\n        fab.setShadow(true);\r\n        fab.attachToListView(listView);\r\n\r\n        TextClock textClock = (TextClock) findViewById(R.id.textClock);\r\n\r\n        textClock.setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Intent openClockIntent = new Intent(AlarmClock.ACTION_SET_ALARM);\r\n                openClockIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\r\n                FelixLauncherHome.this.startActivity(openClockIntent);\r\n            }\r\n        });\r\n\r\n        loadApps();\r\n        loadListView();\r\n        addClickListener();\r\n        ClickListenerfordafab();\r\n    }\r\n\r\n    private void ClickListenerfordafab() {\r\n        findViewById(R.id.fab).setOnClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                Intent lays = manager.getLaunchIntentForPackage(\"com.google.android.googlequicksearchbox\");\r\n                FelixLauncherHome.this.startActivity(lays);\r\n            }\r\n        });\r\n\r\n    }\r\n\r\n\r\n\r\n    private PackageManager manager;\r\n    private List<AppDetail> apps;\r\n\r\n    private void loadApps() {\r\n        manager = getPackageManager();\r\n        apps = new ArrayList<AppDetail>();\r\n\r\n        Intent i = new Intent(Intent.ACTION_MAIN, null);\r\n        i.addCategory(Intent.CATEGORY_LAUNCHER);\r\n\r\n        List<ResolveInfo> availableActivities = manager.queryIntentActivities(i, 0);\r\n        for (ResolveInfo ri : availableActivities) {\r\n            AppDetail app = new AppDetail();\r\n            app.label = ri.loadLabel(manager);\r\n            app.name = ri.activityInfo.packageName;\r\n            app.icon = ri.activityInfo.loadIcon(manager);\r\n            apps.add(app);\r\n        }\r\n    }\r\n\r\n    private ListView list;\r\n\r\n    private void loadListView() {\r\n        list = (ListView) findViewById(android.R.id.list);\r\n\r\n        ArrayAdapter<AppDetail> adapter = new ArrayAdapter<AppDetail>(this,\r\n                R.layout.list_item,\r\n                apps) {\r\n            @Override\r\n            public View getView(int position, View convertView, ViewGroup parent) {\r\n                if (convertView == null) {\r\n                    convertView = getLayoutInflater().inflate(R.layout.list_item, null);\r\n                }\r\n\r\n                ImageView appIcon = (ImageView) convertView.findViewById(R.id.item_app_icon);\r\n                appIcon.setImageDrawable(apps.get(position).icon);\r\n\r\n                TextView appLabel = (TextView) convertView.findViewById(R.id.item_app_label);\r\n                appLabel.setText(apps.get(position).label);\r\n\r\n                TextView appName = (TextView) convertView.findViewById(R.id.item_app_name);\r\n                appName.setText(apps.get(position).name);\r\n\r\n                return convertView;\r\n            }\r\n        };\r\n\r\n        list.setAdapter(adapter);\r\n    }\r\n\r\n    private void addClickListener() {\r\n        list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\r\n            @Override\r\n            public void onItemClick(AdapterView<?> av, View v, int pos,\r\n                                    long id) {\r\n                Intent i = manager.getLaunchIntentForPackage(apps.get(pos).name.toString());\r\n                FelixLauncherHome.this.startActivity(i);\r\n            }\r\n        });\r\n    }\r\n\r\nAnd here is the xml file:\r\n\r\n    <FrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\r\n    xmlns:tools=\"http://schemas.android.com/tools\"\r\n    xmlns:fab=\"http://schemas.android.com/apk/res-auto\"\r\n    android:layout_width=\"match_parent\"\r\n    android:layout_height=\"fill_parent\"\r\n    android:orientation=\"vertical\"\r\n    android:background=\"#e0e0e0\">\r\n\r\n\r\n\r\n    <TextClock\r\n        tools:ignore=\"NewApi\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"50dp\"\r\n        android:id=\"@+id/textClock\"\r\n        android:background=\"#212121\"\r\n        android:textColor=\"#ffffff\"\r\n        android:layout_gravity=\"top|center\"\r\n        android:gravity=\"center_vertical|center_horizontal\"\r\n        android:textSize=\"30dp\" />\r\n\r\n\r\n    <com.melnykov.fab.FloatingActionButton\r\n        android:id=\"@+id/fab\"\r\n        android:layout_width=\"wrap_content\"\r\n        android:layout_height=\"wrap_content\"\r\n        android:layout_margin=\"16dp\"\r\n        android:src=\"@mipmap/search\"\r\n        fab:fab_colorNormal=\"#ffffff\"\r\n        fab:fab_colorPressed=\"#dfdfdf\"\r\n        fab:fab_colorRipple=\"#000000\"\r\n        fab:fab_shadow=\"true\"\r\n        fab:fab_type=\"normal\"\r\n        android:layout_gravity=\"bottom|end\"\r\n        android:visibility=\"visible\"\r\n        android:paddingTop=\"10dp\" />\r\n\r\n    <ListView\r\n        android:id=\"@android:id/list\"\r\n        android:layout_width=\"fill_parent\"\r\n        android:layout_height=\"fill_parent\"\r\n        android:background=\"#000000\"\r\n        android:layout_gravity=\"bottom\"\r\n        android:layout_marginTop=\"50dp\">\r\n    </ListView>\r\n\r\n\r\n\r\n\r\n    </FrameLayout>"},"comment":{"url":"https://api.github.com/repos/makovkastar/FloatingActionButton/issues/comments/128892958","html_url":"https://github.com/makovkastar/FloatingActionButton/issues/191#issuecomment-128892958","issue_url":"https://api.github.com/repos/makovkastar/FloatingActionButton/issues/191","id":128892958,"user":{"login":"nwalters512","id":1476544,"avatar_url":"https://avatars.githubusercontent.com/u/1476544?v=3","gravatar_id":"","url":"https://api.github.com/users/nwalters512","html_url":"https://github.com/nwalters512","followers_url":"https://api.github.com/users/nwalters512/followers","following_url":"https://api.github.com/users/nwalters512/following{/other_user}","gists_url":"https://api.github.com/users/nwalters512/gists{/gist_id}","starred_url":"https://api.github.com/users/nwalters512/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwalters512/subscriptions","organizations_url":"https://api.github.com/users/nwalters512/orgs","repos_url":"https://api.github.com/users/nwalters512/repos","events_url":"https://api.github.com/users/nwalters512/events{/privacy}","received_events_url":"https://api.github.com/users/nwalters512/received_events","type":"User","site_admin":false},"created_at":"2015-08-08T03:11:11Z","updated_at":"2015-08-08T03:11:11Z","body":"Have you tried this with a regualr drawable instead of a mipmap? AFAIK mipmap support was only added in 4.3."}}