5.estructura_proyecto

download 5.estructura_proyecto

of 8

Transcript of 5.estructura_proyecto

  • 7/25/2019 5.estructura_proyecto

    1/8

    "

    !" $%&'()&('* +, (- .'/0,)&/

    #$%& &$ &' ($)&*%+ ,&' &-)'+.(,+. ,& )(/0&%&$ ,& 1*'2)$& ,&$)03$ ,& &-)(4,2. &').+5&*%+ Hola6

    7($ *(.)&%($ ,&' ).+5&*%+ Hola$+4 '($ $2802&4%&$6

    src

    gen

    Android 5.0.1

    assets

    bin

    libs

    res

  • 7/25/2019 5.estructura_proyecto

    2/8

    9

    !"1 2* )*'.,&* src

    1$%( &$ '( *(.)&%( ,&' *:,28+ ;0&4%& /0& *+4%2&4& %0$ *'($&$ (,($ )+.)(/0&%&$? @' &-)(4,2. '( *(.)&%( ()(.&*& &' ;2*A&.+ MainActivity.java,&4%.+ ,&')(/0&%& es.uam.eps.android.hola6

    !"3 2* )*'.,&*Android 5.0.1

    7( *(.)&%( Android 5.0.1 *+4%2&4& '($ B2B'2+%&*($ /0& *+C)+4&4 &' DEF ,&@4,.+2, *+C+ 04 ;2*A&.+

  • 7/25/2019 5.estructura_proyecto

    3/8

    N

    7( *(.)&%( "##$%# &$%K =(*O( &4 ).24*2)2+ 5 $& 0%2'2>( )(.( ('C(*&4(. ;2*A&.+$ ,&(*%2=+$ L!""#$"&4 248'3$M? @ '( 24;+.C(*2:4 ,&)+$2%(,( &4 &$%+$ ;2*A&.+$ $& )0&,&(**&,&. C&,2(4%& ;'0J+$ L"$%#!&"&4 248'3$M?

    !"5 2* )*'.,&* res

    7( *(.)&%( .&$ *+4%2&4& .&*0.$+$ L%#"'(%)#"&4 248'3$M 0%2'2>(,+$ )+. %0 ()'2*(*2:4?7+$ ;2*A&.+$ ,& .&*0.$+$ $+4 CK$ ;K*2'&$ ,& 8&$%2+4(. /0& '+$ ;2*A&.+$ ,& (*%2=+$?

    P+. &J&C)'+I '($ *+4$%(4%&$ ,& %2)+ *(,&4( ,& *(.(*%&.&$ $& $0&'&4 $2%0(. &4;2*A&.+$ ,& .&*0.$+$ QR7? 1' *:,28+ ( 04+ ,& &$%+$ .&*0.$+$6

    D& %.(%( ,& 04( *(,&4( ,& 4+CB.& hello_world 5 =('+. Hello World! ,&*'(.(,(&4 &' ;2*A&.+ strings.xml,&4%.+ ,& '( *(.)&%( res/values6

  • 7/25/2019 5.estructura_proyecto

    4/8

    T

    1' *:,28+ ,& '+$ C&4V$? raw/ )(.( *0('/02&. ;2*A&.+ 80(.,(,+ &4 $0 ;+.C(%+ +.2824('? W+$+%.+$

    *+'+*(.&C+$ (/0O 04 (.*A2=+ C)T /0& $&.=2.K ,& ;+4,+ C0$2*(' ( 40&$%.+J0&8+?

    values/)(.( ;2*A&.+$ /0& *+4%2&4&4 *(,&4($I &4%&.+$I (..(5$I &4%.& +%.+$I

    *+4 '+$ $2802&4%&$ *+4=&42+$6o arrays.xml)(.( .&*0.$+$ ,& %2)+ (..(5

  • 7/25/2019 5.estructura_proyecto

    5/8

    G

    o colors.xml)(.( .&*0.$+$ /0& &$)&*2;2*(4 *+'+.&$o dimens.xml)(.( .&*0.$+$ /0& &$)&*2;2*(4 ,2C&4$2+4&$o strings.xml)(.( *(,&4($ ,& *(.(*%&.&$o styles.xml)(.( .&*0.$+$ /0& ,&;24&4 &$%2'+$

    xml/)(.( ;2*A&.+$ QR7 &4 8&4&.(' /0& $& )0&,&4 '&&. ,0.(4%& '( &J&*0*2:4

    ,& '( ()'2*(*2:4?

    X($2 *0('/02&. ()'2*(*2:4 ,&B& ).+)+.*24(. .&*0.$+$ ('%&.4(%2=+$ )(.( (,()%(.$& ()(.%2*0'(.2,(,&$ ,&' ,2$)+$2%2=+? P(.( &''+I (' 280(' /0& +*0..& *+4 '($ *(,&4($ ,&*(.(*%&.&$I $& A( ,& $0C242$%.(. 04 (.*A2=+ ,& 4+CB.& 280(' (' +.2824(' ,&4%.+ ,&04( 40&=( *(.)&%( ,& 4+CB.& 280(' ( '( +.2824(' $&802,( ,& 04 802:4 5 04*0('2;2*(,+.? P+. &J&C)'+I )(.( $0C242$%.(. 04 2*+4+ )(.( )(4%(''($ ,& ('%(,&4$2,(,6

    drawable/icon.png -> drawable-hdpi/icon.png

    S&(C+$ ('804+$ ,& '+$ .&*0.$+$ ('%&.4(%2=+$ /0& ()(.&*&4 (0%+CK%2*(C&4%& ('*.&(. 04 ).+5&*%+ &4 1*'2)$&6

    values-v11 /0& *+4%2&4& &' ;2*A&.+ styles.xml *+4 &' %&C( themeholographicI /0& $& 0%2'2>( *0(4,+ '( ()'2*(*2:4 $& &J&*0%( &4 04 ,2$)+$2%2=+*+4 @4,.+2, N?H L@PY ""M + $0)&.2+. L$& 2C)+4& (' ;2*A&.+styles.xml/0&

    *+4%&48( '( *(.)&%(valuesM? values-v14 /0& *+4%2&4& styles.xml *+4 &' %&C( theme DeviceDefaultI

    /0& $& 0%2'2>( *0(4,+ '( ()'2*(*2:4 $& &J&*0%( &4 04 ,2$)+$2%2=+ *+4 @4,.+2,T?H L@PY "TM + $0)&.2+. L$& 2C)+4& (' ;2*A&.+ styles.xml/0& *+4%&48( '(*(.)&%( valuesM?

    X+C+ $& &-)'2*( &4 &' '2$%(,+ ,& '( )K824( (4%&.2+.I &4 '( *(.)&%( layout$& $2%V(4'+$ ;2*A&.+$ QR7 /0& &$)&*2;2*(4 '($ 24%&.;(*&$ ,& 0$0(.2+I main.xml &4 40&$%.+&J&C)'+? 1' &,2%+. ,& 1*'2)$& )&.C2%& &,2%(. &' ;2*A&.+ main.xml &4 C+,+ 8.K;2*+?Z+,+ '+ /0& %2&4&$ /0& A(*&. &$ $&'&**2+4(. '( )&$%(U( (,&*0(,(Lactivity_main.xml+ Graphical Layout&4 '($ $2802&4%&$ ;280.($M6

  • 7/25/2019 5.estructura_proyecto

    6/8

    [

    !"! 2* )*'.,&* gen

    1' 4+CB.& gen ,& &$%( *(.)&%( $& .&;2&.& ( 8&4&.(,+? 1$%( *(.)&%( *+4%2&4& &'

    ;2*A&.+ R.java /0& @4,.+2, 8&4&.( (0%+CK%2*(C&4%&I 5 /0& $& )0&,& *+4$0'%(.&-)(4,2&4,+ &' 2*+4+ ,& '( *(.)&%( &4 &' 4(=&8(,+. ,& 1*'2)$&6

    R&$ 04( *'($&

  • 7/25/2019 5.estructura_proyecto

    7/8

    \

    !"#$%&'()(%&*%+)$&$)''"#$%&' (

    !"#$%&'()(%&*%+)$%+(!"#$%&'()##$&*()*+,-*.***/0

    !"#$%&'()(%&*%+)$%+(!++'&!,))*+,-*.****0

    !"#$%&'()(%&*%+)$%+(-)..%'/%0.1)*+,-*.***10

    2

    W+ ,&B&$ C+,2;2*(. &$%& ;2*A&.+ 5( /0& $& 8&4&.( ,& ;+.C( (0%+CK%2*(?

    !"6 $7 89):,'/ ;*-989,%&/

    X(,( ()'2*(*2:4 ,&B& %&4&. 04 ;2*A&.+ ''(C(,+ AndroidManifest.xml&4 '( .(O> ,&').+5&*%+? 1$%& ;2*A&.+ *+4%2&4& 24;+.C(*2:4 *+C+ )+. &J&C)'+6

    1' 4+CB.& ,&' )(/0&%& ( &$%& *:,28+ )(.(

    24;+.C(. ( '+$ 0$0(.2+$ ,& '( ,2$)+42B2'2,(, ,& (*%0('2>(*2+4&$? 7($ (*%2=2,(,&$ /0& 24%&8.(4 '( ()'2*(*2:46MainActivity &4 40&$%.+ *($+? 7+$ )&.C2$+$ /0& 4&*&$2%( '( ()'2*(*2:4 )(.( &J&*0%(.$& *+C+I )+. &J&C)'+I

    &' )&.C2$+ )(.( (**&,&. ( 24%&.4&%? 1' 42=&' @PY CO42C+ .&/0&.2,+ )+. '( ()'2*(*2:46 ^ &4 &$%& ).+5&*%+?

    !"< $7 89):,'/ .'/=,)&".'/.,'&9,%

    1$%& ;2*A&.+ $& 8&4&.( (0%+CK%2*(C&4%& 5 *+4%2&4& '+$ (J0$%&$ ,&' ).+5&*%+ %(' 5

    *+C+ '( =&.$2:4 ,&' DEF6# This file is automatically generated by Android Tools.

  • 7/25/2019 5.estructura_proyecto

    8/8

    ^

    # Do not modify this file -- YOUR CHANGES WILL BE ERASED!## This file must be checked in Version Control Systems.## To customize properties used by the Ant build system edit# "ant.properties", and override values to adapt the script to your

    # project structure.## To enable ProGuard to shrink and obfuscate your code, uncomment this(available properties: sdk.dir, user.home):#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt

    # Project target.target=android-17