fix alignments
This commit is contained in:
@@ -828,13 +828,13 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
|
|||||||
languageButton = wrap.findViewById(R.id.language_btn);
|
languageButton = wrap.findViewById(R.id.language_btn);
|
||||||
languageButton.setOnClickListener(v->showLanguageAlert());
|
languageButton.setOnClickListener(v->showLanguageAlert());
|
||||||
languageButton.setOnLongClickListener(v->{
|
languageButton.setOnLongClickListener(v->{
|
||||||
languageButton.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS);
|
|
||||||
if(!getLocalPrefs().bottomEncoding){
|
if(!getLocalPrefs().bottomEncoding){
|
||||||
getLocalPrefs().bottomEncoding=true;
|
getLocalPrefs().bottomEncoding=true;
|
||||||
getLocalPrefs().save();
|
getLocalPrefs().save();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
publishButton.post(()->publishButton.setMinimumWidth(publishButton.getWidth()));
|
||||||
|
|
||||||
publishButton.setOnClickListener(v -> {
|
publishButton.setOnClickListener(v -> {
|
||||||
if(GlobalUserPreferences.altTextReminders && editingStatus==null)
|
if(GlobalUserPreferences.altTextReminders && editingStatus==null)
|
||||||
|
|||||||
@@ -5,8 +5,7 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:clipToPadding="false"
|
android:clipToPadding="false"
|
||||||
android:paddingHorizontal="16dp"
|
android:paddingHorizontal="16dp">
|
||||||
android:paddingBottom="4dp">
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/language_btn"
|
android:id="@+id/language_btn"
|
||||||
@@ -18,14 +17,17 @@
|
|||||||
android:drawableStart="@drawable/ic_fluent_local_language_16_regular"
|
android:drawableStart="@drawable/ic_fluent_local_language_16_regular"
|
||||||
android:drawablePadding="8dp"
|
android:drawablePadding="8dp"
|
||||||
android:drawableTint="?colorM3OnSurfaceVariant"
|
android:drawableTint="?colorM3OnSurfaceVariant"
|
||||||
|
android:contentDescription="@string/language"
|
||||||
|
android:tooltipText="@string/language"
|
||||||
android:textColor="?colorM3OnSurfaceVariant" />
|
android:textColor="?colorM3OnSurfaceVariant" />
|
||||||
|
|
||||||
<ImageButton
|
<ImageButton
|
||||||
android:id="@+id/drafts_btn"
|
android:id="@+id/drafts_btn"
|
||||||
style="@style/Widget.Mastodon.M3.Button.Text"
|
style="@style/Widget.Mastodon.M3.Button.Text"
|
||||||
android:background="@drawable/bg_button_m3_text_circle"
|
android:background="@drawable/bg_button_m3_text_circle"
|
||||||
android:layout_width="40dp"
|
android:layout_width="48dp"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_marginStart="-6dp"
|
||||||
android:src="@drawable/ic_fluent_clock_20_regular"
|
android:src="@drawable/ic_fluent_clock_20_regular"
|
||||||
android:tint="?colorM3OnSurfaceVariant"
|
android:tint="?colorM3OnSurfaceVariant"
|
||||||
android:contentDescription="@string/sk_schedule_or_draft"
|
android:contentDescription="@string/sk_schedule_or_draft"
|
||||||
@@ -37,7 +39,7 @@
|
|||||||
android:id="@+id/publish_btn"
|
android:id="@+id/publish_btn"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginStart="8dp"
|
android:layout_marginStart="6dp"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:ellipsize="end" />
|
android:ellipsize="end" />
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user