Skip to content

Commit 8d6b9bb

Browse files
committed
intro layout
1 parent 9e6e8e4 commit 8d6b9bb

23 files changed

+236
-17
lines changed

build.gradle

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'com.android.application'
3+
id 'com.google.gms.google-services'
34
}
45

56
android {
@@ -33,7 +34,12 @@ dependencies {
3334
implementation 'androidx.appcompat:appcompat:1.2.0'
3435
implementation 'com.google.android.material:material:1.2.1'
3536
implementation 'androidx.constraintlayout:constraintlayout:2.0.1'
37+
implementation 'com.google.firebase:firebase-auth:21.0.1'
3638
testImplementation 'junit:junit:4.+'
39+
implementation 'com.github.ibrahimsn98:SmoothBottomBar:1.7.6'
40+
implementation 'com.intuit.sdp:sdp-android:1.0.6'
41+
implementation platform('com.google.firebase:firebase-bom:28.0.1')
42+
implementation 'com.google.firebase:firebase-analytics'
3743
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
3844
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
3945
}

google-services.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"project_info": {
3+
"project_number": "590267991460",
4+
"project_id": "financial-dd383",
5+
"storage_bucket": "financial-dd383.appspot.com"
6+
},
7+
"client": [
8+
{
9+
"client_info": {
10+
"mobilesdk_app_id": "1:590267991460:android:7ee1980a5d1ba34e482d31",
11+
"android_client_info": {
12+
"package_name": "ir.maryamsh.financialmanagement"
13+
}
14+
},
15+
"oauth_client": [
16+
{
17+
"client_id": "590267991460-n652i27hs9i8me6qabmttbj2uu3541ln.apps.googleusercontent.com",
18+
"client_type": 3
19+
}
20+
],
21+
"api_key": [
22+
{
23+
"current_key": "AIzaSyDMjogUOdqTeorPfxZCmNAsSLVNJkHpR_E"
24+
}
25+
],
26+
"services": {
27+
"appinvite_service": {
28+
"other_platform_oauth_client": [
29+
{
30+
"client_id": "590267991460-n652i27hs9i8me6qabmttbj2uu3541ln.apps.googleusercontent.com",
31+
"client_type": 3
32+
}
33+
]
34+
}
35+
}
36+
}
37+
],
38+
"configuration_version": "1"
39+
}

src/main/AndroidManifest.xml

+7-6
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:supportsRtl="true"
1111
android:theme="@style/Theme.Financialmanagement">
12-
<activity android:name=".SingupActivity"></activity>
13-
<activity android:name=".LoginActivity">
14-
15-
</activity>
16-
<activity android:name=".IntroActivity" />
17-
<activity android:name=".MainActivity">
12+
<activity android:name=".HomeActivity">
1813
<intent-filter>
1914
<action android:name="android.intent.action.MAIN" />
2015
<category android:name="android.intent.category.LAUNCHER" />
2116
</intent-filter>
2217
</activity>
18+
<activity android:name=".SingupActivity" />
19+
<activity android:name=".LoginActivity"></activity>
20+
<activity android:name=".IntroActivity" />
21+
<activity android:name=".MainActivity">
22+
23+
</activity>
2324
</application>
2425

2526
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package ir.maryamsh.financialmanagement;
2+
3+
import androidx.appcompat.app.AppCompatActivity;
4+
5+
import android.os.Bundle;
6+
7+
public class HomeActivity extends AppCompatActivity {
8+
9+
@Override
10+
protected void onCreate(Bundle savedInstanceState) {
11+
super.onCreate(savedInstanceState);
12+
setContentView(R.layout.items_intro);
13+
}
14+
}

src/main/java/ir/maryamsh/financialmanagement/MainActivity.java

+20-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
import androidx.appcompat.app.AppCompatActivity;
44

5+
import android.content.Intent;
56
import android.graphics.Typeface;
67
import android.os.Bundle;
8+
import android.view.View;
79
import android.widget.Button;
810
import android.widget.TextView;
911

@@ -12,7 +14,24 @@ public class MainActivity extends AppCompatActivity {
1214
@Override
1315
protected void onCreate(Bundle savedInstanceState) {
1416
super.onCreate(savedInstanceState);
15-
setContentView(R.layout.activity_main);
17+
setContentView(R.layout.items_intro);
18+
init();
19+
// BtnSingin.setOnClickListener(new View.OnClickListener() {
20+
// @Override
21+
// public void onClick(View v) {
22+
// startActivity(new Intent(MainActivity.this,SingupActivity.class));
23+
// }
24+
// });
25+
// BtnLogin.setOnClickListener(new View.OnClickListener() {
26+
// @Override
27+
// public void onClick(View v) {
28+
// startActivity(new Intent(MainActivity.this,LoginActivity.class));
29+
// }
30+
// });
31+
}
1632

33+
private void init() {
34+
BtnLogin=findViewById(R.id.BtnLogin);
35+
BtnSingin=findViewById(R.id.BtnSingin);
1736
}
1837
}
1.47 KB
Loading
32.2 KB
Loading
888 Bytes
Loading
16 KB
Loading
1.88 KB
Loading
52.7 KB
Loading
2.78 KB
Loading
106 KB
Loading
3.78 KB
Loading
154 KB
Loading

