Skip to content

Commit

Permalink
set changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ShehanaIqbal committed Jun 20, 2020
1 parent c2cf766 commit f3db33f
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 49 deletions.
2 changes: 1 addition & 1 deletion mobile-app/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,16 @@ protected void onCreate(Bundle savedInstanceState) {

}

public void goToLogin(View view) {
Intent intent = new Intent(Home.this, login.class);
public void goToNext(View view) {
Intent intent = new Intent(Home.this, how_it_works.class);
startActivity(intent);

}


public void skip(View view) {
Intent intent = new Intent(Home.this, start_page.class);
startActivity(intent);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,6 @@ public void run() {
}


public void goToNext(View view) {
Intent intent = new Intent(MainActivity.this, how_it_works.class);
startActivity(intent);

}


public void skip(View view) {
Intent intent = new Intent(MainActivity.this, start_page.class);
startActivity(intent);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public void allowAccess(View view) {
@Override
protected void onResume() {
super.onResume();
allowButton.setEnabled(EasyPermissions.hasPermissions(this, permissions));
//allowButton.setEnabled(EasyPermissions.hasPermissions(this, permissions));
}

public void goToAbout(View view) {
Expand All @@ -79,7 +79,7 @@ public void onRequestPermissionsResult(int requestCode, @NonNull String[] permis
@Override
public void onPermissionsGranted(int requestCode, @NonNull List<String> perms) {
String[] permissions = Util.getPermissions();
allowButton.setEnabled(EasyPermissions.hasPermissions(this, permissions));
//allowButton.setEnabled(EasyPermissions.hasPermissions(this, permissions));
Button btn=findViewById(R.id.final_btn);
Animation animFadeIn = AnimationUtils.loadAnimation(getApplicationContext(),R.anim.fade_in);
btn.startAnimation(animFadeIn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#6680D8FF"/>
<stroke android:color="#fff" android:width="2dp" />
<solid android:color="#B5CBD5"/>
<stroke android:color="@android:color/transparent" android:width="2dp" />
<!--corners allow us to make the rounded corners button-->
<corners android:radius="15dp" />
</shape>
Expand Down
4 changes: 2 additions & 2 deletions mobile-app/app/src/main/res/drawable/square_background.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<solid android:color="@android:color/white" />
<stroke android:width="1dip" android:color="#4fa5d5"/>
<solid android:color="@android:color/transparent" />
<stroke android:width="1dip" android:color="@android:color/transparent"/>
</shape>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<solid android:color="#ffffff"/>
<stroke android:color="@color/colorAccent" android:width="2dp" />
<solid android:color="@android:color/transparent"/>
<stroke android:color="@color/colorPrimaryDark" android:width="2dp" />
<!--corners allow us to make the rounded corners button-->
<corners android:radius="15dp" />
</shape>
Expand Down
9 changes: 4 additions & 5 deletions mobile-app/app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,11 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginHorizontal="8dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginHorizontal="30dp"
android:layout_marginBottom="30dp"
android:layout_marginTop="10dp"
android:background="@drawable/round_button"
android:text="back"
android:textColor="#ffffff"/>
android:text="Back"
android:textColor="#ffffff" />

</RelativeLayout>
7 changes: 3 additions & 4 deletions mobile-app/app/src/main/res/layout/activity_login.xml
Original file line number Diff line number Diff line change
Expand Up @@ -126,13 +126,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginHorizontal="8dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginHorizontal="30dp"
android:layout_marginBottom="30dp"
android:layout_marginTop="10dp"
android:background="@drawable/round_button"
android:onClick="OTPEnter"
android:text="@string/login_2_btn"
android:text="Join goSAFE"
android:textColor="#ffffff" />

</RelativeLayout>
4 changes: 3 additions & 1 deletion mobile-app/app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingBottom="50dp"
android:layout_marginBottom="50dp"
android:gravity="center"
android:layout_alignParentBottom="true">
<ImageView
android:id="@+id/img"
android:layout_width="40dp"
android:layout_centerVertical="true"
android:layout_height="40dp"
android:src="@drawable/acm" />
<LinearLayout
android:layout_toEndOf="@+id/img"
android:layout_marginHorizontal="10dp"
android:layout_width="wrap_content"
android:layout_centerVertical="true"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="vertical"
Expand Down
26 changes: 12 additions & 14 deletions mobile-app/app/src/main/res/layout/activity_permission_list.xml
Original file line number Diff line number Diff line change
Expand Up @@ -183,18 +183,16 @@
android:textColor="@color/colorPrimaryDark"></TextView>
</LinearLayout>
</ScrollView>
<Button
android:id="@+id/final_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginHorizontal="8dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginBottom="30dp"
android:layout_marginTop="10dp"
android:background="@drawable/round_button"
android:onClick="goToShare"
android:text="Share This App"
android:textColor="#ffffff" />
<Button
android:id="@+id/final_btn"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginHorizontal="30dp"
android:layout_marginBottom="30dp"
android:layout_marginTop="10dp"
android:background="@drawable/round_button"
android:onClick="goToShare"
android:text="Share this app"
android:textColor="#ffffff" />
</RelativeLayout>
7 changes: 3 additions & 4 deletions mobile-app/app/src/main/res/layout/activity_share.xml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,12 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginHorizontal="8dp"
android:layout_marginLeft="10dp"
android:layout_marginRight="10dp"
android:layout_marginHorizontal="30dp"
android:layout_marginBottom="30dp"
android:layout_marginTop="10dp"
android:background="@drawable/round_button"
android:onClick="shareApp"
android:text="share this application"
android:text="Join goSAFE"
android:textColor="#ffffff" />

</RelativeLayout>

0 comments on commit f3db33f

Please sign in to comment.