Pages

Showing posts with label Android. Show all posts
Showing posts with label Android. Show all posts

Wednesday, 28 January 2015

Android v7 compatability PopupMenus, PopUp Window,

Here I will compare some of the solution I tried for the following task: 

I had to create a menu that has icons and is not part of ActionBar so I made the following conclusions:

PopupMenu - seems very nice, but unfortunately you can not just simply add icons to it. There were some possibilities in v7 and you will probably find them on the internet, but I would not recommend you using them. If you anyway want to do this you will have to add v7 compatability and this is how you can do this:

Android Manifest
    <uses-sdk
        android:minSdkVersion="7"
        android:targetSdkVersion="20" />

project.properties
android.library.reference.1=../appcompat_v7

Either choose this copy in the libs folder v7 v4 libraries (recomended)
or
<path to ADT bundle>\sdk\extras\android\support\v7\appcompat

Styles:

<resources>

    <style name="app_theme" parent="android:Theme">
        <item name="android:listViewStyle">@style/TransparentListView</item>
        <item name="android:expandableListViewStyle">@style/TransparentExpandableListView</item>
    </style>

    <style name="TransparentListView" parent="@android:style/Widget.ListView">
        <item name="android:cacheColorHint">@android:color/transparent</item>
    </style>

    <style name="TransparentExpandableListView" parent="@android:style/Widget.ExpandableListView">
        <item name="android:cacheColorHint">@android:color/transparent</item>
    </style>


</resources>

Another more reasonable option is PopupWindow - here you will be able to get icons, but of course you should not forget to add scroll to the menu. And this is the closest I got to what I wanted.

However the best solution for my case was this project:
https://github.com/haiwen/NewQuickAction

Have a look at the code, it is pretty simple and organized also it handles different cases.



Tuesday, 29 April 2014

Overflow Android

Since one year or so passed I thought why not retire the classic version of Overflow for Android.

Here is the new version with the new design from Lyubina Karapeeva:




And here is the classical version:





Hope you enjoy it. 

Thursday, 17 April 2014

Yuriy's NodesUP - Android

I decided to make a small update on my app. The idea behind this application came to me while of course I was outside of the office on some meetings and a client called with his problem - that our appliance did not work, actually some switch was "stuck" and these was the reason for the problems. But I had to browse from my phone to find this out so naturally this application was born and you can ping, rdns and check the MX records with it. Also in this updated version I have put a "Wifi On" button since I was in the ridiculous situation where I had wifi, but no Internet and I did not want to do this - I wanted to check my real ip from my 3G network.

Here it is the new version ;)

Friday, 31 January 2014

Mobile Education

I decided to publish a video of the project I have been working with Dr. Pavlin Dulev for some time now. Please let me know if there is any interest corporate or not, we are seeking sponsorship. The server side consists of a panel for the teachers where they can set up tests for their students and share video lecture material. Everything is downloaded to the mobile device (Android) and from there the student can do the tests or view the lectures. For best results view the video in Full Screen Mode, high resolution. The teachers panel is coded in PHP+MySQL, the Android application is Java+Android SDK.