src/main/res/drawable/ic_home.xml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<vector xmlns:android="http://schemas.android.com/apk/res/android"
2+
android:width="29dp"
3+
android:height="43dp"
4+
android:viewportWidth="29"
5+
android:viewportHeight="43">
6+
<path
7+
android:pathData="M4.2695,33.2852C4.5898,32.8919 5.0065,32.6953 5.5195,32.6953C6.4128,32.6953 6.8633,33.1992 6.8711,34.207V37H6.1484V34.2031C6.1458,33.8984 6.0755,33.6732 5.9375,33.5273C5.8021,33.3815 5.5898,33.3086 5.3008,33.3086C5.0664,33.3086 4.8607,33.3711 4.6836,33.4961C4.5065,33.6211 4.3685,33.7852 4.2695,33.9883V37H3.5469V31H4.2695V33.2852ZM7.7617,34.8477C7.7617,34.4336 7.8425,34.0612 8.0039,33.7305C8.168,33.3997 8.3945,33.1445 8.6836,32.9648C8.9753,32.7852 9.3073,32.6953 9.6797,32.6953C10.2552,32.6953 10.7201,32.8945 11.0742,33.293C11.431,33.6914 11.6094,34.2214 11.6094,34.8828V34.9336C11.6094,35.3451 11.5299,35.7148 11.3711,36.043C11.2148,36.3685 10.9896,36.6224 10.6953,36.8047C10.4036,36.987 10.0677,37.0781 9.6875,37.0781C9.1146,37.0781 8.6497,36.8789 8.293,36.4805C7.9388,36.082 7.7617,35.5547 7.7617,34.8984V34.8477ZM8.4883,34.9336C8.4883,35.4023 8.5963,35.7786 8.8125,36.0625C9.0313,36.3464 9.3229,36.4883 9.6875,36.4883C10.0547,36.4883 10.3464,36.3451 10.5625,36.0586C10.7786,35.7695 10.8867,35.3659 10.8867,34.8477C10.8867,34.3841 10.776,34.0091 10.5547,33.7227C10.3359,33.4336 10.0443,33.2891 9.6797,33.2891C9.3229,33.2891 9.0352,33.431 8.8164,33.7148C8.5977,33.9987 8.4883,34.4049 8.4883,34.9336ZM13.1953,32.7734L13.2148,33.2422C13.5247,32.8776 13.9427,32.6953 14.4688,32.6953C15.0599,32.6953 15.4622,32.9219 15.6758,33.375C15.8164,33.1719 15.9987,33.0078 16.2227,32.8828C16.4492,32.7578 16.7161,32.6953 17.0234,32.6953C17.9505,32.6953 18.4219,33.1862 18.4375,34.168V37H17.7148V34.2109C17.7148,33.9089 17.6458,33.6836 17.5078,33.5352C17.3698,33.3841 17.138,33.3086 16.8125,33.3086C16.5443,33.3086 16.3216,33.3893 16.1445,33.5508C15.9674,33.7096 15.8646,33.9245 15.8359,34.1953V37H15.1094V34.2305C15.1094,33.6159 14.8086,33.3086 14.207,33.3086C13.7331,33.3086 13.4089,33.5104 13.2344,33.9141V37H12.5117V32.7734H13.1953ZM21.2852,37.0781C20.7122,37.0781 20.2461,36.8906 19.8867,36.5156C19.5273,36.138 19.3477,35.6341 19.3477,35.0039V34.8711C19.3477,34.4518 19.4271,34.0781 19.5859,33.75C19.7474,33.4193 19.9714,33.1615 20.2578,32.9766C20.5469,32.7891 20.8594,32.6953 21.1953,32.6953C21.7448,32.6953 22.1719,32.8763 22.4766,33.2383C22.7812,33.6003 22.9336,34.1185 22.9336,34.793V35.0938H20.0703C20.0807,35.5104 20.2018,35.8477 20.4336,36.1055C20.668,36.3607 20.9648,36.4883 21.3242,36.4883C21.5794,36.4883 21.7956,36.4362 21.9727,36.332C22.1497,36.2279 22.3047,36.0898 22.4375,35.918L22.8789,36.2617C22.5247,36.806 21.9935,37.0781 21.2852,37.0781ZM21.1953,33.2891C20.9036,33.2891 20.6589,33.3958 20.4609,33.6094C20.263,33.8203 20.1406,34.1172 20.0938,34.5H22.2109V34.4453C22.1901,34.0781 22.0911,33.7943 21.9141,33.5938C21.737,33.3906 21.4974,33.2891 21.1953,33.2891Z"
8+
android:fillColor="#888888"/>
9+
<path
10+
android:pathData="M3.2501,14.0834H4.3334V21.6667C4.3334,22.8616 5.3052,23.8334 6.5001,23.8334H19.5001C20.695,23.8334 21.6668,22.8616 21.6668,21.6667V14.0834H22.7501C22.9643,14.0833 23.1737,14.0198 23.3518,13.9007C23.53,13.7817 23.6688,13.6125 23.7507,13.4146C23.8327,13.2167 23.8542,12.9989 23.8124,12.7888C23.7706,12.5787 23.6675,12.3856 23.516,12.2341L13.766,2.4841C13.6655,2.3835 13.5461,2.3036 13.4147,2.2491C13.2833,2.1946 13.1424,2.1665 13.0001,2.1665C12.8578,2.1665 12.7169,2.1946 12.5855,2.2491C12.4541,2.3036 12.3347,2.3835 12.2342,2.4841L2.4842,12.2341C2.3327,12.3856 2.2296,12.5787 2.1878,12.7888C2.146,12.9989 2.1675,13.2167 2.2494,13.4146C2.3314,13.6125 2.4702,13.7817 2.6484,13.9007C2.8265,14.0198 3.0359,14.0833 3.2501,14.0834ZM13.0001,4.7819L19.5001,11.2819V16.2501L19.5012,21.6667H6.5001V11.2819L13.0001,4.7819Z"
11+
android:fillColor="#888888"/>
12+
<path
13+
android:pathData="M13.0002,19.4999C17.0118,19.4999 18.3096,15.666 18.3627,15.5035L16.3044,14.8307C16.2957,14.8556 15.4583,17.3332 13.0002,17.3332C10.5757,17.3332 9.7285,14.9271 9.695,14.8242L7.6377,15.5035C7.6908,15.666 8.9886,19.4999 13.0002,19.4999Z"
14+
android:fillColor="#888888"/>
15+
</vector>

