Add @ and # helper buttons to compose activity (#1277)

Addresses #810
This commit is contained in:
Levi Bard 2019-06-24 10:33:05 +02:00 committed by Konrad Pozniak
commit ffb6c9a7a7
3 changed files with 54 additions and 1 deletions

View file

@ -21,6 +21,32 @@
android:padding="8dp"
tools:ignore="ContentDescription" />
<!--content description will be set in code -->
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/atButton"
style="?attr/image_button_style"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="end"
android:padding="8dp"
android:text="@string/at_symbol"
android:textStyle="bold"
android:textColor="?android:textColorTertiary"
android:textSize="?attr/status_text_large"
/>
<androidx.appcompat.widget.AppCompatButton
android:id="@+id/hashButton"
style="?attr/image_button_style"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="end"
android:padding="8dp"
android:text="@string/hash_symbol"
android:textStyle="bold"
android:textColor="?android:textColorTertiary"
android:textSize="?attr/status_text_large"
/>
</androidx.appcompat.widget.Toolbar>
<androidx.core.widget.NestedScrollView

View file

@ -7,6 +7,8 @@
<string name="preferences_file_key" translatable="false">com.keylesspalace.tusky.PREFERENCES</string>
<string name="status_sensitive_media_template" translatable="false">&lt;b>%1$s&lt;/b>&lt;br>%2$s</string>
<string name="at_symbol" translatable="false">\@</string>
<string name="hash_symbol" translatable="false">#</string>
<string-array name="post_privacy_values">
<item>public</item>