-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3c9abac
commit 607affb
Showing
11 changed files
with
631 additions
and
9 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
...src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/AddInteractionFragment.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,20 @@ | ||
package com.gazeboindustries.sextafeiramobile.Fragments; | ||
|
||
import android.os.Bundle; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import androidx.fragment.app.Fragment; | ||
|
||
import com.gazeboindustries.sextafeiramobile.R; | ||
|
||
public class AddInteractionFragment extends Fragment { | ||
@Nullable | ||
@Override | ||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { | ||
return inflater.inflate(R.layout.fragment_addinteraction, container, false); | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
...pp/src/main/java/com/gazeboindustries/sextafeiramobile/Fragments/InteractionFragment.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,37 @@ | ||
package com.gazeboindustries.sextafeiramobile.Fragments; | ||
|
||
import android.os.Bundle; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.Button; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import androidx.fragment.app.Fragment; | ||
import androidx.fragment.app.FragmentTransaction; | ||
|
||
import com.gazeboindustries.sextafeiramobile.MainActivity; | ||
import com.gazeboindustries.sextafeiramobile.R; | ||
import com.google.android.material.floatingactionbutton.FloatingActionButton; | ||
|
||
public class InteractionFragment extends Fragment { | ||
@Nullable | ||
@Override | ||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { | ||
View view = inflater.inflate(R.layout.fragment_interactions, container, false); | ||
|
||
Button btnAddInteraction = view.findViewById(R.id.btnAddInteraction); | ||
|
||
btnAddInteraction.setOnClickListener(new View.OnClickListener() { | ||
@Override | ||
public void onClick(View view) { | ||
assert getFragmentManager() != null; | ||
getFragmentManager().beginTransaction().replace(R.id.frame, new AddInteractionFragment()).commit(); | ||
} | ||
}); | ||
|
||
return view; | ||
} | ||
|
||
} |
24 changes: 24 additions & 0 deletions
24
...rc/main/java/com/gazeboindustries/sextafeiramobile/Fragments/ViewInteractionFragment.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,24 @@ | ||
package com.gazeboindustries.sextafeiramobile.Fragments; | ||
|
||
import android.os.Bundle; | ||
import android.view.LayoutInflater; | ||
import android.view.View; | ||
import android.view.ViewGroup; | ||
import android.widget.Button; | ||
import android.widget.EditText; | ||
|
||
import androidx.annotation.NonNull; | ||
import androidx.annotation.Nullable; | ||
import androidx.fragment.app.Fragment; | ||
|
||
import com.gazeboindustries.sextafeiramobile.R; | ||
|
||
public class ViewInteractionFragment extends Fragment { | ||
@Nullable | ||
@Override | ||
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { | ||
View view = inflater.inflate(R.layout.fragment_viewinteraction, container, false); | ||
|
||
return 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:width="40dp" | ||
android:height="40dp" | ||
android:viewportWidth="24.0" | ||
android:viewportHeight="24.0"> | ||
<path | ||
android:fillColor="#FF000000" | ||
android:fillColor="#FFF" | ||
android:pathData="M12,2C6.48,2 2,6.48 2,12s4.48,10 10,10 10,-4.48 10,-10S17.52,2 12,2zM17,13h-4v4h-2v-4L7,13v-2h4L11,7h2v4h4v2z"/> | ||
</vector> |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:width="40dp" | ||
android:height="40dp" | ||
android:viewportWidth="24.0" | ||
android:viewportHeight="24.0"> | ||
<path | ||
android:fillColor="#FF000000" | ||
android:fillColor="#FFF" | ||
android:pathData="M6,19c0,1.1 0.9,2 2,2h8c1.1,0 2,-0.9 2,-2V7H6v12zM19,4h-3.5l-1,-1h-5l-1,1H5v2h14V4z"/> | ||
</vector> |
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<vector xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:width="24dp" | ||
android:height="24dp" | ||
android:width="40dp" | ||
android:height="40dp" | ||
android:viewportWidth="24.0" | ||
android:viewportHeight="24.0"> | ||
<path | ||
android:fillColor="#FF000000" | ||
android:fillColor="#FFF" | ||
android:pathData="M3,17.25V21h3.75L17.81,9.94l-3.75,-3.75L3,17.25zM20.71,7.04c0.39,-0.39 0.39,-1.02 0,-1.41l-2.34,-2.34c-0.39,-0.39 -1.02,-0.39 -1.41,0l-1.83,1.83 3.75,3.75 1.83,-1.83z"/> | ||
</vector> |
229 changes: 229 additions & 0 deletions
229
App/app/src/main/res/layout/fragment_addinteraction.xml
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,229 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:background="@drawable/background"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/adicionar_interacao" | ||
android:textColor="#fff" | ||
android:textSize="30sp" | ||
android:layout_gravity="center" | ||
android:fontFamily="sans-serif-black" | ||
android:layout_margin="10dp" | ||
/> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/palavra_chave_1" | ||
android:textColor="#fff" | ||
android:textSize="20sp" | ||
android:layout_marginStart="10sp" | ||
android:layout_marginTop="10dp" | ||
android:fontFamily="sans-serif-black"/> | ||
|
||
<EditText | ||
android:layout_width="220dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:layout_marginStart="5dp" | ||
android:textColor="#fff" | ||
android:fontFamily="sans-serif-black" | ||
android:textSize="20sp" | ||
android:id="@+id/txtKeyword1" | ||
/> | ||
|
||
</LinearLayout> | ||
|
||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/palavra_chave_2" | ||
android:textColor="#fff" | ||
android:textSize="20sp" | ||
android:layout_marginStart="10sp" | ||
android:layout_marginTop="10dp" | ||
android:fontFamily="sans-serif-black"/> | ||
|
||
<EditText | ||
android:layout_width="220dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:layout_marginStart="5dp" | ||
android:textColor="#fff" | ||
android:fontFamily="sans-serif-black" | ||
android:textSize="20sp" | ||
android:id="@+id/txtKeyword2" | ||
/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/palavra_chave_3" | ||
android:textColor="#fff" | ||
android:textSize="20sp" | ||
android:layout_marginStart="10sp" | ||
android:layout_marginTop="10dp" | ||
android:fontFamily="sans-serif-black"/> | ||
|
||
<EditText | ||
android:layout_width="220dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:layout_marginStart="5dp" | ||
android:textColor="#fff" | ||
android:fontFamily="sans-serif-black" | ||
android:textSize="20sp" | ||
android:id="@+id/txtKeyword3" | ||
/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/resposta_1" | ||
android:textColor="#fff" | ||
android:textSize="20sp" | ||
android:layout_marginStart="10sp" | ||
android:layout_marginTop="10dp" | ||
android:fontFamily="sans-serif-black"/> | ||
|
||
<EditText | ||
android:layout_width="265dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:layout_marginStart="5dp" | ||
android:textColor="#fff" | ||
android:fontFamily="sans-serif-black" | ||
android:textSize="20sp" | ||
android:id="@+id/txtResponse1" | ||
/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/resposta_2" | ||
android:textColor="#fff" | ||
android:textSize="20sp" | ||
android:layout_marginStart="10sp" | ||
android:layout_marginTop="10dp" | ||
android:fontFamily="sans-serif-black"/> | ||
|
||
<EditText | ||
android:layout_width="265dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:layout_marginStart="5dp" | ||
android:textColor="#fff" | ||
android:fontFamily="sans-serif-black" | ||
android:textSize="20sp" | ||
android:id="@+id/txtResponse2" | ||
/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/resposta_3" | ||
android:textColor="#fff" | ||
android:textSize="20sp" | ||
android:layout_marginStart="10sp" | ||
android:layout_marginTop="10dp" | ||
android:fontFamily="sans-serif-black"/> | ||
|
||
<EditText | ||
android:layout_width="265dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:layout_marginStart="5dp" | ||
android:textColor="#fff" | ||
android:fontFamily="sans-serif-black" | ||
android:textSize="20sp" | ||
android:id="@+id/txtResponse3" | ||
/> | ||
|
||
</LinearLayout> | ||
|
||
<LinearLayout | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:orientation="horizontal"> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="@string/comando" | ||
android:textColor="#fff" | ||
android:textSize="20sp" | ||
android:layout_marginStart="10sp" | ||
android:layout_marginTop="10dp" | ||
android:fontFamily="sans-serif-black"/> | ||
|
||
<EditText | ||
android:layout_width="275dp" | ||
android:layout_height="wrap_content" | ||
android:layout_marginTop="5dp" | ||
android:layout_marginStart="5dp" | ||
android:textColor="#fff" | ||
android:fontFamily="sans-serif-black" | ||
android:textSize="20sp" | ||
android:id="@+id/txtCommand" | ||
/> | ||
|
||
</LinearLayout> | ||
|
||
|
||
<Button | ||
android:layout_width="250dp" | ||
android:layout_height="wrap_content" | ||
android:text="@string/adicionar" | ||
android:layout_gravity="center" | ||
android:background="@drawable/button_color" | ||
android:textSize="20sp" | ||
android:textColor="#fff" | ||
android:fontFamily="sans-serif-black" | ||
android:layout_marginTop="30dp"/> | ||
|
||
</LinearLayout> |
Oops, something went wrong.