Issue 58280: ActionBar does not display windowContentOverlay drawable
android:windowContentOverlay がAndroid 4.3 (API level 18) で無視されるため、Action Barの影をカスタムで指定できない
styles.xml
<resources>
<style name="AppTheme" parent="android:Theme.Light">
| <?xml version="1.0" encoding="utf-8"?> | |
| <resources> | |
| <string name="config_app_name">AVélib</string> | |
| <string name="config_authority">com.cyrilmottier.android.avelib.citybikes</string> | |
| <string name="config_com.google.android.maps.v2.api_key">XXX</string> | |
| </resources> |
| import java.util.regex.Pattern | |
| apply plugin: 'android' | |
| dependencies { | |
| compile fileTree(dir: 'libs', include: '*.jar') | |
| compile project(':omusic-library') | |
| } | |
| task copyNativeLibs(type: Copy) { |
| package deepcopy; | |
| import java.util.Vector; | |
| public class CloneExample1 { | |
| public static void main(String[] args) { | |
| // Make a Vector | |
| Vector original = new Vector(); |
| import android.util.SparseArray; | |
| import android.widget.AbsListView; | |
| /** | |
| * Helper class for calculating relative scroll offsets in a ListView or GridView by tracking the | |
| * position of child views. | |
| */ | |
| public class ListViewScrollTracker { | |
| private AbsListView mListView; | |
| private SparseArray<Integer> mPositions; |
| <manifest ...> | |
| ... | |
| <!-- Make sure your app (or individual activity) uses the | |
| theme with the custom attribute defined. --> | |
| <application android:theme="@style/AppTheme" ...> | |
| ... | |
| </application> | |
| </manifest> |
Issue 58280: ActionBar does not display windowContentOverlay drawable
android:windowContentOverlay がAndroid 4.3 (API level 18) で無視されるため、Action Barの影をカスタムで指定できない
styles.xml
<resources>
<style name="AppTheme" parent="android:Theme.Light">
| package com.cyrilmottier.android.resourcesadditions; | |
| import android.content.res.Resources; | |
| import android.content.res.XmlResourceParser; | |
| import android.os.Bundle; | |
| import org.xmlpull.v1.XmlPullParser; | |
| import org.xmlpull.v1.XmlPullParserException; | |
| /** | |
| * @author Cyril Mottier |
| /* | |
| * Copyright 2014 Google Inc. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| NOTE: Easier way is the X86 way, described on https://www.genymotion.com/help/desktop/faq/#google-play-services | |
| Download the following ZIPs: | |
| ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links) | |
| Download the correct GApps for your Android version: | |
| Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip) | |
| Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip) | |
| Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip) |
| package com.? | |
| import java.io.File; | |
| import android.annotation.SuppressLint; | |
| import android.content.Context; | |
| import android.os.Build; | |
| import android.os.StatFs; | |
| import com.squareup.picasso.Downloader; |