First version of AutoFill Plugin
This commit is contained in:
		
							
								
								
									
										50
									
								
								src/AutoFillPlugin/Resources/AboutResources.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								src/AutoFillPlugin/Resources/AboutResources.txt
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,50 @@ | ||||
| Images, layout descriptions, binary blobs and string dictionaries can be included  | ||||
| in your application as resource files.  Various Android APIs are designed to  | ||||
| operate on the resource IDs instead of dealing with images, strings or binary blobs  | ||||
| directly. | ||||
|  | ||||
| For example, a sample Android app that contains a user interface layout (main.xml), | ||||
| an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png)  | ||||
| would keep its resources in the "Resources" directory of the application: | ||||
|  | ||||
| Resources/ | ||||
|     drawable-hdpi/ | ||||
|         icon.png | ||||
|  | ||||
|     drawable-ldpi/ | ||||
|         icon.png | ||||
|  | ||||
|     drawable-mdpi/ | ||||
|         icon.png | ||||
|  | ||||
|     layout/ | ||||
|         main.xml | ||||
|  | ||||
|     values/ | ||||
|         strings.xml | ||||
|  | ||||
| In order to get the build system to recognize Android resources, set the build action to | ||||
| "AndroidResource".  The native Android APIs do not operate directly with filenames, but  | ||||
| instead operate on resource IDs.  When you compile an Android application that uses resources,  | ||||
| the build system will package the resources for distribution and generate a class called | ||||
| "Resource" that contains the tokens for each one of the resources included. For example,  | ||||
| for the above Resources layout, this is what the Resource class would expose: | ||||
|  | ||||
| public class Resource { | ||||
|     public class drawable { | ||||
|         public const int icon = 0x123; | ||||
|     } | ||||
|  | ||||
|     public class layout { | ||||
|         public const int main = 0x456; | ||||
|     } | ||||
|  | ||||
|     public class strings { | ||||
|         public const int first_string = 0xabc; | ||||
|         public const int second_string = 0xbcd; | ||||
|     } | ||||
| } | ||||
|  | ||||
| You would then use R.drawable.icon to reference the drawable/icon.png file, or Resource.layout.main  | ||||
| to reference the layout/main.xml file, or Resource.strings.first_string to reference the first  | ||||
| string in the dictionary file values/strings.xml. | ||||
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 15 KiB | 
							
								
								
									
										
											BIN
										
									
								
								src/AutoFillPlugin/Resources/drawable/Icon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/AutoFillPlugin/Resources/drawable/Icon.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 4.0 KiB | 
							
								
								
									
										8
									
								
								src/AutoFillPlugin/Resources/values/Strings.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								src/AutoFillPlugin/Resources/values/Strings.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <resources> | ||||
|     <string name="LookupTitle">Look up credentials</string> | ||||
|     <string name="ApplicationName">KP2A AutoFillPlugin</string> | ||||
|   <string name="NotificationTitle">Keepass2Android AutoFill</string> | ||||
|     <string name="NotificationContentText">AutoFill form for %1$s</string> | ||||
|   <string name="NotificationTickerText">AutoFill available for %1$s</string> | ||||
| </resources> | ||||
							
								
								
									
										11
									
								
								src/AutoFillPlugin/Resources/xml/accserviceconfig.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								src/AutoFillPlugin/Resources/xml/accserviceconfig.xml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| <?xml version="1.0" encoding="utf-8" ?> | ||||
| <accessibility-service xmlns:android="http://schemas.android.com/apk/res/android" | ||||
|     android:description="@string/ApplicationName" | ||||
|     android:accessibilityEventTypes="typeAllMask" | ||||
|     android:accessibilityFlags="flagDefault" | ||||
|     android:accessibilityFeedbackType="feedbackSpoken" | ||||
|     android:notificationTimeout="100" | ||||
|     android:canRetrieveWindowContent="true" | ||||
|      | ||||
| /> | ||||
| <!--android:settingsActivity="md58dca69cf5ce118dfdacac1ed5b2bbacf.MainActivity"--> | ||||
		Reference in New Issue
	
	Block a user
	 Philipp Crocoll
					Philipp Crocoll