mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Tweak layout to work with older phones with smaller screen
This commit is contained in:
@@ -197,5 +197,8 @@ abstract public class BaseActivity extends AppCompatActivity implements Thread.U
|
|||||||
{
|
{
|
||||||
View view = findViewById(R.id.toolbarShadow);
|
View view = findViewById(R.id.toolbarShadow);
|
||||||
if(view != null) view.setVisibility(View.GONE);
|
if(view != null) view.setVisibility(View.GONE);
|
||||||
|
|
||||||
|
view = findViewById(R.id.headerShadow);
|
||||||
|
if(view != null) view.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -106,6 +106,10 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
<View
|
||||||
|
android:id="@+id/headerShadow"
|
||||||
|
style="@style/ToolbarShadow"/>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
style="@style/Card"
|
style="@style/Card"
|
||||||
android:paddingTop="12dp"
|
android:paddingTop="12dp"
|
||||||
@@ -124,9 +128,9 @@
|
|||||||
android:orientation="horizontal">
|
android:orientation="horizontal">
|
||||||
|
|
||||||
<FrameLayout
|
<FrameLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minWidth="100dp">
|
android:layout_weight="5">
|
||||||
|
|
||||||
<org.isoron.uhabits.views.RingView
|
<org.isoron.uhabits.views.RingView
|
||||||
android:id="@+id/scoreRing"
|
android:id="@+id/scoreRing"
|
||||||
@@ -140,9 +144,9 @@
|
|||||||
</FrameLayout>
|
</FrameLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minWidth="80dp"
|
android:layout_weight="4"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -159,9 +163,9 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minWidth="80dp"
|
android:layout_weight="4"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
@@ -178,9 +182,9 @@
|
|||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:minWidth="80dp"
|
android:layout_weight="4"
|
||||||
android:orientation="vertical">
|
android:orientation="vertical">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
|||||||
@@ -249,9 +249,9 @@
|
|||||||
|
|
||||||
<style name="ToolbarShadow">
|
<style name="ToolbarShadow">
|
||||||
<item name="android:layout_width">match_parent</item>
|
<item name="android:layout_width">match_parent</item>
|
||||||
<item name="android:layout_height">3dp</item>
|
<item name="android:layout_height">2dp</item>
|
||||||
<item name="android:background">@drawable/toolbar_shadow</item>
|
<item name="android:background">@drawable/toolbar_shadow</item>
|
||||||
<item name="android:alpha">0.25</item>
|
<item name="android:alpha">0.2</item>
|
||||||
<item name="android:layout_below">@id/toolbar</item>
|
<item name="android:layout_below">@id/toolbar</item>
|
||||||
</style>
|
</style>
|
||||||
</resources>
|
</resources>
|
||||||
|
|||||||
Reference in New Issue
Block a user