diff --git a/res/layout/account_setup_basics.xml b/res/layout/account_setup_basics.xml index 2cbc00d5d..d4277c258 100644 --- a/res/layout/account_setup_basics.xml +++ b/res/layout/account_setup_basics.xml @@ -1,5 +1,6 @@ - + custom:foldedLabel="@string/client_certificate_advanced_options" + custom:unFoldedLabel="@string/client_certificate_advanced_options"> + + - - - diff --git a/res/values/strings.xml b/res/values/strings.xml index 4854a6cf4..3139b079f 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -1130,4 +1130,5 @@ Please submit bug reports, contribute new features and ask questions at No client certificate Remove client certificate selection "Failed to retrieve client certificate for alias %s" + Advanced options diff --git a/src/com/fsck/k9/view/FoldableLinearLayout.java b/src/com/fsck/k9/view/FoldableLinearLayout.java index d54692e6b..e46904412 100644 --- a/src/com/fsck/k9/view/FoldableLinearLayout.java +++ b/src/com/fsck/k9/view/FoldableLinearLayout.java @@ -9,24 +9,22 @@ import android.view.LayoutInflater; import android.view.View; import android.view.animation.AlphaAnimation; import android.view.animation.Animation; -import android.widget.ImageButton; +import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; /** * Class representing a LinearLayout that can fold and hide it's content when * pressed To use just add the following to your xml layout - * + * custom:unFoldedLabel="@string/TEXT_TO_DISPLAY_WHEN_UNFOLDED"> * - * + * */ public class FoldableLinearLayout extends LinearLayout { - private ImageButton mFoldableIcon; + private ImageView mFoldableIcon; private boolean mFolded; private boolean mHasMigrated = false; private Integer mShortAnimationDuration = null; @@ -108,7 +106,7 @@ public class FoldableLinearLayout extends LinearLayout { } private void initialiseInnerViews() { - mFoldableIcon = (ImageButton) mFoldableLayout.findViewById(R.id.foldableIcon); + mFoldableIcon = (ImageView) mFoldableLayout.findViewById(R.id.foldableIcon); mFoldableIcon.setImageResource(R.drawable.ic_action_expand); mFoldableTextView = (TextView) mFoldableLayout.findViewById(R.id.foldableText); mFoldableTextView.setText(mFoldedLabel);