fixed icons not showing well in small phones

pull/18/head
Denis Çerri 4 years ago
parent 92f66ded59
commit 9871b38b68
No known key found for this signature in database
GPG Key ID: 96B3554AF5B193EE

8
.gitignore vendored

@ -1,13 +1,7 @@
*.iml
.gradle
/local.properties
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/caches
/.idea/tasks.xml
/.idea/gradle.xml
/.idea/dictionaries
/.idea
.DS_Store
/build
/captures

@ -24,9 +24,7 @@ public class SettingsActivity extends AppCompatActivity{
context = getBaseContext();
topAppBar = findViewById(R.id.settings_toolbar);
topAppBar.setNavigationOnClickListener(view -> onBackPressed());
fm = getSupportFragmentManager();
fm.beginTransaction()
.replace(R.id.settings_frame_layout, new SettingsFragment())
.commit();

@ -30,6 +30,7 @@
app:layout_scrollFlags="scroll|enterAlways|snap"
app:title="@string/settings"
android:layout_width="match_parent"
app:navigationIcon="@drawable/ic_back"
android:layout_height="match_parent"/>

@ -7,21 +7,18 @@
android:layout_height="match_parent">
<LinearLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="100dp"
android:layout_marginTop="200dp"
android:layout_marginEnd="100dp"
android:layout_centerInParent="true"
android:layout_marginBottom="200dp"
android:gravity="center"
android:orientation="vertical"
tools:ignore="MissingConstraints">
<ImageView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_width="200sp"
android:layout_height="150sp"
android:layout_gravity="center"
android:scaleType="centerInside"
android:background="@drawable/ic_no_results" />
<TextView

@ -33,11 +33,9 @@
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_width="match_parent"
android:layout_height="200dp"
android:layout_marginStart="100dp"
android:layout_marginTop="?attr/actionBarSize"
android:layout_marginEnd="100dp"
android:gravity="top"
android:orientation="vertical"
tools:ignore="MissingConstraints">
@ -46,16 +44,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:background="@drawable/ic_app_icon" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/no_results"
android:textAlignment="center"
android:textSize="20sp"
android:textStyle="bold" />
android:background="@drawable/ic_app_icon"
android:scaleType="center" />
</LinearLayout>

@ -1,7 +0,0 @@
<resources>
<style name="AppTheme" parent="AppDefaultTheme">
<item name="android:windowSplashScreenAnimationDuration">0</item>
</style>
</resources>
Loading…
Cancel
Save