Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RegisterFragment and fragment_register layout created.
DataBinding added. .gitignore updated. Loading library added. ( gradle ) EdittextValidation library added. ( gradle )
- Loading branch information
1 parent
142aaa6
commit 3b0fe49
Showing
11 changed files
with
110 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
app/src/main/java/com/streethawk/example/RegisterFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.streethawk.example; | ||
|
||
import android.app.Fragment; | ||
import android.databinding.DataBindingUtil; | ||
import android.os.Bundle; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
import com.streethawk.example.databinding.FragmentRegisterBinding; | ||
|
||
/** | ||
* Created by ercanpinar on 03/02/2017. | ||
*/ | ||
|
||
public class RegisterFragment extends Fragment { | ||
|
||
private FragmentRegisterBinding fragmentRegisterBinding; | ||
|
||
|
||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||
Bundle savedInstanceState) { | ||
fragmentRegisterBinding = DataBindingUtil.inflate( | ||
inflater, R.layout.fragment_register, container, false); | ||
|
||
|
||
return fragmentRegisterBinding.getRoot(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:whatever="http://schemas.android.com/apk/res-auto"> | ||
|
||
<LinearLayout | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:padding="10dp"> | ||
|
||
<TextView | ||
android:text="New Person" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/textView" | ||
android:textStyle="bold" | ||
android:gravity="center" | ||
android:textSize="18sp" | ||
android:layout_marginBottom="20dp" /> | ||
|
||
<com.andreabaccega.widget.FormEditText | ||
whatever:testType="alpha" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:id="@+id/editTextName" | ||
android:hint="Name" | ||
android:background="@color/gray_edittext_background" | ||
android:layout_marginBottom="20dp" /> | ||
|
||
|
||
<com.andreabaccega.widget.FormEditText | ||
whatever:testType="alpha" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:id="@+id/editTextInformation" | ||
android:hint="Information" | ||
android:background="@color/gray_edittext_background" | ||
android:layout_marginBottom="20dp" /> | ||
|
||
<Button | ||
android:text="Send" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:id="@+id/button" | ||
android:layout_margin="20dp" /> | ||
|
||
<Button | ||
android:text="All Records" | ||
android:layout_width="match_parent" | ||
android:layout_height="50dp" | ||
android:id="@+id/button2" | ||
android:layout_margin="20dp" /> | ||
</LinearLayout> | ||
</layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ buildscript { | |
allprojects { | ||
repositories { | ||
jcenter() | ||
maven { url "https://jitpack.io" } | ||
} | ||
} | ||
|
||
|