GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — * drop minSdk 10 support. new minSdk is now 14 · inloop/AboutLibraries@710497d

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • build.gradle
  • library
    • build.gradle
    • src/main/java/com/mikepenz/aboutlibraries/util
      • UIUtils.java
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎build.gradle‎

Copy file name to clipboardExpand all lines: build.gradle
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ buildscript {
1313
ext {
1414
compileSdkVersion = 24
1515
buildToolsVersion = "24.0.1"
16-
supportLibVersion = "24.1.1"
16+
supportLibVersion = "24.2.0"
1717
}
1818

1919
allprojects {
Collapse file

‎library/build.gradle‎

Copy file name to clipboardExpand all lines: library/build.gradle
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ android {
66
buildToolsVersion rootProject.ext.buildToolsVersion
77

88
defaultConfig {
9-
minSdkVersion 10
9+
minSdkVersion 14
1010
targetSdkVersion 24
1111
versionCode 573
1212
versionName '5.7.3'
@@ -36,10 +36,10 @@ dependencies {
3636
// used to provide out of the box icon font support. simplifies development,
3737
// and provides scalable icons. the core is very very light
3838
// https://github.com/mikepenz/Android-Iconics
39-
compile 'com.mikepenz:iconics-core:2.7.2@aar'
39+
compile 'com.mikepenz:iconics-core:2.8.0@aar'
4040

4141
// used to fill the RecyclerView with the items
4242
// and provides single and multi selection, expandable items
4343
// https://github.com/mikepenz/FastAdapter
44-
compile 'com.mikepenz:fastadapter:1.6.1@aar'
44+
compile 'com.mikepenz:fastadapter:1.7.0@aar'
4545
}
Collapse file

‎library/src/main/java/com/mikepenz/aboutlibraries/util/UIUtils.java‎

Copy file name to clipboardExpand all lines: library/src/main/java/com/mikepenz/aboutlibraries/util/UIUtils.java
+1-36Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,16 @@
55
import android.content.res.Resources;
66
import android.content.res.TypedArray;
77
import android.graphics.drawable.Drawable;
8-
import android.os.Build;
98
import android.support.v4.content.ContextCompat;
109
import android.util.DisplayMetrics;
1110
import android.util.TypedValue;
1211
import android.view.View;
1312

14-
import com.mikepenz.aboutlibraries.R;
15-
1613
/**
1714
* Created by mikepenz on 15.03.14.
1815
*/
1916
@SuppressLint("InlinedApi")
2017
public class UIUtils {
21-
22-
/**
23-
* helper to get the system default selectable background
24-
*
25-
* @param ctx
26-
* @return
27-
*/
28-
public static int getSelectableBackground(Context ctx) {
29-
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
30-
// If we're running on Honeycomb or newer, then we can use the Theme's
31-
// selectableItemBackground to ensure that the View has a pressed state
32-
TypedValue outValue = new TypedValue();
33-
ctx.getTheme().resolveAttribute(R.attr.selectableItemBackground, outValue, true);
34-
return outValue.resourceId;
35-
} else {
36-
TypedValue outValue = new TypedValue();
37-
ctx.getTheme().resolveAttribute(android.R.attr.itemBackground, outValue, true);
38-
return outValue.resourceId;
39-
}
40-
}
41-
4218
public static int getThemeColor(Context ctx, int attr) {
4319
TypedValue tv = new TypedValue();
4420
if (ctx.getTheme().resolveAttribute(attr, tv, true)) {
@@ -85,18 +61,7 @@ public static void setBackground(View v, Drawable d) {
8561
* @param drawableRes
8662
*/
8763
public static void setBackground(View v, int drawableRes) {
88-
setBackground(v, getCompatDrawable(v.getContext(), drawableRes));
89-
}
90-
91-
/**
92-
* helper method to get the drawable by its resource. specific to the correct android version
93-
*
94-
* @param c
95-
* @param drawableRes
96-
* @return
97-
*/
98-
public static Drawable getCompatDrawable(Context c, int drawableRes) {
99-
return ContextCompat.getDrawable(c, drawableRes);
64+
setBackground(v, ContextCompat.getDrawable(v.getContext(), drawableRes));
10065
}
10166

10267
/**

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.