Răsfoiți Sursa

Add about page layout

Infinite 3 ani în urmă
părinte
comite
4cc3ce282f

+ 4 - 4
app/build.gradle

@@ -33,26 +33,26 @@ android {
 dependencies {
 
     implementation 'androidx.appcompat:appcompat:1.3.0'
-    implementation 'com.google.android.material:material:1.3.0'
     implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
     implementation 'androidx.legacy:legacy-support-v4:1.0.0'
     testImplementation 'junit:junit:4.+'
     androidTestImplementation 'androidx.test.ext:junit:1.1.2'
     androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
-    implementation 'com.google.android.material:material:1.3.0'
+    implementation 'com.google.android.material:material:1.4.0'
     implementation 'com.squareup.retrofit2:retrofit:2.9.0'
     implementation 'com.google.code.gson:gson:2.8.7'
     implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
     implementation 'com.squareup.okhttp3:logging-interceptor:3.3.0'
     implementation 'com.squareup.picasso:picasso:2.8'
     implementation 'org.jsoup:jsoup:1.11.1'
-    implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
-    implementation "androidx.recyclerview:recyclerview:1.2.1"
+    implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
+    implementation 'androidx.recyclerview:recyclerview:1.2.1'
     implementation 'com.facebook.shimmer:shimmer:0.5.0'
     implementation platform('com.google.firebase:firebase-bom:28.2.1')
     implementation 'com.google.firebase:firebase-messaging'
     implementation 'com.github.GrenderG:Toasty:1.5.0'
     implementation 'androidx.webkit:webkit:1.4.0'
+    implementation 'com.github.lisawray.groupie:groupie:2.9.0'
 
 
 }

+ 10 - 2
app/src/main/java/club/thepenguins/android/fragments/AboutFragment.java

@@ -7,6 +7,8 @@ import androidx.fragment.app.Fragment;
 import android.view.LayoutInflater;
 import android.view.View;
 import android.view.ViewGroup;
+import android.widget.ArrayAdapter;
+import android.widget.ListView;
 import android.widget.Toast;
 
 import club.thepenguins.android.R;
@@ -48,10 +50,16 @@ public class AboutFragment extends Fragment {
     @Override
     public View onCreateView(LayoutInflater inflater, ViewGroup container,
                              Bundle savedInstanceState) {
-        // Inflate the layout for this fragment
-
         View rootView = inflater.inflate(R.layout.fragment_about, container, false);
 
+        ListView listView = rootView.findViewById(R.id.aboutLV);
+        String[] listItem = getResources().getStringArray(R.array.thanksTo);
+
+
+        listView.setAdapter(new ArrayAdapter<>(rootView.getContext(), R.layout.thanks, R.id.people, listItem));
+        listView.setDivider(null);
+
+
         Toasty.info(rootView.getContext(), noImplemented, Toast.LENGTH_LONG).show();
         return rootView;
     }

BIN
app/src/main/res/drawable-hdpi/ic_gihub.png


BIN
app/src/main/res/drawable-mdpi/ic_gihub.png


BIN
app/src/main/res/drawable-xhdpi/ic_gihub.png


BIN
app/src/main/res/drawable-xxhdpi/ic_gihub.png


BIN
app/src/main/res/drawable-xxxhdpi/ic_gihub.png


+ 1 - 1
app/src/main/res/layout/activity_splash.xml

@@ -22,7 +22,7 @@
             android:layout_height="match_parent"
             android:fontFamily="@font/unifrakturcook"
             android:gravity="center"
-            android:text="P"
+            android:text="@string/logo"
             android:textColor="@color/textColor"
             android:textSize="128sp"
             android:textStyle="bold" />

+ 116 - 5
app/src/main/res/layout/fragment_about.xml

@@ -6,11 +6,122 @@
     android:layout_height="match_parent"
     tools:context=".fragments.AboutFragment">
 
-    <Button
-        android:layout_width="wrap_content"
+
+    <LinearLayout
+        android:layout_width="match_parent"
         android:layout_height="wrap_content"
-        android:layout_gravity="center"
-        android:text="About Us"
-        />
+        android:orientation="vertical">
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center"
+            android:fontFamily="@font/unifrakturcook"
+            android:text="@string/logo"
+            android:textColor="@color/textColor"
+            android:textSize="80sp" />
+
+        <TextView
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:layout_margin="10dp"
+            android:text="@string/appDesc"
+            android:textColor="@color/textColor"
+            android:textSize="20sp" />
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center"
+            android:text="@string/credits"
+            android:textColor="@color/textColor"
+            android:textSize="25sp"
+            android:textStyle="bold" />
+
+        <LinearLayout
+            android:layout_width="wrap_content"
+            android:layout_height="match_parent"
+            android:layout_gravity="center"
+            android:layout_margin="10dp"
+            android:orientation="horizontal">
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:padding="5dp"
+                android:text="@string/created"
+                android:textColor="@color/textColor"
+                android:textSize="20sp" />
+
+            <ImageView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:padding="2dp"
+                android:src="@drawable/ic_gihub" />
+
+            <TextView
+                android:layout_width="wrap_content"
+                android:layout_height="wrap_content"
+                android:layout_gravity="center"
+                android:padding="5dp"
+                android:text="@string/dev"
+                android:textColor="@color/textColor"
+                android:textSize="20sp" />
+
+
+        </LinearLayout>
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center"
+            android:text="@string/powered"
+            android:textColor="@color/textColor"
+            android:textSize="25sp"
+            android:textStyle="bold" />
+
+        <LinearLayout
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center"
+            android:layout_margin="10dp">
+
+            <TextView
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:text="@string/technoFaq"
+                android:textColor="@color/textColor"
+                android:textSize="22sp" />
+
+
+        </LinearLayout>
+
+        <TextView
+            android:layout_width="wrap_content"
+            android:layout_height="wrap_content"
+            android:layout_gravity="center"
+            android:text="@string/thanks"
+            android:textColor="@color/textColor"
+            android:textSize="25sp"
+            android:textStyle="bold" />
+
+        <LinearLayout
+            android:layout_width="wrap_content"
+            android:layout_height="match_parent"
+            android:layout_margin="10dp"
+            android:orientation="vertical">
+
+            <ListView
+                android:id="@+id/aboutLV"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:layout_gravity="center" />
+
+
+        </LinearLayout>
+
+
+    </LinearLayout>
+
 
 </FrameLayout>

+ 11 - 0
app/src/main/res/layout/thanks.xml

@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+    android:id="@+id/people"
+    android:layout_width="match_parent"
+    android:layout_height="wrap_content"
+    android:gravity="center"
+    android:padding="5dp"
+    android:text="Name"
+    android:textColor="@color/textColor"
+    android:textSize="20sp" />

+ 26 - 0
app/src/main/res/values/strings.xml

@@ -5,4 +5,30 @@
     <string name="name">The Penguins Club</string>
     <string name="hello_blank_fragment">Hello</string>
     <string name="noPosts">No posts in this category yet!</string>
+    <string name="logo">P</string>
+    <string name="appDesc"><b>The Penguins Club</b> একটি কমিউনিটি কেন্দ্রিক লিনাক্স, ইউনিক্স, ব্যবসা এবং নিরাপত্তা সংক্রান্ত বাংলা ম্যাগাজিন। </string>
+    <string name="site">Website:</string>
+    <string name="url">https://thepenguins.club/</string>
+    <string name="credits">Credits:</string>
+    <string name="powered">Powered by:</string>
+    <string name="technoFaq">Techno FAQ Digital Media</string>
+    <string name="created">This app is made with ❤ by</string>
+    <string name="dev">Infinite</string>
+    <string name="github">https://github.com/r00t3d0</string>
+    <string name="community">Our community:</string>
+    <string name="penguins">https://t.me/joinchat/F9jtaRUVVujT8Gdi7SzbeQ</string>
+    <string name="bn">Bangla</string>
+    <string name="international">International</string>
+    <string name="thanks">Special thanks to:</string>
+
+    <string-array name="thanksTo">
+        <item>Sunit Kumar Nandi</item>
+        <item>Sammay Sarkar</item>
+        <item>Fazle Rabbi</item>
+        <item>Jamil Hasan Rahul</item>
+        <item>Mahbub Hasan</item>
+        <item>ソシオパス [404]</item>
+    </string-array>
+
+
 </resources>