Skip to content

Commit

Permalink
ANDROID-602 Add "apptentive_" prefix to resources
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry Li committed Mar 21, 2016
1 parent f3b0f5b commit 9bb41da
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions apptentive/res/drawable/apptentive_fab_circle_mini.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
android:shape="oval">
<solid android:color="@android:color/white"/>
<size
android:width="@dimen/floating_action_button_size_mini"
android:height="@dimen/floating_action_button_size_mini"/>
android:width="@dimen/apptentive_floating_action_button_size_mini"
android:height="@dimen/apptentive_floating_action_button_size_mini"/>
</shape>
4 changes: 2 additions & 2 deletions apptentive/res/drawable/apptentive_fab_circle_normal.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
android:shape="oval">
<solid android:color="@android:color/white"/>
<size
android:width="@dimen/floating_action_button_size_normal"
android:height="@dimen/floating_action_button_size_normal"/>
android:width="@dimen/apptentive_floating_action_button_size_normal"
android:height="@dimen/apptentive_floating_action_button_size_normal"/>
</shape>
6 changes: 3 additions & 3 deletions apptentive/res/drawable/apptentive_fab_shadow.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
android:endColor="#0000"
/>
<padding
android:left="@dimen/floating_action_button_shadow_radius"
android:left="@dimen/apptentive_floating_action_button_shadow_radius"
android:top="0dp"
android:right="@dimen/floating_action_button_shadow_radius"
android:bottom="@dimen/floating_action_button_shadow_radius"/>
android:right="@dimen/apptentive_floating_action_button_shadow_radius"
android:bottom="@dimen/apptentive_floating_action_button_shadow_radius"/>
</shape>
16 changes: 8 additions & 8 deletions apptentive/res/values/dimens.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@
<dimen name="apptentive_message_center_card_view_content_margin">16dp</dimen>
<dimen name="apptentive_message_center_card_control_margin">8dp</dimen>

<dimen name="floating_action_button_size_normal">56dp</dimen>
<dimen name="floating_action_button_size_mini">40dp</dimen>
<dimen name="floating_action_button_elevation">4dp</dimen>
<dimen name="floating_action_button_shadow_radius">4dp</dimen>
<dimen name="floating_action_button_margin_normal">34dp</dimen>
<dimen name="floating_action_button_margin_normal_minus">-34dp</dimen>
<dimen name="floating_action_button_margin_mini">26dp</dimen>
<dimen name="floating_action_button_margin_mini_minus">-26dp</dimen>
<dimen name="apptentive_floating_action_button_size_normal">56dp</dimen>
<dimen name="apptentive_floating_action_button_size_mini">40dp</dimen>
<dimen name="apptentive_floating_action_button_elevation">4dp</dimen>
<dimen name="apptentive_floating_action_button_shadow_radius">4dp</dimen>
<dimen name="apptentive_floating_action_button_margin_normal">34dp</dimen>
<dimen name="apptentive_floating_action_button_margin_normal_minus">-34dp</dimen>
<dimen name="apptentive_floating_action_button_margin_mini">26dp</dimen>
<dimen name="apptentive_floating_action_button_margin_mini_minus">-26dp</dimen>


<dimen name="apptentive_message_center_greeting_side_margin">24dp</dimen>
Expand Down
2 changes: 1 addition & 1 deletion apptentive/res/values/ids.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@

<resources>
<item name="apptentive_message_center_view" type="id"/>
<item name="drawable_downloader" type="id" />
<item name="apptentive_drawable_downloader" type="id" />
</resources>
4 changes: 2 additions & 2 deletions apptentive/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@

<!-- For dialog Animation -->
<style name="ApptentiveDialogAnimation">
<item name="android:windowEnterAnimation">@anim/slide_up_in</item>
<item name="android:windowExitAnimation">@anim/slide_down_out</item>
<item name="android:windowEnterAnimation">@anim/apptentive_slide_up_in</item>
<item name="android:windowExitAnimation">@anim/apptentive_slide_down_out</item>
</style>
</resources>
4 changes: 2 additions & 2 deletions apptentive/src/com/apptentive/android/sdk/ViewActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,13 @@ protected void onRestoreInstanceState(Bundle savedInstanceState) {
@Override
public void finish() {
super.finish();
overridePendingTransition(0, R.anim.slide_down_out);
overridePendingTransition(0, R.anim.apptentive_slide_down_out);
}

@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
overridePendingTransition(R.anim.slide_up_in, 0);
overridePendingTransition(R.anim.apptentive_slide_up_in, 0);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
*/
public class ApptentiveAttachmentLoader {

public static final int DRAWABLE_DOWNLOAD_TAG = R.id.drawable_downloader;
public static final int DRAWABLE_DOWNLOAD_TAG = R.id.apptentive_drawable_downloader;

private ImageMemoryCache bitmapMemoryCache;
private ArrayList<LoaderRequest> queuedDownLoaderRequests;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ private void initAttrs(TypedArray a) {

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
if (mImplicitElevation) {
setElevation(getResources().getDimension(R.dimen.floating_action_button_elevation));
setElevation(getResources().getDimension(R.dimen.apptentive_floating_action_button_elevation));
}
}
}
Expand Down Expand Up @@ -296,7 +296,7 @@ private void updateBackground(Drawable background) {

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
if (mImplicitElevation) {
setElevation(mShadow ? getResources().getDimension(R.dimen.floating_action_button_elevation) : 0f);
setElevation(mShadow ? getResources().getDimension(R.dimen.apptentive_floating_action_button_elevation) : 0f);
}
}

Expand Down

0 comments on commit 9bb41da

Please sign in to comment.