Skip to content

Commit 0015c51

Browse files
author
danielme.com
committedAug 10, 2013
first commit
0 parents  commit 0015c51

22 files changed

+858
-0
lines changed
 

‎.classpath

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="src" path="gen"/>
5+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
6+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
7+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
8+
<classpathentry kind="output" path="bin/classes"/>
9+
</classpath>

‎.project

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>EditText estilos</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.jdt.core.javabuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>com.android.ide.eclipse.adt.ApkBuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
31+
<nature>org.eclipse.jdt.core.javanature</nature>
32+
</natures>
33+
</projectDescription>

‎.settings/org.eclipse.jdt.core.prefs

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3+
org.eclipse.jdt.core.compiler.compliance=1.6
4+
org.eclipse.jdt.core.compiler.source=1.6

‎AndroidManifest.xml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
4+
package="com.danieme.tipsandroid.edittext.estilos"
5+
android:versionCode="1"
6+
android:versionName="1.0" >
7+
8+
<uses-sdk
9+
android:minSdkVersion="7"
10+
android:targetSdkVersion="18" />
11+
12+
<application
13+
android:allowBackup="true"
14+
android:icon="@drawable/ic_launcher"
15+
android:label="@string/app_name" >
16+
<activity
17+
android:name="com.danielme.tipsandroid.edittext.estilos.MainActivity"
18+
android:label="@string/app_name" >
19+
<intent-filter>
20+
<action android:name="android.intent.action.MAIN" />
21+
<category android:name="android.intent.category.LAUNCHER" />
22+
</intent-filter>
23+
</activity>
24+
</application>
25+
26+
</manifest>

‎LICENSE.txt

+674
Large diffs are not rendered by default.

‎ic_launcher-web.png

1 MB
Loading

‎proguard-project.txt

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
#}

‎project.properties

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# This file is automatically generated by Android Tools.
2+
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3+
#
4+
# This file must be checked in Version Control Systems.
5+
#
6+
# To customize properties used by the Ant build system edit
7+
# "ant.properties", and override values to adapt the script to your
8+
# project structure.
9+
#
10+
# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11+
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12+
13+
# Project target.
14+
target=android-18

‎res/drawable-hdpi/ic_launcher.png

20.5 KB
Loading

‎res/drawable-ldpi/ic_launcher.png

5.21 KB
Loading

‎res/drawable-mdpi/ic_launcher.png

9.18 KB
Loading
417 Bytes
Loading
483 Bytes
Loading
432 Bytes
Loading
4.85 KB
Loading
357 Bytes
Loading

‎res/drawable-xhdpi/ic_launcher.png

36.3 KB
Loading

‎res/drawable/edittext_selector.xml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<selector xmlns:android="http://schemas.android.com/apk/res/android">
4+
5+
<item android:drawable="@drawable/textfield_default" android:state_enabled="true" android:state_window_focused="false"/>
6+
<item android:drawable="@drawable/textfield_disabled" android:state_enabled="false" android:state_window_focused="false"/>
7+
<item android:drawable="@drawable/textfield_pressed" android:state_pressed="true"/>
8+
<item android:drawable="@drawable/textfield_selected" android:state_enabled="true" android:state_focused="true"/>
9+
<item android:drawable="@drawable/textfield_default" android:state_enabled="true"/>
10+
<item android:drawable="@drawable/textfield_disabled_selected" android:state_focused="true"/>
11+
<item android:drawable="@drawable/textfield_disabled"/>
12+
13+
</selector>

‎res/layout/activity_main.xml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
android:layout_width="fill_parent"
4+
android:layout_height="fill_parent"
5+
android:orientation="vertical"
6+
android:background="@color/mainbackground"
7+
android:paddingLeft="5dp"
8+
android:paddingRight="5dp"
9+
android:paddingTop="10dp">
10+
11+
<EditText
12+
android:id="@+id/editText_estilo"
13+
android:layout_width="fill_parent"
14+
android:layout_height="wrap_content"
15+
android:ems="10"
16+
android:hint="@string/estilo"
17+
android:background="@drawable/edittext_selector"/>
18+
19+
<EditText
20+
android:id="@+id/editText_nativo"
21+
android:layout_width="fill_parent"
22+
android:layout_height="wrap_content"
23+
android:ems="10"
24+
android:hint="@string/nativo"
25+
android:layout_marginTop="20dp"/>
26+
27+
</LinearLayout>

‎res/values/colors.xml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<resources>
4+
5+
<color name="mainbackground">#4c4c4c</color>
6+
7+
</resources>

‎res/values/strings.xml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
4+
<string name="app_name">EditText estilos - danielme.com</string>
5+
<string name="nativo">Estilo nativo</string>
6+
<string name="estilo">Estilo personalizado</string>
7+
8+
</resources>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package com.danielme.tipsandroid.edittext.estilos;
2+
3+
import android.app.Activity;
4+
import android.os.Bundle;
5+
6+
7+
import com.danieme.tipsandroid.edittext.estilos.R;
8+
9+
/**
10+
*
11+
* @author Daniel Medina (danielme.com)
12+
*
13+
*/
14+
public class MainActivity extends Activity
15+
{
16+
17+
@Override
18+
protected void onCreate(Bundle savedInstanceState)
19+
{
20+
super.onCreate(savedInstanceState);
21+
setContentView(R.layout.activity_main);
22+
}
23+
}

0 commit comments

Comments
 (0)
Please sign in to comment.