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 *.iml
.gradle .gradle
/local.properties /local.properties
/.idea/libraries /.idea
/.idea/modules.xml
/.idea/workspace.xml
/.idea/caches
/.idea/tasks.xml
/.idea/gradle.xml
/.idea/dictionaries
.DS_Store .DS_Store
/build /build
/captures /captures

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

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

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

@ -33,11 +33,9 @@
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>
<LinearLayout <LinearLayout
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="200dp" android:layout_height="200dp"
android:layout_marginStart="100dp"
android:layout_marginTop="?attr/actionBarSize" android:layout_marginTop="?attr/actionBarSize"
android:layout_marginEnd="100dp"
android:gravity="top" android:gravity="top"
android:orientation="vertical" android:orientation="vertical"
tools:ignore="MissingConstraints"> tools:ignore="MissingConstraints">
@ -46,16 +44,8 @@
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="center" android:layout_gravity="center"
android:background="@drawable/ic_app_icon" /> android:background="@drawable/ic_app_icon"
android:scaleType="center" />
<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" />
</LinearLayout> </LinearLayout>

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