| @@ -0,0 +1,17 @@ | ||
| # Add project specific ProGuard rules here. | ||
| # By default, the flags in this file are appended to flags specified | ||
| # in /Applications/eclipse/sdk/tools/proguard/proguard-android.txt | ||
| # You can edit the include path and order by changing the ProGuard | ||
| # include property in project.properties. | ||
| # | ||
| # For more details, see | ||
| # http://developer.android.com/guide/developing/tools/proguard.html | ||
|
|
||
| # Add any project specific keep options here: | ||
|
|
||
| # If your project uses WebView with JS, uncomment the following | ||
| # and specify the fully qualified class name to the JavaScript interface | ||
| # class: | ||
| #-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
| # public *; | ||
| #} |
| @@ -0,0 +1,16 @@ | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| package="com.andtinder"> | ||
|
|
||
| <uses-sdk | ||
| android:minSdkVersion="13" | ||
| /> | ||
|
|
||
|
|
||
| <application | ||
| android:label="@string/app_name" | ||
| android:icon="@drawable/ic_launcher" | ||
| > | ||
|
|
||
| </application> | ||
|
|
||
| </manifest> |
| @@ -0,0 +1,28 @@ | ||
| /** | ||
| * AndTinder v0.1 for Android | ||
| * | ||
| * @Author: Enrique López Mañas <eenriquelopez@gmail.com> | ||
| * http://www.lopez-manas.com | ||
| * | ||
| * TAndTinder is a native library for Android that provide a | ||
| * Tinder card like effect. A card can be constructed using an | ||
| * image and displayed with animation effects, dismiss-to-like | ||
| * and dismiss-to-unlike, and use different sorting mechanisms. | ||
| * | ||
| * AndTinder is compatible with API Level 13 and upwards | ||
| * | ||
| * @copyright: Enrique López Mañas | ||
| * @license: Apache License 2.0 | ||
| */ | ||
|
|
||
| package com.andtinder; | ||
|
|
||
| public class Utils { | ||
|
|
||
| public static float functionNormalize(int max, int min, int value) { | ||
| int intermediateValue = max - min; | ||
| value -= intermediateValue; | ||
| float var = Math.abs((float)value/(float)intermediateValue); | ||
| return Math.abs((float)value/(float)intermediateValue); | ||
| } | ||
| } |
| @@ -0,0 +1,118 @@ | ||
| /** | ||
| * AndTinder v0.1 for Android | ||
| * | ||
| * @Author: Enrique López Mañas <eenriquelopez@gmail.com> | ||
| * http://www.lopez-manas.com | ||
| * | ||
| * TAndTinder is a native library for Android that provide a | ||
| * Tinder card like effect. A card can be constructed using an | ||
| * image and displayed with animation effects, dismiss-to-like | ||
| * and dismiss-to-unlike, and use different sorting mechanisms. | ||
| * | ||
| * AndTinder is compatible with API Level 13 and upwards | ||
| * | ||
| * @copyright: Enrique López Mañas | ||
| * @license: Apache License 2.0 | ||
| */ | ||
|
|
||
| package com.andtinder.model; | ||
|
|
||
| import android.content.Intent; | ||
| import android.graphics.Bitmap; | ||
| import android.graphics.drawable.BitmapDrawable; | ||
| import android.graphics.drawable.Drawable; | ||
|
|
||
| public class CardModel { | ||
|
|
||
| private String title; | ||
| private String description; | ||
| private Drawable cardImageDrawable; | ||
| private Drawable cardLikeImageDrawable; | ||
| private Drawable cardDislikeImageDrawable; | ||
|
|
||
| private OnCardDismissedListener mOnCardDismissedListener = null; | ||
|
|
||
| private OnClickListener mOnClickListener = null; | ||
|
|
||
| public interface OnCardDismissedListener { | ||
| void onLike(); | ||
| void onDislike(); | ||
| } | ||
|
|
||
| public interface OnClickListener { | ||
| void OnClickListener(); | ||
| } | ||
|
|
||
| public CardModel() { | ||
| this(null, null, (Drawable)null); | ||
| } | ||
|
|
||
| public CardModel(String title, String description, Drawable cardImage) { | ||
| this.title = title; | ||
| this.description = description; | ||
| this.cardImageDrawable = cardImage; | ||
| } | ||
|
|
||
| public CardModel(String title, String description, Bitmap cardImage) { | ||
| this.title = title; | ||
| this.description = description; | ||
| this.cardImageDrawable = new BitmapDrawable(null, cardImage); | ||
| } | ||
|
|
||
| public String getTitle() { | ||
| return title; | ||
| } | ||
|
|
||
| public void setTitle(String title) { | ||
| this.title = title; | ||
| } | ||
|
|
||
| public String getDescription() { | ||
| return description; | ||
| } | ||
|
|
||
| public void setDescription(String description) { | ||
| this.description = description; | ||
| } | ||
|
|
||
| public Drawable getCardImageDrawable() { | ||
| return cardImageDrawable; | ||
| } | ||
|
|
||
| public void setCardImageDrawable(Drawable cardImageDrawable) { | ||
| this.cardImageDrawable = cardImageDrawable; | ||
| } | ||
|
|
||
| public Drawable getCardLikeImageDrawable() { | ||
| return cardLikeImageDrawable; | ||
| } | ||
|
|
||
| public void setCardLikeImageDrawable(Drawable cardLikeImageDrawable) { | ||
| this.cardLikeImageDrawable = cardLikeImageDrawable; | ||
| } | ||
|
|
||
| public Drawable getCardDislikeImageDrawable() { | ||
| return cardDislikeImageDrawable; | ||
| } | ||
|
|
||
| public void setCardDislikeImageDrawable(Drawable cardDislikeImageDrawable) { | ||
| this.cardDislikeImageDrawable = cardDislikeImageDrawable; | ||
| } | ||
|
|
||
| public void setOnCardDismissedListener( OnCardDismissedListener listener ) { | ||
| this.mOnCardDismissedListener = listener; | ||
| } | ||
|
|
||
| public OnCardDismissedListener getOnCardDismissedListener() { | ||
| return this.mOnCardDismissedListener; | ||
| } | ||
|
|
||
|
|
||
| public void setOnClickListener( OnClickListener listener ) { | ||
| this.mOnClickListener = listener; | ||
| } | ||
|
|
||
| public OnClickListener getOnClickListener() { | ||
| return this.mOnClickListener; | ||
| } | ||
| } |
| @@ -0,0 +1,39 @@ | ||
| /** | ||
| * AndTinder v0.1 for Android | ||
| * | ||
| * @Author: Enrique López Mañas <eenriquelopez@gmail.com> | ||
| * http://www.lopez-manas.com | ||
| * | ||
| * TAndTinder is a native library for Android that provide a | ||
| * Tinder card like effect. A card can be constructed using an | ||
| * image and displayed with animation effects, dismiss-to-like | ||
| * and dismiss-to-unlike, and use different sorting mechanisms. | ||
| * | ||
| * AndTinder is compatible with API Level 13 and upwards | ||
| * | ||
| * @copyright: Enrique López Mañas | ||
| * @license: Apache License 2.0 | ||
| */ | ||
|
|
||
| package com.andtinder.model; | ||
|
|
||
| public class Likes { | ||
| public enum Like { | ||
| None(0), Liked(1), Disliked(2); | ||
|
|
||
| public final int value; | ||
|
|
||
| private Like(int value) { | ||
| this.value = value; | ||
| } | ||
|
|
||
| public static Like fromValue(int value) { | ||
| for (Like style : Like.values()) { | ||
| if (style.value == value) { | ||
| return style; | ||
| } | ||
| } | ||
| return null; | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,32 @@ | ||
| /** | ||
| * AndTinder v0.1 for Android | ||
| * | ||
| * @Author: Enrique López Mañas <eenriquelopez@gmail.com> | ||
| * http://www.lopez-manas.com | ||
| * | ||
| * TAndTinder is a native library for Android that provide a | ||
| * Tinder card like effect. A card can be constructed using an | ||
| * image and displayed with animation effects, dismiss-to-like | ||
| * and dismiss-to-unlike, and use different sorting mechanisms. | ||
| * | ||
| * AndTinder is compatible with API Level 13 and upwards | ||
| * | ||
| * @copyright: Enrique López Mañas | ||
| * @license: Apache License 2.0 | ||
| */ | ||
|
|
||
| package com.andtinder.model; | ||
|
|
||
| public class Orientations { | ||
| public enum Orientation { | ||
| Ordered, Disordered; | ||
|
|
||
| public static Orientation fromIndex(int index) { | ||
| Orientation[] values = Orientation.values(); | ||
| if(index < 0 || index >= values.length) { | ||
| throw new IndexOutOfBoundsException(); | ||
| } | ||
| return values[index]; | ||
| } | ||
| } | ||
| } |
| @@ -0,0 +1,12 @@ | ||
| package com.andtinder.view; | ||
|
|
||
| import android.widget.BaseAdapter; | ||
|
|
||
| import com.andtinder.model.CardModel; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.Collection; | ||
|
|
||
| public abstract class BaseCardStackAdapter extends BaseAdapter { | ||
|
|
||
| } |
| @@ -0,0 +1,122 @@ | ||
| package com.andtinder.view; | ||
|
|
||
| import android.content.Context; | ||
| import android.view.View; | ||
| import android.view.ViewGroup; | ||
| import android.widget.FrameLayout; | ||
|
|
||
| import com.andtinder.R; | ||
| import com.andtinder.model.CardModel; | ||
|
|
||
| import java.util.ArrayList; | ||
| import java.util.Collection; | ||
|
|
||
| public abstract class CardStackAdapter extends BaseCardStackAdapter { | ||
| private final Context mContext; | ||
|
|
||
| /** | ||
| * Lock used to modify the content of {@link #mData}. Any write operation | ||
| * performed on the deque should be synchronized on this lock. | ||
| */ | ||
| private final Object mLock = new Object(); | ||
| private ArrayList<CardModel> mData; | ||
|
|
||
| private boolean mShouldFillCardBackground = false; | ||
|
|
||
| public CardStackAdapter(Context context) { | ||
| mContext = context; | ||
| mData = new ArrayList<CardModel>(); | ||
| } | ||
|
|
||
| public CardStackAdapter(Context context, Collection<? extends CardModel> items) { | ||
| mContext = context; | ||
| mData = new ArrayList<CardModel>(items); | ||
| } | ||
|
|
||
| @Override | ||
| public View getView(int position, View convertView, ViewGroup parent) { | ||
| FrameLayout wrapper = (FrameLayout) convertView; | ||
| FrameLayout innerWrapper; | ||
| View cardView; | ||
| View convertedCardView; | ||
| if (wrapper == null) { | ||
| wrapper = new FrameLayout(mContext); | ||
| wrapper.setBackgroundResource(R.drawable.card_bg); | ||
| if (shouldFillCardBackground()) { | ||
| innerWrapper = new FrameLayout(mContext); | ||
| innerWrapper.setBackgroundColor(mContext.getResources().getColor(R.color.card_bg)); | ||
| wrapper.addView(innerWrapper); | ||
| } else { | ||
| innerWrapper = wrapper; | ||
| } | ||
| cardView = getCardView(position, getCardModel(position), null, parent); | ||
| innerWrapper.addView(cardView); | ||
| } else { | ||
| if (shouldFillCardBackground()) { | ||
| innerWrapper = (FrameLayout) wrapper.getChildAt(0); | ||
| } else { | ||
| innerWrapper = wrapper; | ||
| } | ||
| cardView = innerWrapper.getChildAt(0); | ||
| convertedCardView = getCardView(position, getCardModel(position), cardView, parent); | ||
| if (convertedCardView != cardView) { | ||
| wrapper.removeView(cardView); | ||
| wrapper.addView(convertedCardView); | ||
| } | ||
| } | ||
|
|
||
| return wrapper; | ||
| } | ||
|
|
||
| protected abstract View getCardView(int position, CardModel model, View convertView, ViewGroup parent); | ||
|
|
||
| public void setShouldFillCardBackground(boolean isShouldFillCardBackground) { | ||
| this.mShouldFillCardBackground = isShouldFillCardBackground; | ||
| //return this.mShouldFillCardBackground; | ||
| } | ||
|
|
||
| public boolean shouldFillCardBackground() { | ||
| return mShouldFillCardBackground; | ||
| } | ||
|
|
||
| public void add(CardModel item) { | ||
| synchronized (mLock) { | ||
| mData.add(item); | ||
| } | ||
| notifyDataSetChanged(); | ||
| } | ||
|
|
||
| public CardModel pop() { | ||
| CardModel model; | ||
| synchronized (mLock) { | ||
| model = mData.remove(mData.size() - 1); | ||
| } | ||
| notifyDataSetChanged(); | ||
| return model; | ||
| } | ||
|
|
||
| @Override | ||
| public Object getItem(int position) { | ||
| return getCardModel(position); | ||
| } | ||
|
|
||
| public CardModel getCardModel(int position) { | ||
| synchronized (mLock) { | ||
| return mData.get(mData.size() - 1 - position); | ||
| } | ||
| } | ||
|
|
||
| @Override | ||
| public int getCount() { | ||
| return mData.size(); | ||
| } | ||
|
|
||
| @Override | ||
| public long getItemId(int position) { | ||
| return getItem(position).hashCode(); | ||
| } | ||
|
|
||
| public Context getContext() { | ||
| return mContext; | ||
| } | ||
| } |
| @@ -0,0 +1,33 @@ | ||
| package com.andtinder.view; | ||
|
|
||
| import android.content.Context; | ||
| import android.view.LayoutInflater; | ||
| import android.view.View; | ||
| import android.view.ViewGroup; | ||
| import android.widget.ImageView; | ||
| import android.widget.TextView; | ||
|
|
||
| import com.andtinder.R; | ||
| import com.andtinder.model.CardModel; | ||
|
|
||
| public final class SimpleCardStackAdapter extends CardStackAdapter { | ||
|
|
||
| public SimpleCardStackAdapter(Context mContext) { | ||
| super(mContext); | ||
| } | ||
|
|
||
| @Override | ||
| public View getCardView(int position, CardModel model, View convertView, ViewGroup parent) { | ||
| if(convertView == null) { | ||
| LayoutInflater inflater = LayoutInflater.from(getContext()); | ||
| convertView = inflater.inflate(R.layout.std_card_inner, parent, false); | ||
| assert convertView != null; | ||
| } | ||
|
|
||
| ((ImageView) convertView.findViewById(R.id.image)).setImageDrawable(model.getCardImageDrawable()); | ||
| ((TextView) convertView.findViewById(R.id.title)).setText(model.getTitle()); | ||
| ((TextView) convertView.findViewById(R.id.description)).setText(model.getDescription()); | ||
|
|
||
| return convertView; | ||
| } | ||
| } |
| @@ -0,0 +1,16 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <shape xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:shape="rectangle" > | ||
|
|
||
| <solid android:color="#EBEBEB" /> | ||
|
|
||
| <corners | ||
| android:bottomLeftRadius="5dp" | ||
| android:bottomRightRadius="5dp" | ||
| android:topLeftRadius="5dp" | ||
| android:topRightRadius="5dp" /> | ||
| <stroke android:width="2dp" | ||
| android:color="#D0D0CE" | ||
| /> | ||
|
|
||
| </shape> |
| @@ -0,0 +1,111 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <RelativeLayout | ||
| android:id="@+id/global_container" | ||
| xmlns:android="http://schemas.android.com/apk/res/android" | ||
| xmlns:tools="http://schemas.android.com/tools" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content"> | ||
|
|
||
| <TextView | ||
| android:id="@+id/title" | ||
| style="@android:style/TextAppearance.Large.Inverse" | ||
| android:textColor="@android:color/primary_text_light" | ||
| android:textSize="24sp" | ||
| android:textStyle="bold" | ||
| android:fontFamily="sans-serif-condensed" | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="wrap_content" | ||
| android:background="@color/card_bg" | ||
| tools:text="Title" | ||
| android:padding="10dp"/> | ||
|
|
||
| <View | ||
| android:id="@+id/divider_title" | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="2dp" | ||
| android:layout_below="@id/title" | ||
| android:background="@color/card_outline" | ||
| /> | ||
|
|
||
| <ImageView | ||
| android:id="@+id/image" | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@id/divider_title" | ||
| android:layout_alignWithParentIfMissing="true" | ||
| android:scaleType="centerCrop" | ||
| tools:src="@drawable/picture1"/> | ||
|
|
||
| <View | ||
| android:id="@+id/divider_bottom" | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="2dp" | ||
| android:layout_below="@id/image" | ||
| android:background="@color/card_outline" /> | ||
|
|
||
| <View | ||
| android:layout_width="fill_parent" | ||
| android:layout_height="10dp" | ||
| android:layout_alignBottom="@+id/image_1" | ||
| android:layout_below="@+id/divider_bottom" | ||
| android:background="@color/card_bg" | ||
| /> | ||
|
|
||
| <TextView | ||
| android:id="@+id/description" | ||
| style="@android:style/TextAppearance.Inverse" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignBottom="@+id/image_2" | ||
| android:layout_alignParentLeft="true" | ||
| android:layout_below="@id/image" | ||
| android:layout_toLeftOf="@+id/btn_sep_1" | ||
| android:gravity="center_vertical" | ||
| android:fontFamily="sans-serif-condensed" | ||
| android:ellipsize="end" | ||
| android:padding="10dp" | ||
| android:lines="1" | ||
| android:textColor="@android:color/secondary_text_light" | ||
| tools:text="This is the description, it is a long description, as you can see"/> | ||
|
|
||
| <View | ||
| android:id="@+id/btn_sep_1" | ||
| android:layout_width="1dp" | ||
| android:layout_height="0dp" | ||
| android:layout_alignBottom="@+id/image_1" | ||
| android:layout_below="@id/image" | ||
| android:layout_marginTop="7dp" | ||
| android:layout_toLeftOf="@+id/image_1" | ||
| android:background="#ccc"/> | ||
|
|
||
| <ImageButton | ||
| android:id="@+id/image_1" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_below="@id/image" | ||
| android:layout_toLeftOf="@+id/btn_sep_2" | ||
| android:background="?android:attr/selectableItemBackground" | ||
| android:padding="10dp" | ||
| android:src="@drawable/thumbup"/> | ||
|
|
||
| <View | ||
| android:id="@+id/btn_sep_2" | ||
| android:layout_width="1dp" | ||
| android:layout_height="0dp" | ||
| android:layout_alignBottom="@id/image_1" | ||
| android:layout_below="@id/image" | ||
| android:layout_marginTop="7dp" | ||
| android:layout_toLeftOf="@+id/image_2" | ||
| android:background="#ccc"/> | ||
|
|
||
| <ImageButton | ||
| android:id="@+id/image_2" | ||
| android:layout_width="wrap_content" | ||
| android:layout_height="wrap_content" | ||
| android:layout_alignParentRight="true" | ||
| android:layout_below="@id/image" | ||
| android:background="?android:attr/selectableItemBackground" | ||
| android:padding="10dp" | ||
| android:src="@drawable/thumb55"/> | ||
|
|
||
| </RelativeLayout> |
| @@ -0,0 +1,10 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <declare-styleable name="CardContainer"> | ||
| <attr name="android:gravity"/> | ||
| <attr name="orientation" format="enum"> | ||
| <enum name="ordered" value="0"/> | ||
| <enum name="disordered" value="1"/> | ||
| </attr> | ||
| </declare-styleable> | ||
| </resources> |
| @@ -0,0 +1,5 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <color name="card_bg">#EBEBEB</color> | ||
| <color name="card_outline">#D0D0CE</color> | ||
| </resources> |
| @@ -0,0 +1,7 @@ | ||
| <resources> | ||
|
|
||
| <!-- Default screen margins, per the Android Design guidelines. --> | ||
| <dimen name="activity_horizontal_margin">16dp</dimen> | ||
| <dimen name="activity_vertical_margin">16dp</dimen> | ||
|
|
||
| </resources> |
| @@ -0,0 +1,8 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
|
|
||
| <string name="app_name">TinderView_Demo</string> | ||
| <string name="hello_world">Hello world!</string> | ||
| <string name="action_settings">Settings</string> | ||
|
|
||
| </resources> |
| @@ -0,0 +1,4 @@ | ||
| <resources> | ||
|
|
||
|
|
||
| </resources> |
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <module external.linked.project.id="DrinkinBuddy" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4"> | ||
| <component name="FacetManager"> | ||
| <facet type="java-gradle" name="Java-Gradle"> | ||
| <configuration> | ||
| <option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" /> | ||
| <option name="BUILDABLE" value="false" /> | ||
| </configuration> | ||
| </facet> | ||
| </component> | ||
| <component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_6" inherit-compiler-output="true"> | ||
| <exclude-output /> | ||
| <content url="file://$MODULE_DIR$"> | ||
| <excludeFolder url="file://$MODULE_DIR$/.gradle" /> | ||
| </content> | ||
| <orderEntry type="inheritedJdk" /> | ||
| <orderEntry type="sourceFolder" forTests="false" /> | ||
| </component> | ||
| </module> |
| @@ -0,0 +1,13 @@ | ||
| /** | ||
| * Automatically generated file. DO NOT MODIFY | ||
| */ | ||
| package com.example.kamil.andtinder.test; | ||
|
|
||
| public final class BuildConfig { | ||
| public static final boolean DEBUG = Boolean.parseBoolean("true"); | ||
| public static final String APPLICATION_ID = "com.example.kamil.andtinder.test"; | ||
| public static final String BUILD_TYPE = "debug"; | ||
| public static final String FLAVOR = ""; | ||
| public static final int VERSION_CODE = 1; | ||
| public static final String VERSION_NAME = "1.0"; | ||
| } |
| @@ -0,0 +1,13 @@ | ||
| /** | ||
| * Automatically generated file. DO NOT MODIFY | ||
| */ | ||
| package com.example.kamil.andtinder; | ||
|
|
||
| public final class BuildConfig { | ||
| public static final boolean DEBUG = Boolean.parseBoolean("true"); | ||
| public static final String APPLICATION_ID = "com.example.kamil.andtinder"; | ||
| public static final String BUILD_TYPE = "debug"; | ||
| public static final String FLAVOR = ""; | ||
| public static final int VERSION_CODE = 1; | ||
| public static final String VERSION_NAME = "1.0"; | ||
| } |
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| package="com.example.kamil.andtinder" | ||
| android:versionCode="1" | ||
| android:versionName="1.0" > | ||
|
|
||
| <uses-sdk | ||
| android:minSdkVersion="15" | ||
| android:targetSdkVersion="23" /> | ||
|
|
||
| <application | ||
| android:allowBackup="true" | ||
| android:label="@string/app_name" | ||
| android:supportsRtl="true" > | ||
| </application> | ||
|
|
||
| </manifest> |
| @@ -0,0 +1,17 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| package="com.example.kamil.andtinder" | ||
| android:versionCode="1" | ||
| android:versionName="1.0" > | ||
|
|
||
| <uses-sdk | ||
| android:minSdkVersion="15" | ||
| android:targetSdkVersion="23" /> | ||
|
|
||
| <application | ||
| android:allowBackup="true" | ||
| android:label="@string/app_name" | ||
| android:supportsRtl="true" > | ||
| </application> | ||
|
|
||
| </manifest> |
| @@ -0,0 +1,6 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <resources> | ||
| <!-- From: file:/C:/Users/Kamil/AndroidStudioProjects/DrinkinBuddy/andtinder/src/main/res/values/strings.xml --> | ||
| <eat-comment/> | ||
| <string name="app_name">AndTinder</string> | ||
| </resources> |
| @@ -0,0 +1,24 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| Copyright (C) 2012 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| package="android.support.v7.appcompat" > | ||
|
|
||
| <uses-sdk android:minSdkVersion="7" /> | ||
|
|
||
| <application /> | ||
|
|
||
| </manifest> |
| @@ -0,0 +1,24 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| Copyright (C) 2012 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
| package="android.support.v7.appcompat" > | ||
|
|
||
| <uses-sdk android:minSdkVersion="7" /> | ||
|
|
||
| <application /> | ||
|
|
||
| </manifest> |
| @@ -0,0 +1,308 @@ | ||
| style TextAppearance.AppCompat | ||
| style TextAppearance.AppCompat.Body1 | ||
| style TextAppearance.AppCompat.Body2 | ||
| style TextAppearance.AppCompat.Button | ||
| style TextAppearance.AppCompat.Caption | ||
| style TextAppearance.AppCompat.Display1 | ||
| style TextAppearance.AppCompat.Display2 | ||
| style TextAppearance.AppCompat.Display3 | ||
| style TextAppearance.AppCompat.Display4 | ||
| style TextAppearance.AppCompat.Headline | ||
| style TextAppearance.AppCompat.Inverse | ||
| style TextAppearance.AppCompat.Large | ||
| style TextAppearance.AppCompat.Large.Inverse | ||
| style TextAppearance.AppCompat.Light.SearchResult.Subtitle | ||
| style TextAppearance.AppCompat.Light.SearchResult.Title | ||
| style TextAppearance.AppCompat.Light.Widget.PopupMenu.Large | ||
| style TextAppearance.AppCompat.Light.Widget.PopupMenu.Small | ||
| style TextAppearance.AppCompat.Medium | ||
| style TextAppearance.AppCompat.Medium.Inverse | ||
| style TextAppearance.AppCompat.Menu | ||
| style TextAppearance.AppCompat.SearchResult.Subtitle | ||
| style TextAppearance.AppCompat.SearchResult.Title | ||
| style TextAppearance.AppCompat.Small | ||
| style TextAppearance.AppCompat.Small.Inverse | ||
| style TextAppearance.AppCompat.Subhead | ||
| style TextAppearance.AppCompat.Subhead.Inverse | ||
| style TextAppearance.AppCompat.Title | ||
| style TextAppearance.AppCompat.Title.Inverse | ||
| style TextAppearance.AppCompat.Widget.ActionBar.Menu | ||
| style TextAppearance.AppCompat.Widget.ActionBar.Subtitle | ||
| style TextAppearance.AppCompat.Widget.ActionBar.Subtitle.Inverse | ||
| style TextAppearance.AppCompat.Widget.ActionBar.Title | ||
| style TextAppearance.AppCompat.Widget.ActionBar.Title.Inverse | ||
| style TextAppearance.AppCompat.Widget.ActionMode.Subtitle | ||
| style TextAppearance.AppCompat.Widget.ActionMode.Subtitle.Inverse | ||
| style TextAppearance.AppCompat.Widget.ActionMode.Title | ||
| style TextAppearance.AppCompat.Widget.ActionMode.Title.Inverse | ||
| style TextAppearance.AppCompat.Widget.Button | ||
| style TextAppearance.AppCompat.Widget.Button.Inverse | ||
| style TextAppearance.AppCompat.Widget.DropDownItem | ||
| style TextAppearance.AppCompat.Widget.PopupMenu.Large | ||
| style TextAppearance.AppCompat.Widget.PopupMenu.Small | ||
| style TextAppearance.AppCompat.Widget.Switch | ||
| style TextAppearance.AppCompat.Widget.TextView.SpinnerItem | ||
| style Theme.AppCompat | ||
| style Theme.AppCompat.Dialog | ||
| style Theme.AppCompat.Dialog.Alert | ||
| style Theme.AppCompat.Dialog.MinWidth | ||
| style Theme.AppCompat.DialogWhenLarge | ||
| style Theme.AppCompat.Light | ||
| style Theme.AppCompat.Light.DarkActionBar | ||
| style Theme.AppCompat.Light.Dialog | ||
| style Theme.AppCompat.Light.Dialog.Alert | ||
| style Theme.AppCompat.Light.Dialog.MinWidth | ||
| style Theme.AppCompat.Light.DialogWhenLarge | ||
| style Theme.AppCompat.Light.NoActionBar | ||
| style Theme.AppCompat.NoActionBar | ||
| style ThemeOverlay.AppCompat | ||
| style ThemeOverlay.AppCompat.ActionBar | ||
| style ThemeOverlay.AppCompat.Dark | ||
| style ThemeOverlay.AppCompat.Dark.ActionBar | ||
| style ThemeOverlay.AppCompat.Light | ||
| style Widget.AppCompat.ActionBar | ||
| style Widget.AppCompat.ActionBar.Solid | ||
| style Widget.AppCompat.ActionBar.TabBar | ||
| style Widget.AppCompat.ActionBar.TabText | ||
| style Widget.AppCompat.ActionBar.TabView | ||
| style Widget.AppCompat.ActionButton | ||
| style Widget.AppCompat.ActionButton.CloseMode | ||
| style Widget.AppCompat.ActionButton.Overflow | ||
| style Widget.AppCompat.ActionMode | ||
| style Widget.AppCompat.AutoCompleteTextView | ||
| style Widget.AppCompat.Button | ||
| style Widget.AppCompat.Button.Borderless | ||
| style Widget.AppCompat.Button.Borderless.Colored | ||
| style Widget.AppCompat.Button.ButtonBar.AlertDialog | ||
| style Widget.AppCompat.Button.Colored | ||
| style Widget.AppCompat.Button.Small | ||
| style Widget.AppCompat.ButtonBar | ||
| style Widget.AppCompat.ButtonBar.AlertDialog | ||
| style Widget.AppCompat.CompoundButton.CheckBox | ||
| style Widget.AppCompat.CompoundButton.RadioButton | ||
| style Widget.AppCompat.CompoundButton.Switch | ||
| style Widget.AppCompat.DrawerArrowToggle | ||
| style Widget.AppCompat.DropDownItem.Spinner | ||
| style Widget.AppCompat.EditText | ||
| style Widget.AppCompat.ImageButton | ||
| style Widget.AppCompat.Light.ActionBar | ||
| style Widget.AppCompat.Light.ActionBar.Solid | ||
| style Widget.AppCompat.Light.ActionBar.Solid.Inverse | ||
| style Widget.AppCompat.Light.ActionBar.TabBar | ||
| style Widget.AppCompat.Light.ActionBar.TabBar.Inverse | ||
| style Widget.AppCompat.Light.ActionBar.TabText | ||
| style Widget.AppCompat.Light.ActionBar.TabText.Inverse | ||
| style Widget.AppCompat.Light.ActionBar.TabView | ||
| style Widget.AppCompat.Light.ActionBar.TabView.Inverse | ||
| style Widget.AppCompat.Light.ActionButton | ||
| style Widget.AppCompat.Light.ActionButton.CloseMode | ||
| style Widget.AppCompat.Light.ActionButton.Overflow | ||
| style Widget.AppCompat.Light.ActionMode.Inverse | ||
| style Widget.AppCompat.Light.AutoCompleteTextView | ||
| style Widget.AppCompat.Light.DropDownItem.Spinner | ||
| style Widget.AppCompat.Light.ListPopupWindow | ||
| style Widget.AppCompat.Light.ListView.DropDown | ||
| style Widget.AppCompat.Light.PopupMenu | ||
| style Widget.AppCompat.Light.PopupMenu.Overflow | ||
| style Widget.AppCompat.Light.SearchView | ||
| style Widget.AppCompat.Light.Spinner.DropDown.ActionBar | ||
| style Widget.AppCompat.ListPopupWindow | ||
| style Widget.AppCompat.ListView | ||
| style Widget.AppCompat.ListView.DropDown | ||
| style Widget.AppCompat.ListView.Menu | ||
| style Widget.AppCompat.PopupMenu | ||
| style Widget.AppCompat.PopupMenu.Overflow | ||
| style Widget.AppCompat.PopupWindow | ||
| style Widget.AppCompat.ProgressBar | ||
| style Widget.AppCompat.ProgressBar.Horizontal | ||
| style Widget.AppCompat.RatingBar | ||
| style Widget.AppCompat.SearchView | ||
| style Widget.AppCompat.SearchView.ActionBar | ||
| style Widget.AppCompat.SeekBar | ||
| style Widget.AppCompat.Spinner | ||
| style Widget.AppCompat.Spinner.DropDown | ||
| style Widget.AppCompat.Spinner.DropDown.ActionBar | ||
| style Widget.AppCompat.Spinner.Underlined | ||
| style Widget.AppCompat.TextView.SpinnerItem | ||
| style Widget.AppCompat.Toolbar | ||
| style Widget.AppCompat.Toolbar.Button.Navigation | ||
| attr actionBarDivider | ||
| attr actionBarItemBackground | ||
| attr actionBarPopupTheme | ||
| attr actionBarSize | ||
| attr actionBarSplitStyle | ||
| attr actionBarStyle | ||
| attr actionBarTabBarStyle | ||
| attr actionBarTabStyle | ||
| attr actionBarTabTextStyle | ||
| attr actionBarTheme | ||
| attr actionBarWidgetTheme | ||
| attr actionButtonStyle | ||
| attr actionDropDownStyle | ||
| attr actionLayout | ||
| attr actionMenuTextAppearance | ||
| attr actionMenuTextColor | ||
| attr actionModeBackground | ||
| attr actionModeCloseButtonStyle | ||
| attr actionModeCloseDrawable | ||
| attr actionModeCopyDrawable | ||
| attr actionModeCutDrawable | ||
| attr actionModeFindDrawable | ||
| attr actionModePasteDrawable | ||
| attr actionModeSelectAllDrawable | ||
| attr actionModeShareDrawable | ||
| attr actionModeSplitBackground | ||
| attr actionModeStyle | ||
| attr actionModeWebSearchDrawable | ||
| attr actionOverflowButtonStyle | ||
| attr actionOverflowMenuStyle | ||
| attr actionProviderClass | ||
| attr actionViewClass | ||
| attr alertDialogStyle | ||
| attr alertDialogTheme | ||
| attr arrowHeadLength | ||
| attr arrowShaftLength | ||
| attr autoCompleteTextViewStyle | ||
| attr background | ||
| attr backgroundSplit | ||
| attr backgroundStacked | ||
| attr backgroundTint | ||
| attr backgroundTintMode | ||
| attr barLength | ||
| attr borderlessButtonStyle | ||
| attr buttonBarButtonStyle | ||
| attr buttonBarNegativeButtonStyle | ||
| attr buttonBarNeutralButtonStyle | ||
| attr buttonBarPositiveButtonStyle | ||
| attr buttonBarStyle | ||
| attr buttonStyle | ||
| attr buttonStyleSmall | ||
| attr buttonTint | ||
| attr buttonTintMode | ||
| attr checkboxStyle | ||
| attr checkedTextViewStyle | ||
| attr closeIcon | ||
| attr closeItemLayout | ||
| attr collapseContentDescription | ||
| attr collapseIcon | ||
| attr color | ||
| attr colorAccent | ||
| attr colorButtonNormal | ||
| attr colorControlActivated | ||
| attr colorControlHighlight | ||
| attr colorControlNormal | ||
| attr colorPrimary | ||
| attr colorPrimaryDark | ||
| attr colorSwitchThumbNormal | ||
| attr commitIcon | ||
| attr contentInsetEnd | ||
| attr contentInsetLeft | ||
| attr contentInsetRight | ||
| attr contentInsetStart | ||
| attr customNavigationLayout | ||
| attr dialogPreferredPadding | ||
| attr dialogTheme | ||
| attr displayOptions | ||
| attr divider | ||
| attr dividerHorizontal | ||
| attr dividerPadding | ||
| attr dividerVertical | ||
| attr drawableSize | ||
| attr drawerArrowStyle | ||
| attr editTextBackground | ||
| attr editTextColor | ||
| attr editTextStyle | ||
| attr elevation | ||
| attr gapBetweenBars | ||
| attr goIcon | ||
| attr height | ||
| attr hideOnContentScroll | ||
| attr homeAsUpIndicator | ||
| attr homeLayout | ||
| attr icon | ||
| attr iconifiedByDefault | ||
| attr imageButtonStyle | ||
| attr indeterminateProgressStyle | ||
| attr isLightTheme | ||
| attr itemPadding | ||
| attr layout | ||
| attr listChoiceBackgroundIndicator | ||
| attr listDividerAlertDialog | ||
| attr listPopupWindowStyle | ||
| attr listPreferredItemHeight | ||
| attr listPreferredItemHeightLarge | ||
| attr listPreferredItemHeightSmall | ||
| attr listPreferredItemPaddingLeft | ||
| attr listPreferredItemPaddingRight | ||
| attr logo | ||
| attr logoDescription | ||
| attr measureWithLargestChild | ||
| attr middleBarArrowSize | ||
| attr navigationContentDescription | ||
| attr navigationIcon | ||
| attr navigationMode | ||
| attr overlapAnchor | ||
| attr paddingEnd | ||
| attr paddingStart | ||
| attr panelBackground | ||
| attr popupMenuStyle | ||
| attr popupTheme | ||
| attr popupWindowStyle | ||
| attr preserveIconSpacing | ||
| attr progressBarPadding | ||
| attr progressBarStyle | ||
| attr queryBackground | ||
| attr queryHint | ||
| attr radioButtonStyle | ||
| attr ratingBarStyle | ||
| attr searchHintIcon | ||
| attr searchIcon | ||
| attr searchViewStyle | ||
| attr selectableItemBackground | ||
| attr selectableItemBackgroundBorderless | ||
| attr showAsAction | ||
| attr showDividers | ||
| attr showText | ||
| attr spinBars | ||
| attr spinnerDropDownItemStyle | ||
| attr spinnerStyle | ||
| attr splitTrack | ||
| attr submitBackground | ||
| attr subtitle | ||
| attr subtitleTextAppearance | ||
| attr subtitleTextColor | ||
| attr subtitleTextStyle | ||
| attr suggestionRowLayout | ||
| layout support_simple_spinner_dropdown_item | ||
| attr switchMinWidth | ||
| attr switchPadding | ||
| attr switchStyle | ||
| attr switchTextAppearance | ||
| attr textAllCaps | ||
| attr textAppearanceLargePopupMenu | ||
| attr textAppearanceListItem | ||
| attr textAppearanceListItemSmall | ||
| attr textAppearanceSearchResultSubtitle | ||
| attr textAppearanceSearchResultTitle | ||
| attr textAppearanceSmallPopupMenu | ||
| attr textColorAlertDialogListItem | ||
| attr theme | ||
| attr thickness | ||
| attr thumbTextPadding | ||
| attr title | ||
| attr titleMarginBottom | ||
| attr titleMarginEnd | ||
| attr titleMarginStart | ||
| attr titleMarginTop | ||
| attr titleMargins | ||
| attr titleTextAppearance | ||
| attr titleTextColor | ||
| attr titleTextStyle | ||
| attr toolbarNavigationButtonStyle | ||
| attr toolbarStyle | ||
| attr track | ||
| attr voiceIcon | ||
| attr windowActionBar | ||
| attr windowActionBarOverlay | ||
| attr windowActionModeOverlay | ||
| attr windowNoTitle |
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2013 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <alpha xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:fromAlpha="0.0" android:toAlpha="1.0" | ||
| android:duration="@android:integer/config_mediumAnimTime" /><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_fade_in.xml --> |
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2013 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <alpha xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:fromAlpha="1.0" android:toAlpha="0.0" | ||
| android:duration="@android:integer/config_mediumAnimTime" /><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_fade_out.xml --> |
| @@ -0,0 +1,30 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| /* //device/apps/common/res/anim/fade_in.xml | ||
| ** | ||
| ** Copyright 2014, The Android Open Source Project | ||
| ** | ||
| ** 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 | ||
| ** distributed under the License is distributed on an "AS IS" BASIS, | ||
| ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ** See the License for the specific language governing permissions and | ||
| ** limitations under the License. | ||
| */ | ||
| --> | ||
|
|
||
| <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> | ||
| <scale android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:fromXScale="0.9" android:toXScale="1.0" | ||
| android:fromYScale="0.9" android:toYScale="1.0" | ||
| android:pivotX="50%" android:pivotY="100%" | ||
| android:duration="@integer/abc_config_activityDefaultDur" /> | ||
| <alpha android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:fromAlpha="0.0" android:toAlpha="1.0" | ||
| android:duration="@integer/abc_config_activityShortDur" /> | ||
| </set><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_grow_fade_in_from_bottom.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <set xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:shareInterpolator="false" > | ||
| <alpha android:fromAlpha="0.0" android:toAlpha="1.0" | ||
| android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:duration="@integer/abc_config_activityShortDur" /> | ||
| </set><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_popup_enter.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2013 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <set xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:shareInterpolator="false" > | ||
| <alpha android:fromAlpha="1.0" android:toAlpha="0.0" | ||
| android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:duration="@integer/abc_config_activityShortDur" /> | ||
| </set><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_popup_exit.xml --> |
| @@ -0,0 +1,27 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- | ||
| ~ Copyright (C) 2014 The Android Open Source Project | ||
| ~ | ||
| ~ 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 | ||
| ~ distributed under the License is distributed on an "AS IS" BASIS, | ||
| ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| ~ See the License for the specific language governing permissions and | ||
| ~ limitations under the License. | ||
| --> | ||
|
|
||
| <set xmlns:android="http://schemas.android.com/apk/res/android" android:shareInterpolator="false"> | ||
| <scale android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:fromXScale="1.0" android:toXScale="0.9" | ||
| android:fromYScale="1.0" android:toYScale="0.9" | ||
| android:pivotX="50%" android:pivotY="100%" | ||
| android:duration="@integer/abc_config_activityDefaultDur" /> | ||
| <alpha android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:fromAlpha="1.0" android:toAlpha="0.0" | ||
| android:duration="@integer/abc_config_activityShortDur" /> | ||
| </set><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_shrink_fade_out_from_bottom.xml --> |
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2013 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <translate xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:fromYDelta="50%p" android:toYDelta="0" | ||
| android:duration="@android:integer/config_mediumAnimTime"/> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_slide_in_bottom.xml --> |
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2013 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <translate xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:interpolator="@android:anim/decelerate_interpolator" | ||
| android:fromYDelta="-50%p" android:toYDelta="0" | ||
| android:duration="@android:integer/config_mediumAnimTime"/><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_slide_in_top.xml --> |
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2013 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <translate xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:interpolator="@android:anim/accelerate_interpolator" | ||
| android:fromYDelta="0" android:toYDelta="50%p" | ||
| android:duration="@android:integer/config_mediumAnimTime"/><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_slide_out_bottom.xml --> |
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2013 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
| <translate xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:interpolator="@android:anim/accelerate_interpolator" | ||
| android:fromYDelta="0" android:toYDelta="-50%p" | ||
| android:duration="@android:integer/config_mediumAnimTime"/><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/anim/abc_slide_out_top.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_accelerated="false" android:color="@color/background_material_dark" /> | ||
| <item android:color="@android:color/transparent" /> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color-v11/abc_background_cache_hint_selector_material_dark.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_accelerated="false" android:color="@color/background_material_light" /> | ||
| <item android:color="@android:color/transparent" /> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color-v11/abc_background_cache_hint_selector_material_light.xml --> |
| @@ -0,0 +1,23 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2015 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_checked="true" | ||
| android:state_enabled="true" | ||
| android:alpha="@dimen/highlight_alpha_material_colored" | ||
| android:color="?android:attr/colorControlActivated" /> | ||
| <item android:color="?android:attr/colorControlHighlight" /> | ||
| </selector><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color-v23/abc_color_highlight_material.xml --> |
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:color="@color/background_material_dark" /> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_background_cache_hint_selector_material_dark.xml --> |
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:color="@color/background_material_light" /> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_background_cache_hint_selector_material_light.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_enabled="false" android:color="@color/bright_foreground_disabled_material_dark"/> | ||
| <item android:color="@color/bright_foreground_material_dark"/> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_primary_text_disable_only_material_dark.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_enabled="false" android:color="@color/bright_foreground_disabled_material_light"/> | ||
| <item android:color="@color/bright_foreground_material_light"/> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_primary_text_disable_only_material_light.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2008 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_enabled="false" android:color="@color/primary_text_disabled_material_dark"/> | ||
| <item android:color="@color/primary_text_default_material_dark"/> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_primary_text_material_dark.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_enabled="false" android:color="@color/primary_text_disabled_material_light"/> | ||
| <item android:color="@color/primary_text_default_material_light"/> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_primary_text_material_light.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_pressed="true" android:color="@color/abc_search_url_text_pressed"/> | ||
| <item android:state_selected="true" android:color="@color/abc_search_url_text_selected"/> | ||
| <item android:color="@color/abc_search_url_text_normal"/> | ||
| </selector><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_search_url_text.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_enabled="false" android:color="@color/secondary_text_disabled_material_dark"/> | ||
| <item android:color="@color/secondary_text_default_material_dark"/> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_secondary_text_material_dark.xml --> |
| @@ -0,0 +1,21 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_enabled="false" android:color="@color/secondary_text_disabled_material_light"/> | ||
| <item android:color="@color/secondary_text_default_material_light"/> | ||
| </selector> | ||
| <!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/abc_secondary_text_material_light.xml --> |
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_enabled="false" android:color="@color/switch_thumb_disabled_material_dark"/> | ||
| <item android:color="@color/switch_thumb_normal_material_dark"/> | ||
| </selector><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/switch_thumb_material_dark.xml --> |
| @@ -0,0 +1,20 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2014 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| <item android:state_enabled="false" android:color="@color/switch_thumb_disabled_material_light"/> | ||
| <item android:color="@color/switch_thumb_normal_material_light"/> | ||
| </selector><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/color/switch_thumb_material_light.xml --> |
| @@ -0,0 +1,18 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2015 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <ripple xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:color="?android:attr/colorControlHighlight"/><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/drawable-v21/abc_action_bar_item_background_material.xml --> |
| @@ -0,0 +1,50 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2015 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <inset xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:insetLeft="@dimen/abc_button_inset_horizontal_material" | ||
| android:insetTop="@dimen/abc_button_inset_vertical_material" | ||
| android:insetRight="@dimen/abc_button_inset_horizontal_material" | ||
| android:insetBottom="@dimen/abc_button_inset_vertical_material"> | ||
| <ripple android:color="?android:attr/colorControlHighlight"> | ||
| <item> | ||
| <!-- As we can't use themed ColorStateLists in L, we'll use a Drawable selector which | ||
| changes the shape's fill color. --> | ||
| <selector> | ||
| <item android:state_enabled="false"> | ||
| <shape android:shape="rectangle"> | ||
| <corners android:radius="@dimen/abc_control_corner_material"/> | ||
| <solid android:color="?android:attr/colorButtonNormal"/> | ||
| <padding android:left="@dimen/abc_button_padding_horizontal_material" | ||
| android:top="@dimen/abc_button_padding_vertical_material" | ||
| android:right="@dimen/abc_button_padding_horizontal_material" | ||
| android:bottom="@dimen/abc_button_padding_vertical_material"/> | ||
| </shape> | ||
| </item> | ||
| <item> | ||
| <shape android:shape="rectangle"> | ||
| <corners android:radius="@dimen/abc_control_corner_material"/> | ||
| <solid android:color="?android:attr/colorAccent"/> | ||
| <padding android:left="@dimen/abc_button_padding_horizontal_material" | ||
| android:top="@dimen/abc_button_padding_vertical_material" | ||
| android:right="@dimen/abc_button_padding_horizontal_material" | ||
| android:bottom="@dimen/abc_button_padding_vertical_material"/> | ||
| </shape> | ||
| </item> | ||
| </selector> | ||
| </item> | ||
| </ripple> | ||
| </inset><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/drawable-v21/abc_btn_colored_material.xml --> |
| @@ -0,0 +1,19 @@ | ||
| <?xml version="1.0" encoding="utf-8"?> | ||
| <!-- Copyright (C) 2015 The Android Open Source Project | ||
| 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 | ||
| distributed under the License is distributed on an "AS IS" BASIS, | ||
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| See the License for the specific language governing permissions and | ||
| limitations under the License. | ||
| --> | ||
|
|
||
| <ripple xmlns:android="http://schemas.android.com/apk/res/android" | ||
| android:color="@color/abc_color_highlight_material" | ||
| android:radius="20dp" /><!-- From: file:/usr/local/google/buildbot/src/googleplex-android/mnc-supportlib-release/frameworks/support/v7/appcompat/res/drawable-v23/abc_control_background_material.xml --> |