-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
minor json/logic adjustments
- Loading branch information
Aaron Huttner
authored and
Aaron Huttner
committed
Aug 22, 2016
1 parent
5dfbb20
commit ac48029
Showing
18 changed files
with
186 additions
and
35 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
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
36 changes: 36 additions & 0 deletions
36
app/src/main/java/com/rockthevote/grommet/ui/registration/AssistantInfoFragment.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,36 @@ | ||
package com.rockthevote.grommet.ui.registration; | ||
|
||
import android.os.Bundle; | ||
import android.support.annotation.Nullable; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
import com.f2prateek.rx.preferences.Preference; | ||
import com.rockthevote.grommet.R; | ||
import com.rockthevote.grommet.data.prefs.CurrentRockyRequestId; | ||
import com.squareup.sqlbrite.BriteDatabase; | ||
|
||
import javax.inject.Inject; | ||
|
||
import butterknife.ButterKnife; | ||
|
||
public class AssistantInfoFragment extends BaseRegistrationFragment { | ||
|
||
@Inject @CurrentRockyRequestId Preference<Long> rockyRequestRowId; | ||
|
||
@Inject BriteDatabase db; | ||
|
||
@Nullable | ||
@Override | ||
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { | ||
setContentView(R.layout.fragment_assistant_info); | ||
return super.onCreateView(inflater, container, savedInstanceState); | ||
} | ||
|
||
@Override | ||
public void onViewCreated(View view, Bundle savedInstanceState) { | ||
super.onViewCreated(view, savedInstanceState); | ||
ButterKnife.bind(this, view); | ||
} | ||
} |
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
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,89 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<GridLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:animateLayoutChanges="true" | ||
android:columnCount="2" | ||
android:useDefaultMargins="true" | ||
> | ||
|
||
<CheckBox | ||
android:id="@+id/checkbox_has_assistant" | ||
style="@style/GrommetContentArea" | ||
android:layout_width="wrap_content" | ||
android:layout_columnSpan="2" | ||
android:paddingBottom="@dimen/content_area_padding" | ||
android:paddingTop="@dimen/content_area_padding" | ||
android:text="@string/label_has_assistant"/> | ||
|
||
<View | ||
style="@style/GrommetDivider" | ||
android:layout_width="0dp" | ||
android:layout_columnSpan="2" | ||
android:layout_gravity="fill_horizontal" | ||
android:layout_marginStart="@dimen/content_margin" | ||
android:paddingBottom="@dimen/content_area_padding" | ||
android:paddingTop="@dimen/content_area_padding"/> | ||
|
||
<TextView | ||
android:id="@+id/assistant_section_label" | ||
android:layout_width="match_parent" | ||
android:layout_columnSpan="2" | ||
android:layout_marginEnd="@dimen/content_margin" | ||
android:layout_marginStart="@dimen/content_margin" | ||
android:paddingBottom="@dimen/content_area_padding" | ||
android:paddingTop="@dimen/content_area_padding" | ||
android:text="@string/section_label_assistant" | ||
android:textAppearance="@android:style/TextAppearance.Material.Subhead"/> | ||
|
||
<com.rockthevote.grommet.ui.views.NameView | ||
android:id="@+id/name" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_columnSpan="2" | ||
android:layout_gravity="start|bottom" | ||
app:name_type="ASSISTANT"/> | ||
|
||
<com.rockthevote.grommet.ui.views.AddressView | ||
android:id="@+id/assistant_address" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_columnSpan="2" | ||
android:layout_gravity="start|bottom" | ||
android:visibility="gone" | ||
app:address_type="ASSISTANT" | ||
tools:visibility="visible" | ||
/> | ||
|
||
<android.support.design.widget.TextInputLayout | ||
android:id="@+id/til_assistant_phone_number" | ||
android:layout_width="0dp" | ||
android:layout_height="wrap_content" | ||
android:layout_columnWeight=".7" | ||
android:layout_gravity="fill_horizontal" | ||
android:layout_marginStart="@dimen/content_margin" | ||
app:errorEnabled="true"> | ||
|
||
<android.support.design.widget.TextInputEditText | ||
android:id="@+id/assistant_phone" | ||
android:layout_width="match_parent" | ||
android:layout_height="@dimen/list_item_height" | ||
android:hint="@string/label_phone" | ||
android:inputType="phone" | ||
android:maxLines="1"/> | ||
|
||
</android.support.design.widget.TextInputLayout> | ||
|
||
<CheckBox | ||
android:id="@+id/checkbox_assistant_affirmation" | ||
style="@style/GrommetContentArea" | ||
android:layout_width="wrap_content" | ||
android:layout_columnSpan="2" | ||
android:paddingBottom="@dimen/content_area_padding" | ||
android:paddingTop="@dimen/content_area_padding" | ||
tools:text="a agree to stuff and things"/> | ||
|
||
</GridLayout> |
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
Oops, something went wrong.