diff --git a/docs/documentation/android/code_documentation/AndroidStyles.md b/docs/documentation/android/code_documentation/AndroidStyles.md index c7f631d..f8c27ad 100644 --- a/docs/documentation/android/code_documentation/AndroidStyles.md +++ b/docs/documentation/android/code_documentation/AndroidStyles.md @@ -1,3 +1,35 @@ # Creating Styles in android -Styles and themes on Android make it possible for you to separate the details of our app design from the UI structure and behavior, identical to stylesheets in web design. We will use this in our project to maintain a consistent style, so that we won't have to hardcode it to each element. A style is a set of attributes that determine the appearance of a single View. A style can define features like font color, font size, background color, and a lot more. \ No newline at end of file +Styles and themes on Android make it possible for you to separate the details of our app design from the UI structure and behavior, identical to stylesheets in web design. We will use this in our project to maintain a consistent style, so that we won't have to hardcode it to each element. A style is a set of attributes that determine the appearance of a single View. A style can define features like font color, font size, background color, and a lot more. + +To make a style you want to navigate to res/values/styles.xml in this file you can make styles. Fot this example we will make a buttonstyle that we can implement across multiple buttons. To make a style you need to add this code to your style.xml file + +```xml + + + + + +``` +After that, you may add your styling items in the code. + + +```xml + +``` +If you have done this, return to your activity.xml file and add the style element to your object. You will need to connect your style to the element. +```xml +