File tree Expand file tree Collapse file tree
src/com/hmkcode/android/L Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <manifest xmlns : android =" http://schemas.android.com/apk/res/android"
3+ package =" com.hmkcode.android.L"
4+ android : versionCode =" 1"
5+ android : versionName =" 1.0" >
6+
7+ <uses-sdk
8+ android : minSdkVersion =" L"
9+ android : targetSdkVersion =" 21" />
10+
11+ <application
12+ android : allowBackup =" true"
13+ android : icon =" @drawable/ic_launcher"
14+ android : label =" @string/app_name"
15+ android : theme =" @style/AppTheme" >
16+ <activity
17+ android : name =" .MainActivity"
18+ android : label =" @string/title_activity_main" >
19+ <intent-filter >
20+ <action android : name =" android.intent.action.MAIN" />
21+
22+ <category android : name =" android.intent.category.LAUNCHER" />
23+ </intent-filter >
24+ </activity >
25+ </application >
26+
27+ </manifest >
Original file line number Diff line number Diff line change 1+ # To enable ProGuard in your project, edit project.properties
2+ # to define the proguard.config property as described in that file.
3+ #
4+ # Add project specific ProGuard rules here.
5+ # By default, the flags in this file are appended to flags specified
6+ # in ${sdk.dir}/tools/proguard/proguard-android.txt
7+ # You can edit the include path and order by changing the ProGuard
8+ # include property in project.properties.
9+ #
10+ # For more details, see
11+ # http://developer.android.com/guide/developing/tools/proguard.html
12+
13+ # Add any project specific keep options here:
14+
15+ # If your project uses WebView with JS, uncomment the following
16+ # and specify the fully qualified class name to the JavaScript interface
17+ # class:
18+ #-keepclassmembers class fqcn.of.javascript.interface.for.webview {
19+ # public *;
20+ #}
Original file line number Diff line number Diff line change 1+ <RelativeLayout xmlns : android =" http://schemas.android.com/apk/res/android"
2+ xmlns : tools =" http://schemas.android.com/tools"
3+ android : layout_width =" match_parent"
4+ android : layout_height =" match_parent"
5+ tools : context =" ${relativePackage}.${activityClass}" >
6+
7+ <TextView
8+ android : layout_width =" wrap_content"
9+ android : layout_height =" wrap_content"
10+ android : text =" @string/hello_world" />
11+
12+ </RelativeLayout >
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" utf-8" ?>
2+ <resources >
3+
4+ <string name =" app_name" >L Preview</string >
5+ <string name =" title_activity_main" >MainActivity</string >
6+ <string name =" hello_world" >Hello world!</string >
7+
8+ </resources >
Original file line number Diff line number Diff line change 1+ <resources >
2+ <style name =" AppTheme" parent =" android:Theme.Material.Light" >
3+ </style >
4+ </resources >
Original file line number Diff line number Diff line change 1+ package com .hmkcode .android .L ;
2+
3+ import android .app .Activity ;
4+ import android .os .Bundle ;
5+
6+
7+ public class MainActivity extends Activity {
8+
9+ @ Override
10+ protected void onCreate (Bundle savedInstanceState ) {
11+ super .onCreate (savedInstanceState );
12+ setContentView (R .layout .activity_main );
13+ }
14+ }
You can’t perform that action at this time.
0 commit comments