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">
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">
| <manifest ...> | |
| ... | |
| <!-- Make sure your app (or individual activity) uses the | |
| theme with the custom attribute defined. --> | |
| <application android:theme="@style/AppTheme" ...> | |
| ... | |
| </application> | |
| </manifest> |
| 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; |
| package deepcopy; | |
| import java.util.Vector; | |
| public class CloneExample1 { | |
| public static void main(String[] args) { | |
| // Make a Vector | |
| Vector original = new Vector(); |
| import java.util.regex.Pattern | |
| apply plugin: 'android' | |
| dependencies { | |
| compile fileTree(dir: 'libs', include: '*.jar') | |
| compile project(':omusic-library') | |
| } | |
| task copyNativeLibs(type: Copy) { |
| import android.graphics.Bitmap; | |
| import android.graphics.Bitmap.Config; | |
| import android.graphics.BitmapShader; | |
| import android.graphics.Canvas; | |
| import android.graphics.Paint; | |
| import android.graphics.RectF; | |
| import android.graphics.Shader; | |
| // enables hardware accelerated rounded corners | |
| // original idea here : http://www.curious-creature.org/2012/12/11/android-recipe-1-image-with-rounded-corners/ |
| <?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 com.android.volley.toolbox.HurlStack; | |
| import com.squareup.okhttp.OkHttpClient; | |
| import java.io.IOException; | |
| import java.net.HttpURLConnection; | |
| import java.net.URL; | |
| /** | |
| * An {@link com.android.volley.toolbox.HttpStack HttpStack} implementation which | |
| * uses OkHttp as its transport. | |
| */ |
| import com.google.gson.Gson; | |
| import com.google.gson.JsonSyntaxException; | |
| import com.android.volley.AuthFailureError; | |
| import com.android.volley.NetworkResponse; | |
| import com.android.volley.ParseError; | |
| import com.android.volley.Request; | |
| import com.android.volley.Response; | |
| import com.android.volley.Response.ErrorListener; | |
| import com.android.volley.Response.Listener; |