src/main/res/drawable/img_intro1.png

-143 KB
Binary file not shown.
File renamed without changes.

src/main/res/layout/activity_home.xml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:layout_width="match_parent"
6+
android:layout_height="match_parent"
7+
android:background="#EEEEEE"
8+
tools:context=".HomeActivity">
9+
<me.ibrahimsn.lib.SmoothBottomBar
10+
android:id="@+id/bottomBar"
11+
android:layout_width="match_parent"
12+
android:layout_height="70dp"
13+
android:layout_alignParentBottom="true"
14+
android:foregroundGravity="center"
15+
app:backgroundColor="#8D4DFF"
16+
app:iconSize="20dp"
17+
app:menu="@menu/bottom_menu"
18+
app:textSize="15dp" />
19+
</RelativeLayout>

src/main/res/layout/activity_main.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
android:layout_width="286dp"
1616
android:layout_height="300dp"
1717
android:layout_marginBottom="55dp"
18-
android:src="@drawable/Vector" />
18+
android:src="@drawable/vector" />
1919
<Button
2020
android:textColor="@color/white"
2121
android:textSize="27sp"

src/main/res/layout/intro_items.xml

+7-9
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,27 @@
1818
/>
1919
<RelativeLayout
2020
android:id="@+id/LyDot"
21-
android:paddingTop="190dp"
2221
android:layout_width="match_parent"
2322
android:background="@drawable/intro1"
2423
android:layout_alignParentBottom="true"
25-
android:layout_height="310dp">
24+
android:layout_height="@dimen/_210sdp">
2625
<TextView
2726
android:layout_centerHorizontal="true"
2827
android:textColor="#fff"
2928
android:layout_width="362dp"
3029
android:layout_height="wrap_content"
3130
android:id="@+id/DesIntro"
31+
android:layout_marginTop="@dimen/_84sdp"
3232
android:lineSpacingExtra="8sp"
3333
android:textAlignment="center"
3434
android:text="لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه "
3535
android:textSize="15sp"
36-
/>
36+
tools:ignore="NotSibling" />
3737
<LinearLayout
3838
android:gravity="center"
3939
android:layout_width="match_parent"
4040
android:layout_height="50dp"
41+
android:id="@+id/lybo"
4142
android:layout_alignParentBottom="true"
4243
android:orientation="horizontal">
4344
<Button
@@ -59,12 +60,9 @@
5960

