version 1.8.9 layout fix
This commit is contained in:
parent
09f60e0cef
commit
66efd29b0a
|
@ -9,8 +9,8 @@ android {
|
||||||
applicationId 'org.nuclearfog.twidda'
|
applicationId 'org.nuclearfog.twidda'
|
||||||
minSdkVersion 16
|
minSdkVersion 16
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
versionCode 32
|
versionCode 33
|
||||||
versionName '1.8.8'
|
versionName '1.8.9'
|
||||||
// limiting language support for smaller APK size
|
// limiting language support for smaller APK size
|
||||||
resConfigs 'en', 'de-rDE'
|
resConfigs 'en', 'de-rDE'
|
||||||
vectorDrawables.useSupportLibrary true
|
vectorDrawables.useSupportLibrary true
|
||||||
|
|
|
@ -222,6 +222,7 @@ public class TweetAdapter extends Adapter<ViewHolder> {
|
||||||
if (viewType == VIEW_TWEET) {
|
if (viewType == VIEW_TWEET) {
|
||||||
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_tweet, parent, false);
|
View v = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_tweet, parent, false);
|
||||||
final TweetHolder vh = new TweetHolder(v);
|
final TweetHolder vh = new TweetHolder(v);
|
||||||
|
vh.retweeterName.setCompoundDrawablesWithIntrinsicBounds(R.drawable.retweet, 0, 0, 0);
|
||||||
AppStyles.setTheme(settings, v);
|
AppStyles.setTheme(settings, v);
|
||||||
v.setOnClickListener(new OnClickListener() {
|
v.setOnClickListener(new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
<androidx.cardview.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
||||||
style="@style/CardViewStyle"
|
style="@style/CardViewStyle"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content">
|
android:layout_height="wrap_content">
|
||||||
|
@ -98,8 +97,7 @@
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:drawablePadding="@dimen/tweetitem_padding_drawable"
|
android:drawablePadding="@dimen/tweetitem_padding_drawable"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textSize="@dimen/tweetitem_textsize_button"
|
android:textSize="@dimen/tweetitem_textsize_button" />
|
||||||
app:drawableStartCompat="@drawable/retweet" />
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/retweet_number"
|
android:id="@+id/retweet_number"
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
android:layout_height="@dimen/tweet_button_answer_height"
|
android:layout_height="@dimen/tweet_button_answer_height"
|
||||||
android:paddingLeft="@dimen/tweet_button_padding"
|
android:paddingLeft="@dimen/tweet_button_padding"
|
||||||
android:paddingRight="@dimen/tweet_button_padding"
|
android:paddingRight="@dimen/tweet_button_padding"
|
||||||
android:textSize="@dimen/tweet_textsize_api"
|
android:textSize="@dimen/tweet_textsize_small"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
style="@style/FeedbackButton" />
|
style="@style/FeedbackButton" />
|
||||||
|
|
||||||
|
@ -131,6 +131,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_weight="1"
|
android:layout_weight="1"
|
||||||
android:drawablePadding="@dimen/tweet_padding_drawable"
|
android:drawablePadding="@dimen/tweet_padding_drawable"
|
||||||
|
android:textSize="@dimen/tweet_textsize_small"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
|
@ -143,7 +144,7 @@
|
||||||
android:paddingRight="@dimen/tweet_button_padding"
|
android:paddingRight="@dimen/tweet_button_padding"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:text="@string/tweet_sensitive_media"
|
android:text="@string/tweet_sensitive_media"
|
||||||
android:textSize="@dimen/tweet_textsize_api"
|
android:textSize="@dimen/tweet_textsize_small"
|
||||||
android:visibility="gone" />
|
android:visibility="gone" />
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
@ -181,7 +182,7 @@
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:linksClickable="false"
|
android:linksClickable="false"
|
||||||
android:singleLine="true"
|
android:singleLine="true"
|
||||||
android:textSize="@dimen/tweet_textsize_api" />
|
android:textSize="@dimen/tweet_textsize_small" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
<!--dimens of page_tweet.xml-->
|
<!--dimens of page_tweet.xml-->
|
||||||
<dimen name="tweet_toolbar_height">@dimen/toolbar_height</dimen>
|
<dimen name="tweet_toolbar_height">@dimen/toolbar_height</dimen>
|
||||||
<dimen name="tweet_profile">56sp</dimen>
|
<dimen name="tweet_profile">56sp</dimen>
|
||||||
<dimen name="tweet_textsize_api">12sp</dimen>
|
<dimen name="tweet_textsize_small">12sp</dimen>
|
||||||
<dimen name="tweet_media_button_margin">5dp</dimen>
|
<dimen name="tweet_media_button_margin">5dp</dimen>
|
||||||
<dimen name="tweet_button_location">16dp</dimen>
|
<dimen name="tweet_button_location">16dp</dimen>
|
||||||
<dimen name="tweet_layout_margin">5dp</dimen>
|
<dimen name="tweet_layout_margin">5dp</dimen>
|
||||||
|
|
Loading…
Reference in New Issue