dd
This commit is contained in:
parent
67b3e27d6a
commit
88c61ded49
@ -12,6 +12,9 @@
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.AppMobile"
|
||||
tools:targetApi="31">
|
||||
<activity
|
||||
android:name=".TicksActivity"
|
||||
android:exported="false" />
|
||||
<activity
|
||||
android:name=".ProfileActivity"
|
||||
android:exported="false" />
|
||||
|
@ -30,6 +30,13 @@ public class NavigationFragment extends Fragment {
|
||||
Intent intent = new Intent(getActivity(), ProfileActivity.class);
|
||||
startActivity(intent);
|
||||
});
|
||||
|
||||
ImageButton ticks = v.findViewById(R.id.btn_idea);
|
||||
ticks.setOnClickListener(view -> {
|
||||
Intent intent = new Intent(getActivity(), TicksActivity.class);
|
||||
startActivity(intent);
|
||||
});
|
||||
|
||||
return v;
|
||||
}
|
||||
}
|
@ -1,7 +1,6 @@
|
||||
package com.example.appmobile;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
import androidx.fragment.app.Fragment;
|
||||
import androidx.fragment.app.FragmentTransaction;
|
||||
|
||||
import android.content.Intent;
|
||||
@ -22,7 +21,7 @@ public class TasksActivity extends AppCompatActivity {
|
||||
|
||||
btn_open = findViewById(R.id.btn_open);
|
||||
btn_closed = findViewById(R.id.btn_closed);
|
||||
navBarFrameLayout = findViewById(R.id.nav_bar);
|
||||
navBarFrameLayout = findViewById(R.id.nav_bar_ticks);
|
||||
|
||||
NavigationFragment navBar = new NavigationFragment();
|
||||
FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
|
||||
|
@ -0,0 +1,14 @@
|
||||
package com.example.appmobile;
|
||||
|
||||
import androidx.appcompat.app.AppCompatActivity;
|
||||
|
||||
import android.os.Bundle;
|
||||
|
||||
public class TicksActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_ticks);
|
||||
}
|
||||
}
|
BIN
AppMobile/app/src/main/res/drawable/add_b.png
Normal file
BIN
AppMobile/app/src/main/res/drawable/add_b.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 21 KiB |
13
AppMobile/app/src/main/res/drawable/back_add_btn.xml
Normal file
13
AppMobile/app/src/main/res/drawable/back_add_btn.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
|
||||
<solid android:color="@color/main_pink" />
|
||||
|
||||
<padding
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:bottom="1dp"
|
||||
android:top="1dp" />
|
||||
|
||||
<corners android:radius="13dp" />
|
||||
</shape>
|
16
AppMobile/app/src/main/res/drawable/rounded_corner.xml
Normal file
16
AppMobile/app/src/main/res/drawable/rounded_corner.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<stroke
|
||||
android:width="4dp"
|
||||
android:color="@color/main_pink" />
|
||||
|
||||
<solid android:color="@color/white" />
|
||||
|
||||
<padding
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:bottom="1dp"
|
||||
android:top="1dp" />
|
||||
|
||||
<corners android:radius="13dp" />
|
||||
</shape>
|
@ -31,7 +31,7 @@
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/nav_bar"
|
||||
android:id="@+id/nav_bar_ticks"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
@ -76,4 +76,18 @@
|
||||
app:strokeWidth="3dp" />
|
||||
</LinearLayout>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/imageButton"
|
||||
android:layout_width="60dp"
|
||||
android:layout_height="60dp"
|
||||
android:layout_marginEnd="24dp"
|
||||
android:layout_marginBottom="28dp"
|
||||
android:background="@drawable/back_add_btn"
|
||||
android:contentDescription="@string/todo"
|
||||
android:padding="5dp"
|
||||
android:scaleType="centerInside"
|
||||
app:layout_constraintBottom_toTopOf="@+id/nav_bar_ticks"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:srcCompat="@drawable/add_b" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
52
AppMobile/app/src/main/res/layout/activity_ticks.xml
Normal file
52
AppMobile/app/src/main/res/layout/activity_ticks.xml
Normal file
@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout 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:background="@color/main_green"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".TicksActivity">
|
||||
|
||||
<FrameLayout
|
||||
android:id="@+id/nav_bar_ticks"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"></FrameLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title_ticks"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="4dp"
|
||||
android:text="@string/ticks"
|
||||
android:textColor="@color/black"
|
||||
android:textSize="34sp"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<View
|
||||
android:id="@+id/line_ticks"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="7dp"
|
||||
android:background="@color/main_pink"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintHorizontal_bias="0.0"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/title_ticks"
|
||||
tools:ignore="MissingConstraints" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/textViewTick"
|
||||
android:layout_width="360dp"
|
||||
android:layout_height="607dp"
|
||||
android:layout_marginTop="32dp"
|
||||
android:background="@drawable/rounded_corner"
|
||||
android:text="@string/empty_str"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/line_ticks" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
@ -37,4 +37,8 @@
|
||||
|
||||
<string name="profile">PROFILE</string>
|
||||
<string name="del_profile">DELETE PROFILE</string>
|
||||
|
||||
<string name="ticks">TICKS</string>
|
||||
<string name="empty_str"></string>
|
||||
|
||||
</resources>
|
Loading…
Reference in New Issue
Block a user