mirror of
https://github.com/yggdrasil-network/crispa-android.git
synced 2024-11-13 22:11:03 +00:00
2. minor improvements for text fields
This commit is contained in:
parent
aa00e9aeb4
commit
17dc3b8650
@ -133,6 +133,7 @@ class PeerListActivity : AppCompatActivity() {
|
|||||||
this.resources.configuration.locale.country
|
this.resources.configuration.locale.country
|
||||||
}
|
}
|
||||||
var schemaInput = view.findViewById<TextView>(R.id.schemaInput)
|
var schemaInput = view.findViewById<TextView>(R.id.schemaInput)
|
||||||
|
schemaInput.showSoftInputOnFocus = false
|
||||||
schemaInput.setOnFocusChangeListener { v, b ->
|
schemaInput.setOnFocusChangeListener { v, b ->
|
||||||
if(schemaInput.isFocused) {
|
if(schemaInput.isFocused) {
|
||||||
val height = -1 * v.height +30
|
val height = -1 * v.height +30
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
android:paddingRight="15dp"
|
android:paddingRight="15dp"
|
||||||
android:paddingTop="12dp"
|
android:paddingTop="12dp"
|
||||||
android:paddingBottom="12dp"
|
android:paddingBottom="12dp"
|
||||||
android:background="@drawable/info_panel_rounded_corner">
|
android:background="@color/dark_10">
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
@ -24,6 +24,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="Schema"
|
android:hint="Schema"
|
||||||
android:ellipsize="middle"
|
android:ellipsize="middle"
|
||||||
android:singleLine="true"/>
|
android:singleLine="true"
|
||||||
|
android:textIsSelectable="false"/>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
</RelativeLayout>
|
</RelativeLayout>
|
@ -22,9 +22,10 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:hint="Schema"
|
android:hint="Schema"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:inputType="text"
|
android:inputType="textNoSuggestions"
|
||||||
android:textCursorDrawable="@null"
|
android:textCursorDrawable="@null"
|
||||||
android:onClick="onClickSchemaList"/>
|
android:onClick="onClickSchemaList"
|
||||||
|
/>
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
@ -45,7 +46,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:digits="0123456789."
|
android:digits="0123456789."
|
||||||
android:hint="IP/domain"
|
android:hint="IP/domain"
|
||||||
android:inputType="number"
|
android:inputType="textNoSuggestions"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
android:textCursorDrawable="@null"/>
|
android:textCursorDrawable="@null"/>
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
@ -11,4 +11,4 @@
|
|||||||
android:textSize="20dp"
|
android:textSize="20dp"
|
||||||
android:gravity="left"
|
android:gravity="left"
|
||||||
android:textColor="@color/white"
|
android:textColor="@color/white"
|
||||||
/>
|
android:textIsSelectable="false"/>
|
Loading…
Reference in New Issue
Block a user