Stream

Join this community to post or comment
 
Droidcon Spain 2015 - Madrid - Xurxo Developer http://buff.ly/1FoITxI #DroidconMAD15
 ·  Translate
1
Add a comment...

azu nwaokobia

General Discussion  - 
 
Hi everyone
What is the best way to add a background image to the navigation drawer in such a way that the image width increases by x for every item in the navigation drawer?
1
Add a comment...

Thye Chean Lim

General Discussion  - 
 
I have a question related to "DESIGNED FOR FAMILIES". I asked this question on AdMob and was redirected here, so someone please help! I have 2 kids apps with child-targeted ads, one is interstitial and one is banner ads, the one with interstitial was rejected and the one with banner is accepted. And since AdMob belongs to Google, and ads are child-targeted, what else can I do to get app with interstitial ads accepted? Thanks!
1
Jim Tyranski's profile photoThye Chean Lim's profile photo
6 comments
 
+Jim Tyranski This is definitely one way. I am trying putting ads away (not on screen) and only show occasionally. I have bad taste about In-app-purchase.
Add a comment...

Nitesh Khatri

General Discussion  - 
 
Hey guys. I am using SlidingTabLayout in my projectto show tabs. However, I am using custom view instead of default text view. In my custom I want to show an icon and below the icon there should be text, I mean they should be oriented vertically.

I am able to pass the array for titles for individual tab. However I am not able to set different image/icon for every tab. If I set the icon source in xml then its perfectly fine.

How can I show different icons in different tabs?
3
Rory Glynn's profile photoJahir Fiquitiva's profile photo
5 comments
Add a comment...

Umer Farooq

General Discussion  - 
 
Can somebody help me with this *CardView* issue?

https://github.com/googlesamples/android-CardView/issues/3
1
1
Christophe Beyls's profile photoUmer Farooq's profile photoJean Bernard Breu (jeanjean)'s profile photo
2 comments
 
+Christophe Beyls I have enabled useCompatPadding, still no shadow. Please see the code in Gist. 
Add a comment...

Nitesh Khatri

General Discussion  - 
 
Hi guys. I want to create the first screen of WhatsApp. There are three tabs - calls, chats and contacts.

1. Calls - it displays the WhatsApp call log.
2. Chats - it displays the list of chat rooms.
3. Contacts - it displays the list of all the contacts.

I am able to create the tab bar using SlidingTabLayout. Now I am loading the calls log, chats and contacts in the onCreateView() of respective Fragments. It loads data every time I switch to the Fragment. Because of this my view pager is not scrolling smoothly. Its lagging.

In whatsapp they are not populating the listview in the onCreateView() for sure, because I am able to scroll smoothly and fast in between fragments.

May be I should get data in activity's onCreate() and display it on fragment's onCreateView() or may be not. I am not sure.

When and how should I load the data and display the data? How can I make my ViewPager scroll fast and smooth?
1
1
Nitesh Khatri's profile photoChris P's profile photoJean Bernard Breu (jeanjean)'s profile photo
7 comments
Chris P
 
Oh, basically it lets you check which method takes a long time to process and on which thread: http://developer.android.com/tools/debugging/debugging-tracing.html
another thing you need to check is gpu overdraw: http://www.curious-creature.com/docs/android-performance-case-study-1.html
Add a comment...

Nitesh Khatri

General Discussion  - 
 
Hi guys, I am using SlidingTabLayout to show three tabs and their Fragments in a ViewPager and accomplish sliding tab functionality.

1. In thefirst Fragment I am calling an API and populating the data inside ListView.
2. In the second Fragment I am getting some data from local database sqlite and populating it in a ListView.
3. In the third Fragment I am showing all the contacts in the phonebook.

I am doing all the computation on onCreateView() method. Now, when I switch from one Fragment to another (via tab click or slide), the ViewPager is not scrolling smoothly. It takes some time to switch Fragments.

How can I avoid this lagging?
1
Jeff Tycz's profile photoChristophe Beyls's profile photo
6 comments
 
+Jeff Tycz​ Not entirely correct, with the default offset of 1, the third fragment will be unloaded when the first one is displayed and vice-versa.
Add a comment...

Greg Hesp

General Discussion  - 
 
Does anyone know if it's possible to load multiple instances of the same apk using Arc Welder? 
1
amit bhati's profile photo
 
don't know brother
Add a comment...

Marko Gajić

General Discussion  - 
 
Anybody tried to tint the new AppCompatCheckBox? I'm not really sure how to do it, when I set buttonTint in the XML, it still says that only works for API 21 and above, and when I tried to do it in the code, app crashes with some "AppCompatCheckBox class not found" error..
1
Marko Gajić's profile photoAndhie Wong's profile photo
3 comments
 
Forgot to mention, you must use appcompat v22.1.0 and above that was released few days ago. currently its v22.1.1

You can now use android:theme for toolbars on all API level 7 and higher devices and android:theme support for all widgets on API level 11 and higher devices.
Add a comment...
 
Android 5.1.1 released for Nexus Player
Android 5.1.1 released - New verson of Lollipop starting with Nexus Player - Saddam Hossain - Google+
3
Add a comment...

daniel Gathigai

General Discussion  - 
 
Anyone who can connect with me and we share on Host Card Emulation. am having a few challenges..
1
Add a comment...

objectiveCyd (MLO)

General Discussion  - 
 
To be fair, I haven't installed anything with it yet. But still...
objectiveCyd (MLO) originally shared:
 
Aaand now I have pip for my python port. A working* pip
sniff
Stupid allergies

*(small problems with --verbose and Bionic's completely broken locale)
2
Add a comment...

Shivam Bhalla

General Discussion  - 
 
Hello,
I am not sure if this belongs in this community, but 
I am facing an issue with using the StackExchange API and JSON Parsing in my Android app. The issue is as under :

Thanks !
1
Shivam Bhalla's profile photoDave Bleicher's profile photo
3 comments
 
+Shivam Bhalla  see http://developer.android.com/reference/org/json/JSONObject.html#optString(java.lang.String)
The "opt" variants of the JSON primative getters will return a non-null value (e.g. an empty string in this case).  Edit: the "opt" variants will return null for Array/Object if they don't exist.  
Add a comment...
 
Why #android    #development   is the future of #smartphones   ?
Being an extremely powerful mobile operating technique and a playground for developing, Android development in the mobile world is now considered as a leading innovation. Created by Google and spread out to every single part of the world, the Android...
1
1
Jean Bernard Breu (jeanjean)'s profile photo
Add a comment...
1
1
Dave Derrick's profile photoJean Bernard Breu (jeanjean)'s profile photo
 
The screenshot says Google.com, but it takes you to a different website when clicked. Avoid. Reported.
Add a comment...

Bin Chen

General Discussion  - 
 
Android system server implementation pattern.
11
5
Dr Theodor Woland's profile photoMarkus Wedler's profile photo
Add a comment...

Jandrell Formoso

General Discussion  - 
 
I have an issue on displaying the layout on my fragment with tabs. The first picture is when I first clicked the item in the drawer. The layout is showing. But not in the second time I clicked on it. How can I solve this? 😢
1
Matheus Fróes's profile photoJandrell Formoso's profile photo
9 comments
 
Anytime +Matheus Fróes  :D
Add a comment...
 
Hi All, really looking to port Android Tv rom onto a Google TV box ( netgear neotv prime )....what is my outlook... Will it even be straight forward..?!
1
Mike Wolfson's profile photo
 
First, why?  Second, I am not an expert, but would think this would be very hard. 
Add a comment...