├── .idea ├── .name ├── copyright │ └── profiles_settings.xml ├── encodings.xml ├── vcs.xml ├── modules.xml ├── runConfigurations.xml ├── compiler.xml ├── gradle.xml └── misc.xml ├── app ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── mipmap-hdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ │ └── ic_launcher.png │ │ │ ├── values │ │ │ │ ├── strings.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ └── styles.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ ├── layout │ │ │ │ ├── component_detail.xml │ │ │ │ ├── component_list.xml │ │ │ │ ├── component_list_content.xml │ │ │ │ ├── activity_component_list.xml │ │ │ │ └── activity_component_detail.xml │ │ │ └── layout-w900dp │ │ │ │ └── component_list.xml │ │ ├── java │ │ │ └── com │ │ │ │ └── oanguin │ │ │ │ └── android │ │ │ │ └── component │ │ │ │ ├── dummy │ │ │ │ ├── DemoRow.java │ │ │ │ ├── DemoList.java │ │ │ │ └── DemoContent.java │ │ │ │ ├── ComponentDetailFragment.java │ │ │ │ ├── ComponentDetailActivity.java │ │ │ │ └── ComponentListActivity.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── oanguin │ │ │ └── android │ │ │ └── component │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── oanguin │ │ └── android │ │ └── component │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── paginated-table ├── .gitignore ├── src │ ├── main │ │ ├── res │ │ │ ├── drawable │ │ │ │ ├── tick16x17.png │ │ │ │ ├── switch_track_off.xml │ │ │ │ ├── switch_track_on.xml │ │ │ │ ├── switch_track_selector.xml │ │ │ │ ├── switch_thumb_selector.xml │ │ │ │ ├── switch_thumb_on.xml │ │ │ │ ├── switch_thumb_off.xml │ │ │ │ └── roundbutton.xml │ │ │ ├── layout │ │ │ │ └── simple_spinner_dropdown_item.xml │ │ │ └── values │ │ │ │ ├── strings.xml │ │ │ │ ├── styles.xml │ │ │ │ └── color.xml │ │ ├── assets │ │ │ └── fonts │ │ │ │ └── fontawesome-webfont.ttf │ │ ├── java │ │ │ └── com │ │ │ │ └── android │ │ │ │ └── oanguin │ │ │ │ └── component │ │ │ │ └── paginationtable │ │ │ │ ├── SortedMethod.java │ │ │ │ ├── GenericSort.java │ │ │ │ ├── UseSwitch.java │ │ │ │ ├── GenericPagination.java │ │ │ │ ├── Icon.java │ │ │ │ ├── GenericList.java │ │ │ │ ├── GenericRow.java │ │ │ │ └── GenericTable.java │ │ └── AndroidManifest.xml │ ├── test │ │ └── java │ │ │ └── com │ │ │ └── android │ │ │ └── oanguin │ │ │ └── component │ │ │ └── paginationtable │ │ │ └── ExampleUnitTest.java │ └── androidTest │ │ └── java │ │ └── com │ │ └── android │ │ └── oanguin │ │ └── component │ │ └── paginationtable │ │ └── ApplicationTest.java ├── proguard-rules.pro └── build.gradle ├── settings.gradle ├── ScreenShotPaginatedTable.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── gradle.properties ├── gradlew.bat ├── README.md └── gradlew /.idea/.name: -------------------------------------------------------------------------------- 1 | AndroidComponent -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /paginated-table/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app', ':paginated-table' 2 | -------------------------------------------------------------------------------- /ScreenShotPaginatedTable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/ScreenShotPaginatedTable.png -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /paginated-table/src/main/res/drawable/tick16x17.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/paginated-table/src/main/res/drawable/tick16x17.png -------------------------------------------------------------------------------- /paginated-table/src/main/assets/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ojinxy/AndroidComponents/HEAD/paginated-table/src/main/assets/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | AndroidComponent 3 | Component Detail 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Wed Oct 21 11:34:03 PDT 2015 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 200dp 5 | 200dp 6 | 16dp 7 | 8 | -------------------------------------------------------------------------------- /paginated-table/src/main/java/com/android/oanguin/component/paginationtable/SortedMethod.java: -------------------------------------------------------------------------------- 1 | package com.android.oanguin.component.paginationtable; 2 | 3 | import java.lang.annotation.Retention; 4 | import java.lang.annotation.RetentionPolicy; 5 | 6 | @Retention(RetentionPolicy.RUNTIME) 7 | public @interface SortedMethod { 8 | int value(); 9 | } 10 | -------------------------------------------------------------------------------- /paginated-table/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/drawable/switch_track_off.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/drawable/switch_track_on.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 7 | 10 | 12 | 13 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/drawable/switch_track_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/layout/simple_spinner_dropdown_item.xml: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | > 2 | 3 | 9 | 10 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/drawable/switch_thumb_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/drawable/switch_thumb_on.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 11 | 12 | 15 | 16 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/drawable/switch_thumb_off.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 8 | 9 | 11 | 12 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /app/src/test/java/com/oanguin/android/component/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.oanguin.android.component; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/androidTest/java/com/oanguin/android/component/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.oanguin.android.component; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /paginated-table/src/test/java/com/android/oanguin/component/paginationtable/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.android.oanguin.component.paginationtable; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /app/src/main/res/layout/component_detail.xml: -------------------------------------------------------------------------------- 1 | 10 | -------------------------------------------------------------------------------- /paginated-table/src/main/java/com/android/oanguin/component/paginationtable/GenericSort.java: -------------------------------------------------------------------------------- 1 | package com.android.oanguin.component.paginationtable; 2 | 3 | import java.util.List; 4 | 5 | public interface GenericSort { 6 | 7 | public enum SORTORDER{ 8 | ASC,DESC; 9 | } 10 | public List sort(SORTORDER sortOrder, String methodNameSortedBy, Object objectClass); 11 | 12 | public String getFunctionNameForSorting(String valueToCheck); 13 | 14 | public Class getClassToBeUsedForReflection(); 15 | } 16 | -------------------------------------------------------------------------------- /paginated-table/src/androidTest/java/com/android/oanguin/component/paginationtable/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.android.oanguin.component.paginationtable; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /paginated-table/src/main/java/com/android/oanguin/component/paginationtable/UseSwitch.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package com.android.oanguin.component.paginationtable; 5 | 6 | import java.lang.annotation.Retention; 7 | import java.lang.annotation.RetentionPolicy; 8 | 9 | /** 10 | * @author oanguin 11 | * This annotation will be used as an indicator for generic table to see if a switch should be displayed on the row. 12 | * 13 | */ 14 | @Retention(RetentionPolicy.RUNTIME) 15 | public @interface UseSwitch { 16 | boolean enabled(); 17 | } 18 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /paginated-table/src/main/java/com/android/oanguin/component/paginationtable/GenericPagination.java: -------------------------------------------------------------------------------- 1 | package com.android.oanguin.component.paginationtable; 2 | 3 | import java.util.ArrayList; 4 | import java.util.List; 5 | 6 | public interface GenericPagination { 7 | 8 | enum OPTION{ 9 | PREVIOUS,NEXT,FIRST,LAST; 10 | } 11 | List genericObjectList = new ArrayList(); 12 | 13 | public List next(); 14 | 15 | public List previous(); 16 | 17 | public List current(); 18 | 19 | public List first(); 20 | 21 | public List last(); 22 | 23 | 24 | } 25 | -------------------------------------------------------------------------------- /.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | PaginationTable 3 | 4 | 5 | 6 | 7 |  ASC 8 |  DESC 9 | 10 | 10 11 | 50 12 | 100 13 | 14 | 15 | Column 1 16 | Column 2 17 | Column 3 18 | 19 | 20 | -------------------------------------------------------------------------------- /paginated-table/src/main/java/com/android/oanguin/component/paginationtable/Icon.java: -------------------------------------------------------------------------------- 1 | /** 2 | * 3 | */ 4 | package com.android.oanguin.component.paginationtable; 5 | 6 | import java.lang.annotation.Retention; 7 | import java.lang.annotation.RetentionPolicy; 8 | 9 | /** 10 | * @author oanguin 11 | * This annotation will be used as an indicator for generic table should use an Icon. 12 | * When this annotation is on the function the text view will be used with font awesome fonts to display 13 | * icons in places of escape code such as the following {@literal &}{@literal #}xf01d; 14 | * 15 | */ 16 | @Retention(RetentionPolicy.RUNTIME) 17 | public @interface Icon { 18 | String fonttype(); 19 | float fontsize(); 20 | String fontcolor(); 21 | } 22 | -------------------------------------------------------------------------------- /app/src/main/res/layout/component_list.xml: -------------------------------------------------------------------------------- 1 | 2 | 14 | -------------------------------------------------------------------------------- /paginated-table/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in C:\Users\oanguin.FSLADS\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /paginated-table/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 9 | 10 | 14 | 15 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in C:\Users\oanguin.FSLADS\AppData\Local\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 15 | 16 |