Skip to content

Instantly share code, notes, and snippets.

@n21cosmin
n21cosmin / activity_main.xml
Created April 12, 2017 18:17
activity_main.xml tested
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:customfontdemo="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
@n21cosmin
n21cosmin / MainActivity.java
Created April 12, 2017 04:45
MainActivity.java - test e-mail app
package com.example.android.myapplication;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.widget.EditText;
@n21cosmin
n21cosmin / activity_main.xml
Created April 12, 2017 04:41
activity_main.xml - test e-mail app
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<LinearLayout
android:layout_width="368dp"
android:layout_height="wrap_content"
@n21cosmin
n21cosmin / activity_main.xml
Created April 10, 2017 23:28
CountWhatYouWant - activity_main.xml - help
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context="com.example.android.countwhatyouwant.MainActivity">
<LinearLayout
android:layout_width="match_parent"
@n21cosmin
n21cosmin / MainActivity.java
Created April 10, 2017 23:27
MainActivity.java - Count what you want - help
package com.example.android.countwhatyouwant;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
@n21cosmin
n21cosmin / activity_main.xml
Created April 9, 2017 20:28
VisitBrasov - Postcard - activity_main.xml - relative layout
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MainActivity">
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
@n21cosmin
n21cosmin / strings.xml
Created April 6, 2017 22:25
strings.xml single screen app megalonyx card with styles
<resources>
<string name="app_name">CARD FOR SC MEGALONYX SRL</string>
<!--Customizing strings for different lines in the address and schedule-->
<string name="schedule">Monday to Friday from 9 AM to 5 PM</string>
<string name="address_first_line">Street. Saint John Number 17 City Brasov</string>
<string name="address_second_line">County Brasov Area Code 500030</string>
<!--Customizing strings for different lines in the description-->
<string name="description_first_line">SC MEGALONYX SRL is developing renewable energy projects for both household and industrial consumers.</string>
@n21cosmin
n21cosmin / activity_main.xml
Created April 6, 2017 22:23
activity_main.xml single screen app megalonyx card with styles
<?xml version="1.0" encoding="utf-8"?><!--I have chosen a LinearLayout to align different text views
and image views one below the other-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/backgroundColor"
android:orientation="vertical"
android:paddingBottom="@dimen/activity_vertical_margin"
@n21cosmin
n21cosmin / MainActivity.java
Created April 6, 2017 22:14
single screen app - with styles - megalonyx card - MainActivity.java
package com.example.android.myapplication;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
@n21cosmin
n21cosmin / styles.xml
Created April 6, 2017 22:13
single Screen App - with styles - Megalonyx Card - styles.xml
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:typeface">serif</item>
</style>