Browse Source

fix dialog theme, make subject one line

pull/51/head
Thodoris1999 6 years ago
parent
commit
b51cea6404
  1. 2
      app/src/main/java/gr/thmmy/mthmmy/editorview/EditorView.java
  2. 6
      app/src/main/res/layout/activity_create_content.xml

2
app/src/main/java/gr/thmmy/mthmmy/editorview/EditorView.java

@ -201,7 +201,7 @@ public class EditorView extends LinearLayout {
linkText.getEditText().setText( linkText.getEditText().setText(
editText.getText().toString().substring(editText.getSelectionStart(), editText.getSelectionEnd())); editText.getText().toString().substring(editText.getSelectionStart(), editText.getSelectionEnd()));
} }
new AlertDialog.Builder(context, R.style.AppCompatAlertDialogStyleAccent) new AlertDialog.Builder(context, R.style.AppTheme_Dark_Dialog)
.setTitle(R.string.dialog_create_link_title) .setTitle(R.string.dialog_create_link_title)
.setView(dialogBody) .setView(dialogBody)
.setPositiveButton(R.string.ok, (dialog, which) -> { .setPositiveButton(R.string.ok, (dialog, which) -> {

6
app/src/main/res/layout/activity_create_content.xml

@ -39,7 +39,11 @@
<android.support.design.widget.TextInputEditText <android.support.design.widget.TextInputEditText
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" /> android:layout_height="wrap_content"
android:lines="1"
android:maxLines="1"
android:ellipsize="end"
android:inputType="text"/>
</android.support.design.widget.TextInputLayout> </android.support.design.widget.TextInputLayout>
<gr.thmmy.mthmmy.editorview.EditorView <gr.thmmy.mthmmy.editorview.EditorView

Loading…
Cancel
Save