6061
<ImageView
6162
android:id="@+id/ImgIntro"
62-
android:layout_width="242dp"
63-
android:layout_height="499dp"
63+
android:layout_width="@dimen/_212sdp"
64+
android:layout_height="@dimen/_399sdp"
6465
android:layout_alignParentRight="true"
65-
android:layout_marginTop="33dp"
66-
android:layout_marginRight="9dp"
67-
android:adjustViewBounds="true"
68-
android:scaleType="centerInside"
66+
android:layout_marginTop="@dimen/_33sdp"
6967
android:src="@drawable/img_intro1" />
7068
</RelativeLayout>

src/main/res/layout/items_intro.xml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:app="http://schemas.android.com/apk/res-auto"
4+
xmlns:tools="http://schemas.android.com/tools"
5+
android:layoutDirection="ltr"
6+
android:layout_width="match_parent"
7+
android:background="@drawable/sliderbg"
8+
android:layout_height="match_parent">
9+
<TextView
10+
android:id="@+id/TitleIntro"
11+
android:layout_width="wrap_content"
12+
android:layout_height="wrap_content"
13+
android:layout_centerHorizontal="true"
14+
android:layout_marginTop="24dp"
15+
android:text="عنوان"
16+
android:textColor="@color/white"
17+
android:textSize="42sp"
18+
android:textStyle="bold"
19+
app:layout_constraintEnd_toEndOf="parent"
20+
app:layout_constraintStart_toStartOf="parent"
21+
app:layout_constraintTop_toTopOf="parent" />
22+
23+
<androidx.constraintlayout.widget.ConstraintLayout
24+
android:id="@+id/LyDot"
25+
android:layout_width="match_parent"
26+
android:layout_height="@dimen/_210sdp"
27+
android:layout_alignParentBottom="true"
28+
android:background="@drawable/intro1"
29+
app:layout_constraintBottom_toBottomOf="parent">
30+
31+
<TextView
32+
android:id="@+id/DesIntro"
33+
android:layout_width="362dp"
34+
android:layout_height="wrap_content"
35+
android:layout_centerHorizontal="true"
36+
android:layout_marginTop="@dimen/_55sdp"
37+
android:lineSpacingExtra="8sp"
38+
android:text="لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ و با استفاده از طراحان گرافیک است. چاپگرها و متون بلکه "
39+
android:textAlignment="center"
40+
android:textColor="#fff"
41+
42+
android:textSize="15sp"
43+
app:layout_constraintBottom_toBottomOf="@+id/linearLayout"
44+
app:layout_constraintEnd_toEndOf="parent"
45+
app:layout_constraintHorizontal_bias="0.489"
46+
app:layout_constraintStart_toStartOf="parent"
47+
app:layout_constraintTop_toTopOf="parent"
48+
tools:ignore="MissingConstraints" />
49+
50+
<LinearLayout
51+
android:id="@+id/linearLayout"
52+
android:layout_width="match_parent"
53+
android:layout_height="50dp"
54+
android:layout_alignParentBottom="true"
55+
android:gravity="center"
56+
android:orientation="horizontal"
57+
app:layout_constraintBottom_toBottomOf="parent">
58+
59+
<Button
60+
android:layout_width="9dp"
61+
android:layout_height="9dp"
62+
android:background="@drawable/radius" />
63+
64+
<Button
65+
android:layout_width="9dp"
66+
android:layout_height="9dp"
67+
android:layout_marginLeft="12dp"
68+
android:layout_marginRight="12dp"
69+
android:background="@drawable/radius" />
70+
71+
<Button
72+
android:layout_width="9dp"
73+
android:layout_height="9dp"
74+
android:background="@drawable/radius" />
75+
</LinearLayout>
76+
</androidx.constraintlayout.widget.ConstraintLayout>
77+
78+
<ImageView
79+
android:id="@+id/ImgIntro"
80+
android:layout_width="@dimen/_182sdp"
81+
android:layout_height="@dimen/_420sdp"
82+
android:layout_alignParentRight="true"
83+
android:layout_marginTop="@dimen/_34sdp"
84+
android:src="@drawable/img_intro1"
85+
app:layout_constraintEnd_toEndOf="parent"
86+
tools:ignore="MissingConstraints" />
87+
</androidx.constraintlayout.widget.ConstraintLayout>

src/main/res/menu/bottom_menu.xml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<menu xmlns:tools="http://schemas.android.com/tools"
3+
xmlns:android="http://schemas.android.com/apk/res/android">
4+
<item
5+
android:id="@+id/item0"
6+
android:title="خانه"
7+
android:icon="@drawable/ic_home"
8+
tools:ignore="DuplicateIds" />
9+
<item
10+
android:id="@+id/item0"
11+
android:title="خانه"
12+
android:icon="@drawable/ic_home"/>
13+
<item
14+
android:id="@+id/item0"
15+
android:title="خانه"
16+
android:icon="@drawable/ic_home"/>
17+
<item
18+
android:id="@+id/item0"
19+
android:title="خانه"
20+
android:icon="@drawable/ic_home"/>
21+
</menu>

0 commit comments

Comments
 (0)